[DEV] missing file
This commit is contained in:
parent
bdfa14d2e6
commit
ce3e31743d
29
src/org/atriasoft/ewol/widget/CheckBox.java
Normal file
29
src/org/atriasoft/ewol/widget/CheckBox.java
Normal file
@ -0,0 +1,29 @@
|
||||
package org.atriasoft.ewol.widget;
|
||||
|
||||
import org.atriasoft.etk.math.Vector3b;
|
||||
import org.atriasoft.ewol.Gravity;
|
||||
import org.atriasoft.ewol.widget.Sizer.DisplayMode;
|
||||
|
||||
public class CheckBox extends Container {
|
||||
|
||||
public CheckBox() {
|
||||
final Sizer subs = new Sizer(DisplayMode.modeHori);
|
||||
subs.setPropertyLockExpand(Vector3b.TRUE);
|
||||
subs.setPropertyGravity(Gravity.CENTER);
|
||||
setSubWidget(subs);
|
||||
|
||||
final Tick tick = new Tick();
|
||||
tick.setPropertyExpand(new Vector3b(false, true, true));
|
||||
tick.setPropertyFill(Vector3b.FALSE);
|
||||
tick.setPropertyGravity(Gravity.CENTER);
|
||||
subs.subWidgetAdd(tick);
|
||||
|
||||
final Label label = new Label("No Label");
|
||||
label.setPropertyExpand(Vector3b.TRUE);
|
||||
label.setPropertyFill(Vector3b.FALSE);
|
||||
label.setPropertyGravity(Gravity.LEFT);
|
||||
subs.subWidgetAdd(label);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user