JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class KeyActionInitiator

java.lang.Object
  |
  +--com.klg.jclass.table.KeyActionInitiator
All Implemented Interfaces:
ActionInitiator, Serializable

public class KeyActionInitiator
extends Object
implements ActionInitiator, Serializable

KeyActionInitiator are used by TableAction to associate a combination of key code and modifier to a specific action on table.

See Also:
Serialized Form

Field Summary
 int keycode
          Key code.
 int modifier
          Modifier for the key code.
 
Fields inherited from interface com.klg.jclass.table.ActionInitiator
ANY_MODIFIER_MASK, NO_MODIFIER_MASK
 
Constructor Summary
KeyActionInitiator(int keycode, int modifier)
          Creates a new KeyActionInitiator given a key and modifier.
 
Method Summary
 boolean isMatch(AWTEvent e)
          Returns true if the given event matches the ActionInitiator settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keycode

public int keycode
Key code.


modifier

public int modifier
Modifier for the key code.

Constructor Detail

KeyActionInitiator

public KeyActionInitiator(int keycode,
                          int modifier)
Creates a new KeyActionInitiator given a key and modifier.

Valid modifiers are:

Parameters:
keycode - The key code
modifier - The modifier for the key code
Method Detail

isMatch

public boolean isMatch(AWTEvent e)
Returns true if the given event matches the ActionInitiator settings.

Specified by:
isMatch in interface ActionInitiator

Copyright © 2004 Quest Software Inc..
All rights reserved.