use of com.codename1.rad.models.Property in project CodeRAD by shannah.
the class EntityListTableModel method setValueAt.
@Override
public void setValueAt(Object value, int rowIndex, int columnIndex) {
Property prop = columns.getColumn(columnIndex).getProperty(entityType);
Entity e = entities.get(rowIndex);
if (prop != null) {
prop.setValue(e.getEntity(), value);
}
}
use of com.codename1.rad.models.Property in project CodeRAD by shannah.
the class EntityListTableModel method rebuildColMap.
private void rebuildColMap() {
colMap.clear();
int len = columns.getColumnCount();
for (int i = 0; i < len; i++) {
FieldNode def = columns.getColumn(i);
Property p = def.getProperty(entityType);
if (p != null) {
colMap.put(p, i);
}
}
}
use of com.codename1.rad.models.Property in project CodeRAD by shannah.
the class ImageContainer method createToFileSystem.
public static ImageContainer createToFileSystem(Entity entity, Property property, String filePath) {
ImageContainer out = new ImageContainer();
out.filePath = filePath;
out.useFileSystem = true;
out.property = new PropertySelector(entity, property);
return out;
}
use of com.codename1.rad.models.Property 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;
}
Aggregations