|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.databeans.AbstractDataObject
dsto.dfc.databeans.SimpleDataObject
dsto.dfc.databeans.FancyDataObject
livespace.services.Entity
livespace.services.entities.room_presentation.RoomSchematicEntity
public class RoomSchematicEntity
Maintains a list of SchematicItem instances
Field Summary | |
---|---|
EntityRegistry |
schematicItems
set of SchematicItem instance |
static String |
TYPE
|
Fields inherited from class livespace.services.Entity |
---|
container, id, lastTouched, name, unconfirmedUpdates |
Fields inherited from class dsto.dfc.databeans.AbstractDataObject |
---|
listeners |
Fields inherited from interface dsto.dfc.databeans.IDataObject |
---|
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE |
Constructor Summary | |
---|---|
RoomSchematicEntity()
Constructor |
|
RoomSchematicEntity(String id)
|
|
RoomSchematicEntity(String id,
String name)
|
Method Summary | |
---|---|
boolean |
add(SchematicItem item)
Adds a SchematicItem instance to the container |
void |
addSchematicListener(PropertyListener listener)
Adds a listener to the container of SchemtaticItems instances |
SchematicItem |
createSchematicItem(Entity entity)
Creates a SchematicItem instance and add's the instance to the internal container |
SchematicItem |
createSchematicItem(Entity entity,
Point location)
Creates a SchematicItem instance and add's the instance to the internal container |
SchematicItem |
find(String entityId)
Finds a SchamaticItem instance based on the id of the represented entity |
String |
getType()
The type of the object (eg "room", "light", "volume", etc). |
Methods inherited from class livespace.services.Entity |
---|
create, createId, getElvin, getType, getTypeInfo, mutex, sameEntity, shallowClone, waitForProperty, waitForProperty, waitForProperty, waitForProperty |
Methods inherited from class dsto.dfc.databeans.FancyDataObject |
---|
childPropertyChanged, getValue, isTransient, propertyIterator, setValue |
Methods inherited from class dsto.dfc.databeans.SimpleDataObject |
---|
getFieldNames, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TYPE
public EntityRegistry schematicItems
Constructor Detail |
---|
public RoomSchematicEntity()
public RoomSchematicEntity(String id)
public RoomSchematicEntity(String id, String name)
Method Detail |
---|
public void addSchematicListener(PropertyListener listener)
listener
- public String getType()
Entity
NOTE: it is also a good practice to provide a static field that defines the entity type on the class: eg
public static final String ENTITY_TYPE = "room";
getType
in class Entity
public boolean add(SchematicItem item)
item
- public SchematicItem find(String entityId)
entityId
- public SchematicItem createSchematicItem(Entity entity)
entity
-
public SchematicItem createSchematicItem(Entity entity, Point location)
entity
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |