|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.keystroke.KeyStrokeMapping
public class KeyStrokeMapping
Understands a mapping between a character and a
.
KeyStroke
Constructor Summary | |
---|---|
KeyStrokeMapping(char character,
int keyCode,
int modifiers)
Creates a new KeyStrokeMapping . |
|
KeyStrokeMapping(char character,
KeyStroke keyStroke)
Creates a new KeyStrokeMapping . |
Method Summary | |
---|---|
char |
character()
Returns the character corresponding to this mapping's . |
boolean |
equals(Object o)
|
int |
hashCode()
|
KeyStroke |
keyStroke()
Returns the corresponding to this mapping's . |
static KeyStrokeMapping |
mapping(char character,
int keyCode,
int modifiers)
Creates a new KeyStrokeMapping . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyStrokeMapping(char character, int keyCode, int modifiers)
KeyStrokeMapping
.
character
- the character corresponding to the intended KeyStroke
.keyCode
- the numeric key code for the intended KeyStroke
.modifiers
- the set of modifiers for the intended KeyStroke
.public KeyStrokeMapping(char character, KeyStroke keyStroke)
KeyStrokeMapping
.
character
- the character corresponding to the given KeyStroke
.keyStroke
- the KeyStroke
corresponding to the given character.Method Detail |
---|
public static KeyStrokeMapping mapping(char character, int keyCode, int modifiers)
KeyStrokeMapping
.
character
- the character corresponding to the intended KeyStroke
.keyCode
- the numeric key code for the intended KeyStroke
.modifiers
- the set of modifiers for the intended KeyStroke
.
KeyStrokeMapping
.public char character()
keyStroke()
.
KeyStroke
.public KeyStroke keyStroke()
KeyStroke
corresponding to this mapping's character()
.
KeyStroke
corresponding to this mapping's character.public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |