|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlivespace.services.EntityClients
public class EntityClients
Helper class to hold a set of entity clients. The class also provides a set of convenience methods to work with the contained entities. This class was refactored from livespace.services.room_presentation.EntityClients
Constructor Summary | |
---|---|
EntityClients(Elvin elvin,
RoomEntity room,
String[] entityTypes)
|
Method Summary | |
---|---|
void |
addEntityClient(String type)
|
void |
addPropertyListener(PropertyListener listener)
This method should be called only after all entity clients have been added, otherwise new entities will not have had the listener added. |
void |
dispose()
Dispose of the object (unregister listeners, close open resources etc). |
Entity |
find(String id)
Finds an entity with a matching id within the set of entity clients |
Map<String,EntityClient> |
getClients()
|
EntityClient |
getEntityClient(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityClients(Elvin elvin, RoomEntity room, String[] entityTypes)
Method Detail |
---|
public void dispose()
Disposable
dispose
in interface Disposable
public void addPropertyListener(PropertyListener listener)
listener
- public EntityClient getEntityClient(String type)
public void addEntityClient(String type) throws IOException
IOException
public Map<String,EntityClient> getClients()
public Entity find(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |