[DEV] add in sample 2 entry tio test better capability
This commit is contained in:
parent
e802c14182
commit
72109971d4
@ -2,6 +2,8 @@ package sample.atriasoft.ewol.sampleEntry;
|
||||
|
||||
import org.atriasoft.etk.math.Vector2b;
|
||||
import org.atriasoft.ewol.widget.Entry;
|
||||
import org.atriasoft.ewol.widget.Sizer;
|
||||
import org.atriasoft.ewol.widget.Sizer.DisplayMode;
|
||||
import org.atriasoft.ewol.widget.Windows;
|
||||
|
||||
public class MainWindows extends Windows {
|
||||
@ -9,9 +11,20 @@ public class MainWindows extends Windows {
|
||||
public MainWindows() {
|
||||
setPropertyTitle("Simple sample test");
|
||||
//EwolObject.getContext().getFontDefault().setName("FreeSans");
|
||||
|
||||
Sizer sizerMain = new Sizer(DisplayMode.modeVert);
|
||||
sizerMain.setPropertyExpand(new Vector2b(true, true));
|
||||
sizerMain.setPropertyFill(new Vector2b(true, true));
|
||||
setSubWidget(sizerMain);
|
||||
|
||||
Entry simpleEntry = new Entry();
|
||||
simpleEntry.setPropertyExpand(new Vector2b(true, true));
|
||||
simpleEntry.setPropertyFill(new Vector2b(true, false));
|
||||
setSubWidget(simpleEntry);
|
||||
sizerMain.subWidgetAdd(simpleEntry);
|
||||
|
||||
Entry simpleEntry2 = new Entry();
|
||||
simpleEntry2.setPropertyExpand(new Vector2b(true, true));
|
||||
simpleEntry2.setPropertyFill(new Vector2b(true, false));
|
||||
sizerMain.subWidgetAdd(simpleEntry2);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user