use of com.codename1.rad.nodes.ViewNode in project CodeRAD by shannah.
the class TabsEntityView method createViewTab.
private EntityView createViewTab(ViewNode vn) {
EntityViewFactory factory = vn.getViewFactory(null);
if (factory == null) {
return null;
}
Entity tabEntity = null;
PropertySelector sel = vn.createPropertySelector(getEntity());
if (sel == null) {
return null;
}
tabEntity = sel.getEntity(null);
if (tabEntity == null) {
return null;
}
return factory.createView(tabEntity, vn);
}
use of com.codename1.rad.nodes.ViewNode 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;
}
Aggregations