Class ConsumableActionEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
java.awt.event.ActionEvent
org.pentaho.reporting.libraries.designtime.swing.ConsumableActionEvent
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASKFields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, 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_MASKFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionConsumableActionEvent(Object source, int id, String command) Constructs anActionEventobject.ConsumableActionEvent(Object source, int id, String command, int modifiers) Constructs anActionEventobject with modifier keys.ConsumableActionEvent(Object source, int id, String command, long when, int modifiers) Constructs anActionEventobject with the specified modifier keys and timestamp. -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()Consumes this event, if this event can be consumed.booleanReturns whether this event has been consumed.Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramStringMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ConsumableActionEvent
Constructs anActionEventobject. Note that passing in an invalididresults in unspecified behavior. This method throws anIllegalArgumentExceptionifsourceisnull. Anullcommandstring is legal, but not recommended.- 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- Throws:
IllegalArgumentException- ifsourceis null
-
ConsumableActionEvent
Constructs anActionEventobject with modifier keys. Note that passing in an invalididresults in unspecified behavior. This method throws anIllegalArgumentExceptionifsourceisnull. Anullcommandstring is legal, but not recommended.- 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- Throws:
IllegalArgumentException- ifsourceis null
-
ConsumableActionEvent
Constructs anActionEventobject with the specified modifier keys and timestamp. Note that passing in an invalididresults in unspecified behavior. This method throws anIllegalArgumentExceptionifsourceisnull. Anullcommandstring is legal, but not recommended.- 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- Throws:
IllegalArgumentException- ifsourceis null- Since:
- 1.4
-
-
Method Details
-
isConsumed
public boolean isConsumed()Returns whether this event has been consumed.- Overrides:
isConsumedin classAWTEvent
-
consume
public void consume()Consumes this event, if this event can be consumed. Only low-level, system events can be consumed
-