|
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.LyDataSourceEvent
public class LyDataSourceEvent
This class implements an event of creation/modification/deletion for an object within a data source. The event is sent to 'registered listeners' : classes which implements the LyDataSourceListener interface and which were added as listener of the dataSource.
LyDataSource
,
LyDataSourceListener
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
static short |
LAST_TYPE
Constant : LAST_TYPE, the last number type used by Leonardi. |
static short |
TYPE_ALL
Event type : ALL, all the types of events. |
static short |
TYPE_CREATE
Event type : CREATE, creation of one object. creating a new object |
static short |
TYPE_DELETE
Event type : DELETE, deletion of one object. |
static short |
TYPE_ERROR
Event type : ERROR_CHANGED, state change of one object. |
static short |
TYPE_ERROR_ADDED
Event type : ERROR_ADDED, error added to one object. |
static short |
TYPE_ERROR_REMOVED
Event type : ERROR_REMOVED, error removed from one object. |
static short |
TYPE_SELECTION
Event type : SELECTION_CHANGED, selection change of one object. |
static short |
TYPE_SET
Event type : SET, modification of one object. |
static short |
TYPE_VISIBILITY
Event type : VISIBILITY_CHANGED, visibility change of one object. |
Constructor Summary | |
---|---|
LyDataSourceEvent(LyDataSource source,
short type,
java.lang.Object object)
Constructs a data source event of the given type with no associated values. |
|
LyDataSourceEvent(LyDataSource source,
short type,
java.lang.Object object,
LyValueSet values)
Constructs a data source event of the given type with the specified values. |
Method Summary | |
---|---|
LyError |
getError()
Gets the error raised or removed o the object concerned by this event. |
LyEventInfo |
getEventInfo()
|
java.lang.String |
getGroupId()
Access to the group identifier of this event. |
java.lang.Object |
getObject()
Gets object concerned by this notification. |
LyDataSource |
getSource()
Gets data source which created and threw this event. |
short |
getType()
Gets type of this event. |
LyValueSet |
getValues()
Gets the set of values associated to this event. |
boolean |
isLoading()
Access to the 'loading' status. |
boolean |
isLocal()
Access to the 'local' status. |
boolean |
isNotified()
Access to the 'notified' status. |
void |
setEventInfo(LyEventInfo eventInfo)
|
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 short TYPE_ALL
public static final short TYPE_CREATE
public static final short TYPE_SET
public static final short TYPE_DELETE
public static final short TYPE_SELECTION
public static final short TYPE_VISIBILITY
public static final short TYPE_ERROR
public static final short TYPE_ERROR_ADDED
public static final short TYPE_ERROR_REMOVED
public static final short LAST_TYPE
Constructor Detail |
---|
public LyDataSourceEvent(LyDataSource source, short type, java.lang.Object object, LyValueSet values)
source
- Transmitter which created the event.type
- Type of event which occured. One of the TYPE_XXX constants.object
- Object concerned by this notification.values
- Set of values associated to this event. May be null.public LyDataSourceEvent(LyDataSource source, short type, java.lang.Object object)
source
- Transmitter which created the event.type
- Type of event which occured. One of the TYPE_XXX constants.object
- Object concerned by this notification.Method Detail |
---|
public short getType()
public LyDataSource getSource()
public java.lang.Object getObject()
public LyValueSet getValues()
public LyError getError()
public boolean isLoading()
public boolean isNotified()
public boolean isLocal()
public java.lang.String getGroupId()
public LyEventInfo getEventInfo()
public void setEventInfo(LyEventInfo eventInfo)
eventInfo
- The eventInfo to set.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |