|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use KeyStroke | |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.plaf.basic | Provides user interface objects built according to the Basic look-and-feel. |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
Uses of KeyStroke in javax.swing |
Methods in javax.swing that return KeyStroke | |
KeyStroke[] |
JComponent.getRegisteredKeyStrokes()
Returns the KeyStrokes that will initiate registered actions. |
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar)
Return a shared instance of a key stroke that is activated when the key is pressed (that is, a KeyStroke for the KEY_TYPED event). |
static KeyStroke |
KeyStroke.getKeyStroke(char keyChar,
boolean onKeyRelease)
Deprecated. use getKeyStroke(char) |
static KeyStroke |
KeyStroke.getKeyStroke(Character keyChar,
int modifiers)
Return a shared instance of a key stroke, given a character object and a set of modifiers. |
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode,
int modifiers,
boolean onKeyRelease)
Return a shared instance of a key stroke given a numeric keycode and a set of modifiers, specifying whether the key is activated when it is pressed or released. |
static KeyStroke |
KeyStroke.getKeyStroke(int keyCode,
int modifiers)
Return a shared instance of a key stroke given a char code and a set of modifiers -- the key is activated when it is pressed. |
static KeyStroke |
KeyStroke.getKeyStrokeForEvent(KeyEvent anEvent)
Return a keystroke from an event. |
static KeyStroke |
KeyStroke.getKeyStroke(String s)
Parse a string and return a KeyStroke. |
KeyStroke |
JMenuItem.getAccelerator()
Returns the KeyStroke which serves as an accelerator for the menu item. |
KeyStroke[] |
InputMap.keys()
Returns the KeyStroke s that are bound in this InputMap . |
KeyStroke[] |
InputMap.allKeys()
Returns an array of the KeyStroke s defined in this
InputMap and its parent. |
Methods in javax.swing with parameters of type KeyStroke | |
void |
JComponent.registerKeyboardAction(ActionListener anAction,
String aCommand,
KeyStroke aKeyStroke,
int aCondition)
This method is now obsolete, please use a combination of getActionMap() and getInputMap() for
similiar behavior. |
void |
JComponent.registerKeyboardAction(ActionListener anAction,
KeyStroke aKeyStroke,
int aCondition)
This method is now obsolete, please use a combination of getActionMap() and getInputMap() for
similiar behavior. |
void |
JComponent.unregisterKeyboardAction(KeyStroke aKeyStroke)
This method is now obsolete. |
int |
JComponent.getConditionForKeyStroke(KeyStroke aKeyStroke)
Returns the condition that determines whether a registered action occurs in response to the specified keystroke. |
ActionListener |
JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
Returns the object that will perform the action registered for a given keystroke. |
protected boolean |
JComponent.processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
Invoked to process the key bindings for ks as the result
of the KeyEvent e . |
void |
JMenuItem.setAccelerator(KeyStroke keyStroke)
Set the key combination which invokes the Menu Item's action listeners without navigating the menu hierarchy. |
void |
JMenu.setAccelerator(KeyStroke keyStroke)
setAccelerator is not defined for JMenu . |
void |
InputMap.put(KeyStroke keyStroke,
Object actionMapKey)
Adds a binding for keyStroke to actionMapKey . |
Object |
InputMap.get(KeyStroke keyStroke)
Returns the binding for keyStroke , messaging the
parent InputMap if the binding is not locally defined. |
void |
InputMap.remove(KeyStroke key)
Removes the binding for key from this
InputMap . |
void |
ComponentInputMap.put(KeyStroke keyStroke,
Object actionMapKey)
Adds a binding for keyStroke to actionMapKey . |
void |
ComponentInputMap.remove(KeyStroke key)
Removes the binding for key from this object. |
static boolean |
SwingUtilities.notifyAction(Action action,
KeyStroke ks,
KeyEvent event,
Object sender,
int modifiers)
Invokes actionPerformed on action if
action is enabled (and non null). |
protected boolean |
JTable.processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
|
protected boolean |
JMenuBar.processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed)
Subclassed to check all the child menus. |
Uses of KeyStroke in javax.swing.plaf.basic |
Fields in javax.swing.plaf.basic declared as KeyStroke | |
protected KeyStroke |
BasicTabbedPaneUI.upKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicTabbedPaneUI.downKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicTabbedPaneUI.leftKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicTabbedPaneUI.rightKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicToolBarUI.upKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicToolBarUI.downKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicToolBarUI.leftKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicToolBarUI.rightKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicInternalFrameUI.openMenuKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicDesktopPaneUI.minimizeKey
Deprecated. As of JDK version 1.3. |
protected KeyStroke |
BasicDesktopPaneUI.maximizeKey
Deprecated. As of JDK version 1.3. |
protected KeyStroke |
BasicDesktopPaneUI.closeKey
Deprecated. As of JDK version 1.3. |
protected KeyStroke |
BasicDesktopPaneUI.navigateKey
Deprecated. As of JDK version 1.3. |
protected KeyStroke |
BasicDesktopPaneUI.navigateKey2
Deprecated. As of JDK version 1.3. |
protected KeyStroke |
BasicSplitPaneUI.upKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.downKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.leftKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.rightKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.homeKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.endKey
Deprecated. As of Java 2 platform v1.3. |
protected KeyStroke |
BasicSplitPaneUI.dividerResizeToggleKey
Deprecated. As of Java 2 platform v1.3. |
Uses of KeyStroke in javax.swing.text |
Fields in javax.swing.text declared as KeyStroke | |
KeyStroke |
JTextComponent.KeyBinding.key
The key. |
Methods in javax.swing.text that return KeyStroke | |
KeyStroke[] |
Keymap.getBoundKeyStrokes()
Fetches all of the keystrokes in this map that are bound to some action. |
KeyStroke[] |
Keymap.getKeyStrokesForAction(Action a)
Fetches the keystrokes that will result in the given action. |
Methods in javax.swing.text with parameters of type KeyStroke | |
Action |
Keymap.getAction(KeyStroke key)
Fetches the action appropriate for the given symbolic event sequence. |
boolean |
Keymap.isLocallyDefined(KeyStroke key)
Determines if the given key sequence is locally defined. |
void |
Keymap.addActionForKeyStroke(KeyStroke key,
Action a)
Adds a binding to the keymap. |
void |
Keymap.removeKeyStrokeBinding(KeyStroke keys)
Removes a binding from the keymap. |
Constructors in javax.swing.text with parameters of type KeyStroke | |
JTextComponent.KeyBinding(KeyStroke key,
String actionName)
Creates a new key binding. |
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.