Java Platform 1.2
Beta 4

Uses of Class
com.sun.java.swing.KeyStroke

Packages that use KeyStroke
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
 

Uses of KeyStroke in com.sun.java.swing
 

Methods in com.sun.java.swing that return KeyStroke
 KeyStroke[] JComponent.getRegisteredKeyStrokes()
          Return the KeyStrokes that will initiate registered actions.
 KeyStroke JMenuItem.getAccelerator()
           
static KeyStroke KeyStroke.getKeyStroke(char keyChar)
          Return a shared instance of a key stroke that is activated when the key is typed (i.e. a KeyStroke for the KeyEvent.
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 representation)
          Return a shared instance of a key stroke matching a string representation.
 

Methods in com.sun.java.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)
           
 void JMenu.setAccelerator(KeyStroke keyStroke)
           
 

Uses of KeyStroke in com.sun.java.swing.text
 

Fields in com.sun.java.swing.text declared as KeyStroke
 KeyStroke JTextComponent.KeyBinding.key
          The key.
 

Methods in com.sun.java.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 com.sun.java.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 com.sun.java.swing.text with parameters of type KeyStroke
JTextComponent.KeyBinding.JTextComponent.KeyBinding(KeyStroke key, String actionName)
          Creates a new key binding.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.