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

public class ConsumableActionEvent extends ActionEvent
See Also:
  • Constructor Details

    • ConsumableActionEvent

      public ConsumableActionEvent(Object source, int id, String command)
      Constructs an ActionEvent object.

      Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

      Parameters:
      source - the object that originated the event
      id - an integer that identifies the event
      command - a string that may specify a command (possibly one of several) associated with the event
      Throws:
      IllegalArgumentException - if source is null
    • ConsumableActionEvent

      public ConsumableActionEvent(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. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

      Parameters:
      source - the object that originated the event
      id - an integer that identifies the event
      command - a string that may specify a command (possibly one of several) associated with the event
      modifiers - the modifier keys held down during this action
      Throws:
      IllegalArgumentException - if source is null
    • ConsumableActionEvent

      public ConsumableActionEvent(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. This method throws an IllegalArgumentException if source is null. A null command string is legal, but not recommended.

      Parameters:
      source - the object that originated the event
      id - an integer that identifies the event
      command - a string that may specify a command (possibly one of several) associated with the event
      when - the time the event occurred
      modifiers - the modifier keys held down during this action
      Throws:
      IllegalArgumentException - if source is null
      Since:
      1.4
  • Method Details

    • isConsumed

      public boolean isConsumed()
      Returns whether this event has been consumed.
      Overrides:
      isConsumed in class AWTEvent
    • consume

      public void consume()
      Consumes this event, if this event can be consumed. Only low-level, system events can be consumed
      Overrides:
      consume in class AWTEvent