|
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.LyEventManager
public class LyEventManager
This class is used to manage events in an application.
LyDataSource
,
LyObjectSource
,
LyDataSourceEvent
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static java.lang.String |
NO_SESSION_LISTENERS
|
Constructor Summary | |
---|---|
LyEventManager(LyApplication application)
Constructs a transaction manager. |
Method Summary | |
---|---|
void |
addErrorListener(LyErrorListener listener)
To add an error listener to this event manager. |
void |
addListener(LyGlobalEventListener listener,
short type)
Registers a listener to receive global events of the given type. |
void |
addListener(LyObjectSource objectSource,
LyDataSourceListener listener,
short type)
Registers a listener to receive events of the given type on objects contained within the specified object source. |
void |
addListener(LyObjectSource objectSource,
LyDataSourceListener listener,
java.util.Vector<LyField> fields)
Registers a listener to receive modification events concerning given fields on objects contained within the specified object source. |
void |
groupEvents(java.lang.String groupId)
Tells the manager to group all events for the specified group identifier. |
void |
postEvent(LyAdvancedDataSourceEvent event)
Method to post a user event on an object. |
void |
postEvent(LyGlobalEvent event)
Method to post a global event. |
void |
postGroupEvents(java.lang.String groupId)
To post all events grouped for the specified group identifier. |
void |
removeErrorListener(LyErrorListener listener)
Remove the specified listener from the list of error listener. |
void |
removeListener(LyGlobalEventListener listener)
Unregisters a listener for global events. |
void |
removeListener(LyGlobalEventListener listener,
short type)
Unregisters a listener for global events for a given type. |
void |
removeListener(LyObjectSource objectSource,
LyDataSourceListener listener)
Unregisters a listener for notifications from an object source. |
void |
removeListener(LyObjectSource objectSource,
LyDataSourceListener listener,
short type)
Unregisters a listener for notifications from an object source. |
void |
switchObjectSource(LyObjectSource oldSource,
LyObjectSource newSource)
Internal use only : An objectsource is replaced by another one. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String NO_SESSION_LISTENERS
Constructor Detail |
---|
public LyEventManager(LyApplication application)
application
- Current application instanceMethod Detail |
---|
public void addListener(LyObjectSource objectSource, LyDataSourceListener listener, short type)
objectSource
- The object source. If this parameter is null, the listener listens
to all type of objects.listener
- New listener. To receive these events, the listener have to
implement the LyDataSourceListener interface.type
- Indicates which type of event the listener wants to receive. Types
are defined as constant in LyDataSourceEvent class : TYPE_CREATE,
TYPE_SET, TYPE_DELETE
java.lang.IllegalArgumentException
- If the listener is null or if the given type is
unknown.public void switchObjectSource(LyObjectSource oldSource, LyObjectSource newSource)
oldSource
- the old object sourcenewSource
- the new object sourcepublic void addListener(LyObjectSource objectSource, LyDataSourceListener listener, java.util.Vector<LyField> fields)
objectSource
- The object source.listener
- New listener. To receive these events, the listener have to
implement the LyDataSourceListener interface.fields
- List of fields on which the listener wants to be notified when they
are modified.
java.lang.IllegalArgumentException
- If the listener is null.public void removeListener(LyObjectSource objectSource, LyDataSourceListener listener)
objectSource
- The object sourcelistener
- The listener which shall not receive further events.
java.lang.IllegalArgumentException
- If the listener is null or if it is not known as
listener on this data source.public void removeListener(LyObjectSource objectSource, LyDataSourceListener listener, short type)
objectSource
- The object sourcelistener
- The listener which shall not receive further events.type
- The type of event to be unregistered.
java.lang.IllegalArgumentException
- If the listener is null or if it is not known as
listener on this data source or if the given type is
unknown.public void postEvent(LyAdvancedDataSourceEvent event)
event
- The event to postpublic void addListener(LyGlobalEventListener listener, short type)
listener
- New listener. To receive these events, the listener have to implement
the LyGlobalEventListener interface.type
- Indicates which type of event the listener wants to receive. Types are
defined as constant in LyGlobalEvent class : TYPE_ACTIVE_VIEW,
TYPE_SELECTION
java.lang.IllegalArgumentException
- If the listener is null or if the given type is
unknown.public void removeListener(LyGlobalEventListener listener)
listener
- The listener which shall not receive further events.
java.lang.IllegalArgumentException
- If the listener is null or if it is not known as
listener.public void removeListener(LyGlobalEventListener listener, short type)
listener
- The listener which shall not receive further events.type
- The type of events to be unregistered.
java.lang.IllegalArgumentException
- If the listener is null or if it is not known as
listener or if the given type is unknown.public void postEvent(LyGlobalEvent event)
event
- The event to postpublic void addErrorListener(LyErrorListener listener)
listener
- The listener to add.public void removeErrorListener(LyErrorListener listener)
listener
- The listener to remove.public void groupEvents(java.lang.String groupId)
groupId
- The group identifier.public void postGroupEvents(java.lang.String groupId)
groupId
- The group identifier.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |