LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.app
Class LyGlobalEvent

java.lang.Object
  extended by leon.app.LyGlobalEvent

public class LyGlobalEvent
extends java.lang.Object

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.

See Also:
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_ACTIVE_VIEW
          Event type : ACTIVE_VIEW, active view change event.
static short TYPE_ALL
          Event type : ALL, all the types of events.
static short TYPE_SELECTION
          Event type : SELECTION, selection change event.
 
Constructor Summary
LyGlobalEvent(short type, java.lang.Object data)
          Constructs a data source event of the given type with the given data.
 
Method Summary
 java.lang.Object getData()
          Gets data associated to this event.
 short getType()
          Gets the type of this event.
 
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

TYPE_ALL

public static final short TYPE_ALL
Event type : ALL, all the types of events.

See Also:
Constant Field Values

TYPE_ACTIVE_VIEW

public static final short TYPE_ACTIVE_VIEW
Event type : ACTIVE_VIEW, active view change event.

See Also:
Constant Field Values

TYPE_SELECTION

public static final short TYPE_SELECTION
Event type : SELECTION, selection change event.

See Also:
Constant Field Values

LAST_TYPE

public static final short LAST_TYPE
Constant : LAST_TYPE, the last number type used by Leonardi. User types must be greater than this value.

See Also:
Constant Field Values
Constructor Detail

LyGlobalEvent

public LyGlobalEvent(short type,
                     java.lang.Object data)
Constructs a data source event of the given type with the given data.

Parameters:
type - Type of event which occured. Possible values are TYPE_XXX constants:
data - data associated to this event
Method Detail

getType

public short getType()
Gets the type of this event.

Returns:
Type of this event. Possible values are TYPE_XXX constants:

getData

public java.lang.Object getData()
Gets data associated to this event.

Returns:
The data associated to this event.

(c) January 2013 - W4 S.A.

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