public class CharacterKey
extends java.lang.Object
Constructor and Description |
---|
CharacterKey(java.lang.String stringRepresentation,
int keyCode)
Instantiates a new character key.
|
Modifier and Type | Method and Description |
---|---|
int |
getKeyCode()
Gets the key code.
|
java.lang.String |
getStringRepresentation()
Gets the string representation.
|
void |
setKeyCode(int keyCode)
Sets the key code.
|
void |
setStringRepresentation(java.lang.String stringRepresentation)
Sets the string representation.
|
public CharacterKey(java.lang.String stringRepresentation, int keyCode)
stringRepresentation
- the string representationkeyCode
- the key codepublic int getKeyCode()
public java.lang.String getStringRepresentation()
public void setKeyCode(int keyCode)
keyCode
- the new key codepublic void setStringRepresentation(java.lang.String stringRepresentation)
stringRepresentation
- the new string representation