JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class KeyActionInitiator

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

public class KeyActionInitiator
extends Object
implements ActionInitiator, Serializable

A KeyActionInitiator is used by HiGridAction to associate a combination of key code and modifier to a specific action on HiGrid.

See Also:
Serialized Form

Field Summary
 int keycode
          Key code.
 int modifier
          Modifier for the key code.
 
Fields inherited from interface com.klg.jclass.higrid.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.
 String toString()
          Convert to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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:

Method Detail

isMatch

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

Specified by:
isMatch in interface ActionInitiator

toString

public String toString()
Convert to a string.

Overrides:
toString in class Object

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