Modifier and Type | Field and Description |
---|---|
static int |
ALT
Constant for the ALT modifier
|
static int |
COMMAND
Constant for the COMMAND modifier
|
static int |
CTRL
Constant for the CTRL modifier
|
static int |
MODIFIER_MASK
Modifier mask
|
static int |
NO_KEY
No key constant
|
static int |
SHIFT
Constant for the SHIFT modifier
|
ALT_NAME, ARROW_DOWN_NAME, ARROW_LEFT_NAME, ARROW_RIGHT_NAME, ARROW_UP_NAME, BACKSPACE_NAME, BREAK_NAME, BS_NAME, CAPS_LOCK_NAME, COMMAND_NAME, CR_NAME, CTRL_NAME, DEL_NAME, DELETE_NAME, END_NAME, ENTER_NAME, ESC_NAME, ESCAPE_NAME, F1_NAME, F10_NAME, F11_NAME, F12_NAME, F13_NAME, F14_NAME, F15_NAME, F16_NAME, F17_NAME, F18_NAME, F19_NAME, F2_NAME, F20_NAME, F3_NAME, F4_NAME, F5_NAME, F6_NAME, F7_NAME, F8_NAME, F9_NAME, FF_NAME, HOME_NAME, INSERT_NAME, LF_NAME, M1_NAME, M2_NAME, M3_NAME, M4_NAME, NUL_NAME, NUM_LOCK_NAME, NUMPAD_0_NAME, NUMPAD_1_NAME, NUMPAD_2_NAME, NUMPAD_3_NAME, NUMPAD_4_NAME, NUMPAD_5_NAME, NUMPAD_6_NAME, NUMPAD_7_NAME, NUMPAD_8_NAME, NUMPAD_9_NAME, NUMPAD_ADD_NAME, NUMPAD_DECIMAL_NAME, NUMPAD_DIVIDE_NAME, NUMPAD_ENTER_NAME, NUMPAD_EQUAL_NAME, NUMPAD_MULTIPLY_NAME, NUMPAD_SUBTRACT_NAME, PAGE_DOWN_NAME, PAGE_UP_NAME, PAUSE_NAME, PRINT_SCREEN_NAME, RETURN_NAME, SCROLL_LOCK_NAME, SHIFT_NAME, SPACE_NAME, TAB_NAME, VT_NAME
Constructor and Description |
---|
FxKeyLookup()
Constructs a new look-up class.
|
Modifier and Type | Method and Description |
---|---|
int |
formalKeyLookup(java.lang.String name)
Looks up a single natural key by its formal name, and returns the integer
representation for this natural key
|
java.lang.Integer |
formalKeyLookupInteger(java.lang.String name)
Looks up a single natural key by its formal name, and returns the integer
representation for this natural key
|
int |
formalModifierLookup(java.lang.String name)
Looks up a single modifier key by its formal name, and returns the integer
representation for this modifier key
|
java.lang.String |
formalNameLookup(int key)
Looks up a key value, and returns the formal string representation for
that key
|
int |
getAlt()
Returns the integer representation of the ALT key.
|
int |
getCommand()
Returns the integer representation of the COMMAND key.
|
int |
getCtrl()
Returns the integer representation of the CTRL key.
|
int |
getShift()
Returns the integer representation of the SHIFT key.
|
public static final int ALT
public static final int SHIFT
public static final int CTRL
public static final int COMMAND
public static final int MODIFIER_MASK
public static final int NO_KEY
public FxKeyLookup()
public final int formalKeyLookup(java.lang.String name)
KeyLookup
formalKeyLookup
in interface KeyLookup
name
- The formal name of the natural key to look-up; must not be
null
.0
.public final java.lang.Integer formalKeyLookupInteger(java.lang.String name)
KeyLookup
formalKeyLookupInteger
in interface KeyLookup
name
- The formal name of the natural key to look-up; must not be
null
.0
.public final int formalModifierLookup(java.lang.String name)
KeyLookup
formalModifierLookup
in interface KeyLookup
name
- The formal name of the modifier key to look-up; must not be
null
.0
.public final java.lang.String formalNameLookup(int key)
KeyLookup
formalNameLookup
in interface KeyLookup
key
- The key to look-up.public final int getAlt()
KeyLookup
public final int getCommand()
KeyLookup
getCommand
in interface KeyLookup
public final int getCtrl()
KeyLookup