use of com.codename1.rad.models.Entity in project CodeRAD by shannah.
the class UIBuilder method htmlComponent.
public HTMLComponentPropertyView htmlComponent(Tag... tags) {
FieldNode fn = new FieldNode(UI.tags(tags));
fn.setParent(parentNode);
return new HTMLComponentPropertyView(new HTMLComponent(), entity, fn);
}
use of com.codename1.rad.models.Entity in project CodeRAD by shannah.
the class UIBuilder method spanLabel.
public SpanLabelPropertyView spanLabel(Tag... tags) {
FieldNode fn = new FieldNode(UI.tags(tags));
fn.setParent(parentNode);
return new SpanLabelPropertyView(new SpanLabel(), entity, fn);
}
use of com.codename1.rad.models.Entity in project CodeRAD by shannah.
the class NodeUtilFunctions method buildBottomActionsBar.
static void buildBottomActionsBar(Node node, Container target, Entity entity) {
Layout targetLayout = target.getLayout();
if (targetLayout instanceof BorderLayout) {
Container south = new Container(BoxLayout.y());
target.add(SOUTH, south);
target = south;
}
buildActionsBar(node, target, entity, node.getActions(FormNode.BOTTOM_RIGHT_MENU), node.getActions(FormNode.BOTTOM_LEFT_MENU), null, node.getActions(FormNode.BOTTOM_MENU));
}
use of com.codename1.rad.models.Entity in project CodeRAD by shannah.
the class NodeUtilFunctions method buildTopActionsBar.
static void buildTopActionsBar(Node node, Container target, Entity entity) {
Layout targetLayout = target.getLayout();
if (targetLayout instanceof BorderLayout) {
Container north = new Container(BoxLayout.y());
target.add(NORTH, north);
target = north;
}
buildActionsBar(node, target, entity, node.getActions(FormNode.TOP_RIGHT_MENU), node.getActions(FormNode.TOP_LEFT_MENU), node.getActions(FormNode.OVERFLOW_MENU), node.getActions(FormNode.TOP_MENU));
}
use of com.codename1.rad.models.Entity in project CodeRAD by shannah.
the class SwitchPropertyView method commit.
@Override
public void commit() {
if (getPropertySelector().isFalsey() != getComponent().isOff()) {
Entity e = getPropertySelector().getLeafEntity();
Property p = getPropertySelector().getLeafProperty();
e.getEntity().setBoolean(p, getComponent().isOn());
}
}
Aggregations