public class KeyStroker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
altSuffix |
static int |
KEY_LOCATION_LEFT
A constant indicating that the key pressed or released is in
the left key location (there is more than one possible location
for this key).
|
static int |
KEY_LOCATION_NUMPAD
A constant indicating that the key event originated on the
numeric keypad or with a virtual key corresponding to the
numeric keypad.
|
static int |
KEY_LOCATION_RIGHT
A constant indicating that the key pressed or released is in
the right key location (there is more than one possible location
for this key).
|
static int |
KEY_LOCATION_STANDARD
A constant indicating that the key pressed or released
is not distinguished as the left or right version of a key,
and did not originate on the numeric keypad (or did not
originate with a virtual key corresponding to the numeric
keypad).
|
static int |
KEY_LOCATION_UNKNOWN
A constant indicating that the keyLocation is indeterminate
or not relevant.
|
protected int |
location |
| Constructor and Description |
|---|
KeyStroker(int keyCode,
boolean isShiftDown,
boolean isControlDown,
boolean isAltDown,
boolean isAltGrDown,
int location) |
KeyStroker(KeyEvent ke) |
KeyStroker(KeyEvent ke,
boolean isAltGrDown) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(KeyEvent ke) |
boolean |
equals(KeyEvent ke,
boolean altGrDown) |
boolean |
equals(Object obj) |
boolean |
equals(Object obj,
boolean altGrDown) |
int |
getKeyCode() |
String |
getKeyStrokeDesc() |
int |
getLocation() |
int |
hashCode() |
boolean |
isAltDown() |
boolean |
isAltGrDown() |
boolean |
isControlDown() |
boolean |
isShiftDown() |
void |
setAttributes(KeyEvent ke,
boolean isAltGr) |
String |
toString() |
protected int location
public static final String altSuffix
public static final int KEY_LOCATION_UNKNOWN
public static final int KEY_LOCATION_STANDARD
public static final int KEY_LOCATION_LEFT
public static final int KEY_LOCATION_RIGHT
public static final int KEY_LOCATION_NUMPAD
public KeyStroker(KeyEvent ke)
public KeyStroker(KeyEvent ke, boolean isAltGrDown)
public KeyStroker(int keyCode,
boolean isShiftDown,
boolean isControlDown,
boolean isAltDown,
boolean isAltGrDown,
int location)
public void setAttributes(KeyEvent ke, boolean isAltGr)
public boolean isShiftDown()
public boolean isControlDown()
public boolean isAltDown()
public boolean isAltGrDown()
public int getLocation()
public boolean equals(KeyEvent ke)
public boolean equals(KeyEvent ke, boolean altGrDown)
public boolean equals(Object obj, boolean altGrDown)
public String getKeyStrokeDesc()
public int getKeyCode()
Copyright © 2018. All rights reserved.