edu.neu.ccs.gui
Class KeyActionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.awt.AWTEvent
          extended byjava.awt.event.ActionEvent
              extended byedu.neu.ccs.gui.KeyActionEvent
All Implemented Interfaces:
Serializable

public class KeyActionEvent
extends ActionEvent

Class of events representing an action triggered by a key event.

Since:
1.0.1
Version:
2.2
See Also:
Serialized Form

Field Summary
protected  KeyEvent event
          The key event that triggered this key action event.
 
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
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
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
KeyActionEvent(KeyEvent evt, Object source)
          Constructs a key action event triggered by the given key event generated by the given source object.
KeyActionEvent(KeyEvent evt, Object source, int id, String command)
          Constructs a key action event triggered by the given key event generated by the given source object, with the given identifier and command name.
KeyActionEvent(KeyEvent evt, Object source, int id, String command, int modifiers)
          Constructs a key action event triggered by the given key event generated by the given source object, with the provided modifier keys.
 
Method Summary
 KeyEvent getKeyEvent()
          Returns the key event that triggered this key action event.
 
Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

event

protected KeyEvent event
The key event that triggered this key action event.

Constructor Detail

KeyActionEvent

public KeyActionEvent(KeyEvent evt,
                      Object source)
Constructs a key action event triggered by the given key event generated by the given source object.

Parameters:
evt - the triggering key event
source - the object that originated the event

KeyActionEvent

public KeyActionEvent(KeyEvent evt,
                      Object source,
                      int id,
                      String command)
Constructs a key action event triggered by the given key event generated by the given source object, with the given identifier and command name.

Parameters:
evt - the triggering key event
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

KeyActionEvent

public KeyActionEvent(KeyEvent evt,
                      Object source,
                      int id,
                      String command,
                      int modifiers)
Constructs a key action event triggered by the given key event generated by the given source object, with the provided modifier keys.

Parameters:
evt - the triggering key event
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
Method Detail

getKeyEvent

public KeyEvent getKeyEvent()
Returns the key event that triggered this key action event.