|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.data.LyObjectList
leon.data.LyWorkSpace
leon.data.LySimpleWorkSpace
public final class LySimpleWorkSpace
This class implements a simple workspace : dynamic objects list where objects are added and removed "by hand" (directly using addObject and removeObject methods) .
Objects of different classes can be managed in this type of workspace.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LySimpleWorkSpace(LyDataSession session,
boolean dynamic)
Constructs a simple workspace within a given session. |
|
LySimpleWorkSpace(LyDataSession session,
LyObject object,
boolean dynamic)
Constructs a simple workspace within a given session with a single object. |
|
LySimpleWorkSpace(LyDataSession session,
LyObjectList list,
boolean dynamic)
Constructs a simple workspace within a given session from an objects list. |
Method Summary | |
---|---|
void |
addList(LyObjectList list)
Adds objects of the specified list to this list. |
int |
addObject(LyObject object)
Adds an object in this workspace. |
int |
addObject(LyObject object,
int position)
Adds an object in this workspace at the given position. |
void |
allowMultipleOccurences()
Allow multiple occurences of the same object. |
LyInfoList<LyClassInfo> |
getClasses()
Return the list of all class infos to which objects of this workspace belong. |
int |
getCount(LyClassInfo classInfo)
Get count of objects for the given class info. |
boolean |
objectCreated(LyDataSourceEvent event)
Method for receiving an object creation. |
boolean |
objectModified(LyDataSourceEvent event)
Method for receiving an object modification. |
void |
registerClassInfo(LyClassInfo classInfo)
Add given class to known classes to be able to receive creation events. |
void |
removeList(LyObjectList list)
Removes objects of the specified list to this list. |
int |
removeObject(LyObject object)
Removes an object from this workspace. |
void |
setNotifyChange(boolean notifyChange)
Allows listeners to be notified on object changes for classes of this workspace concerning objects that are not in the workspace. |
void |
setNotifyCreation(boolean notifyCreation)
Allows listeners to be notified on object creations for classes of this workspace. |
Methods inherited from class leon.data.LyWorkSpace |
---|
addListener, dataSourceEventsGrouped, free, getListener, getListenerCount, getSession, getSources, isDynamic, isLocal, lock, objectDeleted, objectStateChanged, objectUserEvent, removeListener, reset, unlock |
Methods inherited from class leon.data.LyObjectList |
---|
contains, delete, delete, equals, equals, getIndex, getIntersection, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getObject, getObject, getObject, getObjects, getSize, getSize, getSort, getSortedList, indexOf, intersects, isEmpty, isSorted, iterator, set, setSort, setSortByName, setSorted, toObjectIds, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySimpleWorkSpace(LyDataSession session, boolean dynamic)
session
- Session in which this workspace is constructed.dynamic
- Specifies if this workspace is dynamic or not.public LySimpleWorkSpace(LyDataSession session, LyObject object, boolean dynamic)
session
- Session in which this workspace is constructed.object
- Object added in the constructed workspace.dynamic
- Specifies if this workspace is dynamic or not.public LySimpleWorkSpace(LyDataSession session, LyObjectList list, boolean dynamic)
session
- Session in which this workspace is constructed.list
- Objects list used to initialize this workspace.dynamic
- Specifies if this workspace is dynamic or not.Method Detail |
---|
public LyInfoList<LyClassInfo> getClasses()
getClasses
in class LyObjectList
public int getCount(LyClassInfo classInfo)
classInfo
- Class info for which objects count is requested.
public void setNotifyCreation(boolean notifyCreation)
notifyCreation
- Boolean indicating if notifications for creations are requested.public void setNotifyChange(boolean notifyChange)
notifyChange
- Boolean indicating if notifications for all changes are requested.public void registerClassInfo(LyClassInfo classInfo)
classInfo
- The class info to register.public int addObject(LyObject object)
object
- Object to add in the workspace.
LyObjectList.add(leon.data.LyObject)
public int addObject(LyObject object, int position)
object
- Object to add in the workspace.position
- Position where the object is added in the list.
public int removeObject(LyObject object)
object
- Object to remove from the workspace.
java.lang.IllegalArgumentException
- If the object was not found in this workspace.public void addList(LyObjectList list)
addList
in class LyWorkSpace
list
- Objects to add to this list.public void removeList(LyObjectList list)
list
- Objects to remove to this list.public boolean objectCreated(LyDataSourceEvent event)
objectCreated
in interface LyDataSourceListener
objectCreated
in class LyWorkSpace
event
- Event notifying the creation of an object.
public boolean objectModified(LyDataSourceEvent event)
objectModified
in interface LyDataSourceListener
objectModified
in class LyWorkSpace
event
- Event notifying the modification of an object.
public void allowMultipleOccurences()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |