org.yasl.arch.impl.event
Class YASLActionEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
java.awt.event.ActionEvent
org.yasl.arch.impl.event.YASLActionEvent
- All Implemented Interfaces:
- Serializable
- public class YASLActionEvent
- extends ActionEvent
A generic action event that can be used to pass additional
information to an action via the add and get properties
methods.
- Version:
- 1.0
- Author:
- Jeff Chapman
- See Also:
- Serialized Form
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
YASLActionEvent
public YASLActionEvent(Object source,
int id,
String command)
- Constructs an
ActionEvent
object.
Note that passing in an invalid id
results in
unspecified behavior.
- Parameters:
source
- the object that originated the eventid
- an integer that identifies the eventcommand
- a string that may specify a command (possibly one
of several) associated with the event
YASLActionEvent
public YASLActionEvent(Object source,
int id,
String command,
int modifiers)
- Constructs an
ActionEvent
object with modifier keys.
Note that passing in an invalid id
results in
unspecified behavior.
- Parameters:
source
- the object that originated the eventid
- an integer that identifies the eventcommand
- a string that may specify a command (possibly one
of several) associated with the eventmodifiers
- the modifier keys held down during this action
YASLActionEvent
public YASLActionEvent(Object source,
int id,
String command,
long when,
int modifiers)
- Constructs an
ActionEvent
object with the specified
modifier keys and timestamp.
Note that passing in an invalid id
results in unspecified
behavior.
- Parameters:
source
- the object that originated the eventid
- an integer that identifies the eventcommand
- a string that may specify a command (possibly one
of several) associated with the eventwhen
- the time the event occurredmodifiers
- the modifier keys held down during this action- Since:
- 1.4
addProperty
public void addProperty(Object key,
Object value)
addProperties
public void addProperties(Map props)
getProperty
public Object getProperty(Object key)