void addWidgets() { widget( "EntityTypeList", WidgetType.EntityTypeSet, new PortRest("entity_type_item", EntityType.name())); widget("EntityTypeItem", EntityType, new PortRest("entity_type_page", EntityType.name())); widget("EntityTitle", EntityType); }
@Override void addWidgets() { widget("EntityTypeList", EntityTypeSet, new PortRest("entity_type_item", EntityType.name())); widget("EntityTypeItem", EntityType, new PortRest("entity_type_page", EntityType.name())); widget( "ListingTable", EntityType, new PortRest("table_head", PropertyType.name()), new PortRest("table_line", Entity.name())); widget("TableHead", PropertyType); widget("TableLine", Entity, new PortRest("line_cell", Property.name())); widget("TableCell", Property); }
@Override void addWidgets() { widget("EntityTypeList", EntityTypeSet, new PortRest("entity_type_item", EntityType.name())); widget("EntityTypeItem", EntityType, new PortRest("entity_type_page", EntityType.name())); widget("EntityTitle2", EntityType, new PortRest("entity_list", EntityType.name())); widget("EntityOrderedList", EntityType, new PortRest("entity_item", Entity.name())); widget("EntityItem2", Entity, new PortRest("property_value", Property.name())); widget("SimpleValue", Property); widget("SimpleValue2", Property); widget("SimpleValue3", Property); widget("SimpleValue4", Property); widget("SimpleValue5", Property); }
public static Entity createEntity(EntityType type) { if (!initialized) { init(); } Entity result = null; if (entityCache.containsKey(type)) { LOGGER.debug("Entity with type " + type.name() + " already loaded! Using cached Version!"); return entityCache.get(type).clone(); } Model model = OBJLoader.loadObjModel(type.getFolderName()); // Überprüfen ob textur verwendet werden soll; Texture texture = null; texture = LoaderUtils.loadTexture(type.getTexturePath()); // TEST_DIMENSIONS result = new Entity(type, model); result.setUseMultitexture(false); result.setPrimaryTexture(texture); LOGGER.debug("New entity created"); addEntityToCache(result); return result; }