Search in sources :

Example 6 with ListNode

use of com.codename1.rad.nodes.ListNode in project CodeRAD by shannah.

the class TabsEntityView method createListTab.

private EntityView createListTab(ListNode ln) {
    PropertySelector selector = ln.createPropertySelector(getEntity());
    if (selector == null) {
        return null;
    }
    EntityList tabEntity = selector.getEntityList(null);
    if (tabEntity == null) {
        return null;
    }
    ln.setAttributesIfNotExists(UI.param(SCROLLABLE_Y, true));
    return new EntityListView(tabEntity, ln);
}
Also used : PropertySelector(com.codename1.rad.models.PropertySelector) EntityList(com.codename1.rad.models.EntityList)

Example 7 with ListNode

use of com.codename1.rad.nodes.ListNode in project CodeRAD by shannah.

the class TabsEntityView method createTab.

private EntityView createTab(Node node) {
    ViewNode vn = (ViewNode) node.as(ViewNode.class);
    if (vn != null) {
        return createViewTab(vn);
    }
    ListNode ln = (ListNode) node.as(ListNode.class);
    if (ln != null) {
        return createListTab(ln);
    }
    return null;
}
Also used : ViewNode(com.codename1.rad.nodes.ViewNode) ListNode(com.codename1.rad.nodes.ListNode)

Aggregations

ListNode (com.codename1.rad.nodes.ListNode)5 ActionNode (com.codename1.rad.nodes.ActionNode)4 EntityList (com.codename1.rad.models.EntityList)3 Log (com.codename1.io.Log)2 NetworkEvent (com.codename1.io.NetworkEvent)2 ViewController (com.codename1.rad.controllers.ViewController)2 Entity (com.codename1.rad.models.Entity)2 EntityTypeBuilder.entityTypeBuilder (com.codename1.rad.models.EntityTypeBuilder.entityTypeBuilder)2 ViewNode (com.codename1.rad.nodes.ViewNode)2 Thing (com.codename1.rad.schemas.Thing)2 UI (com.codename1.rad.ui.UI)2 ProfileListView (com.codename1.rad.ui.entityviews.ProfileListView)2 CN (com.codename1.ui.CN)2 Dialog (com.codename1.ui.Dialog)2 Display (com.codename1.ui.Display)2 FontImage (com.codename1.ui.FontImage)2 Form (com.codename1.ui.Form)2 Label (com.codename1.ui.Label)2 Toolbar (com.codename1.ui.Toolbar)2 BorderLayout (com.codename1.ui.layouts.BorderLayout)2