LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyAdvancedWorkSpaceEvent

java.lang.Object
  extended by leon.data.LyWorkSpaceEvent
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.data.LyWorkSpaceEvent
LyWorkSpaceEvent.Type
 
Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
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.
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.
 
Method Summary
 short getOldState()
          Gets the old state of this event.
 LyAdvancedDataSourceEvent getOrigin()
          Gets the origin of this event.
 
Methods inherited from class leon.data.LyWorkSpaceEvent
getEventInfo, getIndex, getObject, getOldIndex, getSource, getType, getValues, isIncremented, setEventInfo, setIncremented
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

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 workspace
oldState - 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
Method Detail

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

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com