| 
 | Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.keyboard.KeyUtil
Some generic methods related to KeyEvents and KeyStrokes.
| Constructor Summary | |
| KeyUtil() | |
| Method Summary | |
| static java.lang.String | getAcceleratorTooltip(int cmdID) | 
| static boolean | isActionKey(javax.swing.KeyStroke ks)Only the KeyEvent knows what is an action key, the KeyStroke does not. | 
| static boolean | isModifierKey(int keyCode)Determines if the key is a modifier (Ctrl, Shift, ...) | 
| static boolean | isModifierKey(javax.swing.KeyStroke keyStroke)Determines if the key is a modifier (Ctrl, Shift, ...) | 
| static void | removeKeyStrokesFromInputMap(javax.swing.JComponent component,
                             javax.swing.KeyStroke[] keyStrokes,
                             int mapType)Remove all mappings bound to the specified set of KeyStrokes
 for theInputMapof the specified type that is associated with
 the specifiedJComponent. | 
| static void | removeKeyStrokesFromInputMaps(javax.swing.JComponent component,
                              javax.swing.KeyStroke[] keyStrokes)Remove all mappings bound to the specified set of KeyStrokes
 for eachInputMapthat is associated with the specifiedJComponent. | 
| static java.lang.String | toString(javax.swing.KeyStroke ks)Returns a user readable version of the keystroke like "Ctrl+K". | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public KeyUtil()
| Method Detail | 
public static java.lang.String toString(javax.swing.KeyStroke ks)
ks - the keystroke
public static boolean isActionKey(javax.swing.KeyStroke ks)
public static boolean isModifierKey(int keyCode)
public static boolean isModifierKey(javax.swing.KeyStroke keyStroke)
public static void removeKeyStrokesFromInputMaps(javax.swing.JComponent component,
                                                 javax.swing.KeyStroke[] keyStrokes)
KeyStrokes
 for each InputMap that is associated with the specified JComponent.
public static void removeKeyStrokesFromInputMap(javax.swing.JComponent component,
                                                javax.swing.KeyStroke[] keyStrokes,
                                                int mapType)
KeyStrokes
 for the InputMap of the specified type that is associated with
 the specified JComponent.
 The mapType parameter should be one of the following
 values:
 
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
 JComponent.WHEN_FOCUSED
 JComponent.WHEN_IN_FOCUSED_WINDOW
 
public static java.lang.String getAcceleratorTooltip(int cmdID)
cmdID - the ID of a command present in the global keymap
| 
 | Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.