Search in sources :

Example 16 with EntityType

use of com.codename1.rad.models.EntityType 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)

Aggregations

ResultParser (com.codename1.rad.io.ResultParser)9 Entity (com.codename1.rad.models.Entity)9 SimpleDateFormat (com.codename1.l10n.SimpleDateFormat)7 Element (com.codename1.xml.Element)6 Property (com.codename1.rad.models.Property)5 XMLParser (com.codename1.xml.XMLParser)5 StringReader (java.io.StringReader)5 List (java.util.List)5 Map (java.util.Map)5 ParseException (com.codename1.l10n.ParseException)4 Log (com.codename1.io.Log)3 ParsingService (com.codename1.rad.io.ParsingService)3 PropertyParserCallback (com.codename1.rad.io.ResultParser.PropertyParserCallback)3 ResultParser.resultParser (com.codename1.rad.io.ResultParser.resultParser)3 com.codename1.rad.models (com.codename1.rad.models)3 BaseEntity.entityTypeBuilder (com.codename1.rad.models.BaseEntity.entityTypeBuilder)3 Result (com.codename1.rad.processing.Result)3 Person (com.codename1.rad.schemas.Person)3 Product (com.codename1.rad.schemas.Product)3 Thing (com.codename1.rad.schemas.Thing)3