Search in sources :

Example 76 with Property

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);
    }
}
Also used : Entity(com.codename1.rad.models.Entity) Property(com.codename1.rad.models.Property)

Example 77 with Property

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);
        }
    }
}
Also used : FieldNode(com.codename1.rad.nodes.FieldNode) Property(com.codename1.rad.models.Property)

Example 78 with Property

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;
}
Also used : PropertySelector(com.codename1.rad.models.PropertySelector)

Example 79 with Property

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;
}
Also used : PropertySelector(com.codename1.rad.models.PropertySelector)

Aggregations

Entity (com.codename1.rad.models.Entity)22 Property (com.codename1.rad.models.Property)16 IOException (java.io.IOException)11 ResultParser (com.codename1.rad.io.ResultParser)10 ArrayList (java.util.ArrayList)10 SimpleDateFormat (com.codename1.l10n.SimpleDateFormat)9 Component (com.codename1.ui.Component)9 Element (com.codename1.xml.Element)8 ParseException (com.codename1.l10n.ParseException)7 Container (com.codename1.ui.Container)7 Label (com.codename1.ui.Label)7 SortedProperties (com.codename1.ant.SortedProperties)6 Log (com.codename1.io.Log)6 Form (com.codename1.ui.Form)6 AnimationObject (com.codename1.ui.animations.AnimationObject)6 Map (java.util.Map)6 Thing (com.codename1.rad.schemas.Thing)5 XMLParser (com.codename1.xml.XMLParser)5 StringReader (java.io.StringReader)5 List (java.util.List)5