org.karora.cooee.ng.model
Class ActionEventEx

java.lang.Object
  extended by java.util.EventObject
      extended by org.karora.cooee.app.event.ActionEvent
          extended by org.karora.cooee.ng.model.ActionEventEx
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TableActionEventEx, TreeActionEventEx

public class ActionEventEx
extends ActionEvent

ActionEventEx extends ActionEvent and provides information about what meta key was pressed at the time the user raised this event.

See Also:
Serialized Form

Field Summary
static int METAKEY_ALT
          Used to indicate whether the 'alt' key was depressed during the firing of the event.
static int METAKEY_CONTROL
          Used to indicate whether the 'ctrl' key was depressed during the firing of the event.
static int METAKEY_META
          Used to indicate whether the 'meta' key was depressed during the firing of the event.
static int METAKEY_NONE
          Used to indicate that NO meta key was pressed during the event.
static int METAKEY_SHIFT
          Used to indicate whether the 'shift' key was depressed during the firing of the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActionEventEx(java.lang.Object source, java.lang.String command)
          Constructs a ActionEventEx
ActionEventEx(java.lang.Object source, java.lang.String command, int metaKeyInfo)
          Constructs a ActionEventEx
 
Method Summary
 int getMetaKeyInfo()
           
 
Methods inherited from class org.karora.cooee.app.event.ActionEvent
getActionCommand
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METAKEY_NONE

public static final int METAKEY_NONE
Used to indicate that NO meta key was pressed during the event.

See Also:
Constant Field Values

METAKEY_ALT

public static final int METAKEY_ALT
Used to indicate whether the 'alt' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name.

See Also:
Constant Field Values

METAKEY_SHIFT

public static final int METAKEY_SHIFT
Used to indicate whether the 'shift' key was depressed during the firing of the event.

See Also:
Constant Field Values

METAKEY_CONTROL

public static final int METAKEY_CONTROL
Used to indicate whether the 'ctrl' key was depressed during the firing of the event.

See Also:
Constant Field Values

METAKEY_META

public static final int METAKEY_META
Used to indicate whether the 'meta' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name.

See Also:
Constant Field Values
Constructor Detail

ActionEventEx

public ActionEventEx(java.lang.Object source,
                     java.lang.String command)
Constructs a ActionEventEx

Parameters:
source - - the source of the event
command - - the command associated with the event

ActionEventEx

public ActionEventEx(java.lang.Object source,
                     java.lang.String command,
                     int metaKeyInfo)
Constructs a ActionEventEx

Parameters:
source - - the source of the event
command - - the command associated with the event
metaKeyInfo - - the metaKey information in play when the event was raised. This can be one of the following
  • METAKEY_NONE - no meta keys were pressed during the action event
  • METAKEY_ALT - the 'alt' key was pressed during the action event
  • METAKEY_SHIFT - the 'shift' key was pressed during the action event
  • METAKEY_CONTROL - the 'control' key was pressed during the action event
  • METAKEY_META - the 'meta' key was pressed during the action event
Method Detail

getMetaKeyInfo

public int getMetaKeyInfo()
Returns:
the meta keys in play when the action was raised. This can be one of the following
  • METAKEY_NONE - no meta keys were pressed during the action event
  • METAKEY_ALT - the 'alt' key was pressed during the action event
  • METAKEY_SHIFT - the 'shift' key was pressed during the action event
  • METAKEY_CONTROL - the 'control' key was pressed during the action event
  • METAKEY_META - the 'meta' key was pressed during the action event


Copyright © 2009. All Rights Reserved.