Class LoadedActionEvent

All Implemented Interfaces:
Serializable

public class LoadedActionEvent extends ActionEvent
A subclass of ActionEvent extended to carry additional data as payload.
See Also:
  • Constructor Details

    • LoadedActionEvent

      public LoadedActionEvent(Object source, int id, String command, Object data)
      Constructor.
      Parameters:
      source - The object that originated the event
      id - An integer that identifies the event. For information on allowable values, see the class description for ActionEvent
      command - A string that may specify a command (possibly one of several) associated with the event
      data - Payload data of the event
      Throws:
      IllegalArgumentException - if source is null
    • LoadedActionEvent

      public LoadedActionEvent(Object source, int id, String command, int modifiers, Object data)
      Constructor.
      Parameters:
      source - The object that originated the event
      id - An integer that identifies the event. For information on allowable values, see the class description for ActionEvent
      command - A string that may specify a command (possibly one of several) associated with the event
      modifiers - The modifier keys down during event (shift, ctrl, alt, meta). Passing negative parameter is not recommended. Zero value means that no modifiers were passed
      data - Payload data of the event
      Throws:
      IllegalArgumentException - if source is null
    • LoadedActionEvent

      public LoadedActionEvent(Object source, int id, String command, long when, int modifiers, Object data)
      Constructor.
      Parameters:
      source - The object that originated the event
      id - An integer that identifies the event. For information on allowable values, see the class description for ActionEvent
      command - A string that may specify a command (possibly one of several) associated with the event
      when - A long that gives the time the event occurred. Passing negative or zero value is not recommended
      modifiers - The modifier keys down during event (shift, ctrl, alt, meta). Passing negative parameter is not recommended. Zero value means that no modifiers were passed
      data - Payload data of the event
      Throws:
      IllegalArgumentException - if source is null
  • Method Details

    • getData

      public Object getData()
      Returns payload data of the action event.
      Returns:
      Payload data of the action event