use of com.codename1.rad.models.PropertySelector in project CodeRAD by shannah.
the class ImageContainer method createToStorage.
public static ImageContainer createToStorage(Entity entity, Property property, String storageFile) {
ImageContainer out = new ImageContainer();
out.storageFile = storageFile;
out.useStorage = true;
out.property = new PropertySelector(entity, property);
return out;
}
use of com.codename1.rad.models.PropertySelector 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);
}
use of com.codename1.rad.models.PropertySelector 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);
}
Aggregations