Example usage for Java javax.swing KeyStroke fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | equals(Object anObject) Returns true if this object is identical to the specified object. |
char | getKeyChar() Returns the character for this AWTKeyStroke . |
int | getKeyCode() Returns the numeric key code for this AWTKeyStroke . |
int | getKeyEventType() Returns the type of KeyEvent which corresponds to this AWTKeyStroke . |
KeyStroke | getKeyStroke(char keyChar, boolean onKeyRelease) Returns an instance of a KeyStroke, specifying whether the key is considered to be activated when it is pressed or released. |
KeyStroke | getKeyStroke(Character keyChar, int modifiers) Returns a shared instance of a KeyStroke that represents a KEY_TYPED event for the specified Character object and a set of modifiers. |
KeyStroke | getKeyStroke(int keyCode, int modifiers) Returns a shared instance of a KeyStroke, given a numeric key code and a set of modifiers. |
KeyStroke | getKeyStroke(char keyChar) Returns a shared instance of a KeyStroke that represents a KEY_TYPED event for the specified character. |
KeyStroke | getKeyStroke(String s) Parses a string and returns a KeyStroke . |
KeyStroke | getKeyStroke(int keyCode, int modifiers, boolean onKeyRelease) Returns a shared instance of a KeyStroke, given a numeric key code and a set of modifiers, specifying whether the key is activated when it is pressed or released. |
KeyStroke | getKeyStrokeForEvent(KeyEvent anEvent) Returns a KeyStroke which represents the stroke which generated a given KeyEvent. |
int | getModifiers() Returns the modifier keys for this AWTKeyStroke . |
boolean | isOnKeyRelease() Returns whether this AWTKeyStroke represents a key release. |
String | toString() Returns a string that displays and identifies this object's properties. |