Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Standard Edition

Uses of Class
javax.swing.KeyStroke

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()
          Return the KeyStrokes that will initiate registered actions.
 KeyStroke JMenuItem.getAccelerator()
          Returns the KeyStroke which serves as an accelerator for the menu item.
static KeyStroke KeyStroke.getKeyStroke(char keyChar)
          Return a shared instance of a key stroke that is activated when the key is pressed (i.e.
static KeyStroke KeyStroke.getKeyStroke(char keyChar, boolean onKeyRelease)
          Deprecated. use getKeyStroke(char)
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 with the following syntax and return an a KeyStroke:
 

Methods in javax.swing with parameters of type KeyStroke
 void JComponent.registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)
          Register a new keyboard action.
 void JComponent.registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
          Calls registerKeyboardAction(ActionListener,String,KeyStroke,condition) with a null command.
 void JComponent.unregisterKeyboardAction(KeyStroke aKeyStroke)
          Unregister a keyboard action.
 int JComponent.getConditionForKeyStroke(KeyStroke aKeyStroke)
          Return the condition that determines whether a registered action occurs in response to the specified keystroke.
 ActionListener JComponent.getActionForKeyStroke(KeyStroke aKeyStroke)
          Return the object that will perform the action registered for a given keystroke.
 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.
 

Uses of KeyStroke in javax.swing.plaf.basic
 

Fields in javax.swing.plaf.basic declared as KeyStroke
protected  KeyStroke BasicDesktopPaneUI.minimizeKey
           
protected  KeyStroke BasicDesktopPaneUI.maximizeKey
           
protected  KeyStroke BasicDesktopPaneUI.closeKey
           
protected  KeyStroke BasicDesktopPaneUI.navigateKey
           
protected  KeyStroke BasicDesktopPaneUI.navigateKey2
           
protected  KeyStroke BasicTabbedPaneUI.upKey
           
protected  KeyStroke BasicTabbedPaneUI.downKey
           
protected  KeyStroke BasicTabbedPaneUI.leftKey
           
protected  KeyStroke BasicTabbedPaneUI.rightKey
           
protected  KeyStroke BasicToolBarUI.upKey
           
protected  KeyStroke BasicToolBarUI.downKey
           
protected  KeyStroke BasicToolBarUI.leftKey
           
protected  KeyStroke BasicToolBarUI.rightKey
           
protected  KeyStroke BasicSplitPaneUI.upKey
          The keystrokes that the JSplitPane is supposed to handle.
protected  KeyStroke BasicSplitPaneUI.downKey
           
protected  KeyStroke BasicSplitPaneUI.leftKey
           
protected  KeyStroke BasicSplitPaneUI.rightKey
           
protected  KeyStroke BasicSplitPaneUI.homeKey
           
protected  KeyStroke BasicSplitPaneUI.endKey
           
protected  KeyStroke BasicSplitPaneUI.dividerResizeToggleKey
           
protected  KeyStroke BasicInternalFrameUI.openMenuKey
           
 

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.JTextComponent.KeyBinding(KeyStroke key, String actionName)
          Creates a new key binding.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.