Constructor and Description |
---|
KeyStrokeMapping(char character,
int keyCode,
int modifiers)
Creates a new
KeyStrokeMapping . |
KeyStrokeMapping(char character,
KeyStroke keyStroke)
Creates a new
KeyStrokeMapping . |
Modifier and Type | Method and Description |
---|---|
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() |
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.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()
Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.