leon.data
Class LyAdvancedWorkSpaceEvent
java.lang.Object
leon.data.LyWorkSpaceEvent
leon.data.LyAdvancedWorkSpaceEvent
public final class LyAdvancedWorkSpaceEvent
- extends LyWorkSpaceEvent
This class implements an event of adding/removing/changing an object within a workspace (dynamic
objects list). These events are sent to 'registered listeners' : classes which implements the
LyWorkSpaceListener interface and that were added as listeners on a workspace.
- See Also:
LyWorkSpace
,
LyWorkSpaceListener
Field Summary |
static java.lang.String |
__VERSION
File version |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- File version
- See Also:
- Constant Field Values
LyAdvancedWorkSpaceEvent
public LyAdvancedWorkSpaceEvent(LyWorkSpace source,
LyWorkSpaceEvent.Type type,
LyObject object,
int index,
short oldState)
- Constructs an event of the given type concerning the specified object without old position
and associated values.
- Parameters:
source
- Workspace that creates this event.type
- Type of event that occured. One of the TYPE_XXX constants.object
- Object concerned by the notification.index
- Index of the object in the source workspaceoldState
- Old value of the object state.
LyAdvancedWorkSpaceEvent
public LyAdvancedWorkSpaceEvent(LyWorkSpace source,
LyWorkSpaceEvent.Type type,
LyObject object,
int index,
LyAdvancedDataSourceEvent origin)
- Constructs an event of the given type concerning the specified object without old position
and associated values.
- Parameters:
source
- Workspace that creates this event.type
- Type of event that occured. One of the TYPE_XXX constants.object
- Object concerned by the notification.index
- Index of the object in the workspace.origin
- Origin of this event
getOldState
public short getOldState()
- Gets the old state of this event.
- Returns:
- the old state
getOrigin
public LyAdvancedDataSourceEvent getOrigin()
- Gets the origin of this event.
- Returns:
- the origin of this event
Website: W4 S.A., contact us: support@w4global.com