LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.event
Class LyActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by leon.view.event.LyEvent
          extended by leon.view.event.LyActionEvent
All Implemented Interfaces:
java.io.Serializable

public class LyActionEvent
extends LyEvent

The listener interface for receiving action events.

See Also:
Serialized Form

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyActionEvent(java.lang.Object source)
          Constructor.
LyActionEvent(java.lang.Object source, java.lang.String sourceId, java.lang.String value, int actionType)
          Constructor.
 
Method Summary
 java.lang.String getAdditionalValue()
          Accessor to the additional value associated to this action.
 java.lang.Object getParameter()
          Accessor to the action parameter.
 java.lang.String getSourceId()
          The id of the field which contains the sourve of the action.
 int getType()
          Some components may return various actions and the type depends on the nature of the source.
 java.lang.String getValue()
          Value associated to this event (optional).
 void setAdditionalValue(java.lang.String value)
          Accessor to the additional value associated to this action.
 void setParameter(java.lang.Object parameter)
          Accessor to the action parameter.
 void setSourceId(java.lang.String sourceId)
          The id of the field which contains the sourve of the action.
 void setValue(java.lang.String value)
          Value associated to this event (optional).
 
Methods inherited from class leon.view.event.LyEvent
addIndex, consume, getIndex, getSubIndex, isConsumed, setSubIndex
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyActionEvent

public LyActionEvent(java.lang.Object source)
Constructor.


LyActionEvent

public LyActionEvent(java.lang.Object source,
                     java.lang.String sourceId,
                     java.lang.String value,
                     int actionType)
Constructor.

Method Detail

getValue

public java.lang.String getValue()
Value associated to this event (optional).


setValue

public void setValue(java.lang.String value)
Value associated to this event (optional).


getAdditionalValue

public java.lang.String getAdditionalValue()
Accessor to the additional value associated to this action. The meaning of the value depends on the type of the event.

Returns:
the value

setAdditionalValue

public void setAdditionalValue(java.lang.String value)
Accessor to the additional value associated to this action. The meaning of the value depends on the type of the event.

Parameters:
value - the value

getSourceId

public java.lang.String getSourceId()
The id of the field which contains the sourve of the action.


setSourceId

public void setSourceId(java.lang.String sourceId)
The id of the field which contains the sourve of the action.


getType

public int getType()
Some components may return various actions and the type depends on the nature of the source. Usually, generic classes don not have to handle a specific implementation for this type.

Returns:
the action type, or -1 if none specified.

getParameter

public java.lang.Object getParameter()
Accessor to the action parameter. Nature depends on the type of the action. For instance, ACTION_POPUP events return clic Point

Returns:
parameter

setParameter

public void setParameter(java.lang.Object parameter)
Accessor to the action parameter.

Parameters:
parameter - freely set parameter which depends on the type of the action

(c) January 2013 - W4 S.A.

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