Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public enum Key.Type
- Object
- Enum<Key.Type>
- Key.Type
ImplementsComparable<Key.Type>
What was pressed.
Enum constants
CHAR | A printable character; see Key.codePoint. |
ENTER | Enter or Return. |
TAB | Tab. |
BACKTAB | Shift-Tab. |
BACKSPACE | Backspace. |
DELETE | Delete. |
INSERT | Insert. |
ESCAPE | Escape on its own. |
UP | Up arrow. |
DOWN | Down arrow. |
LEFT | Left arrow. |
RIGHT | Right arrow. |
HOME | Home. |
END | End. |
PAGE_UP | Page Up. |
PAGE_DOWN | Page Down. |
FUNCTION | A function key; see Key.number. |
CTRL | Control and a letter other than the ones named here; see Key.codePoint for the letter. |
CTRL_C | Ctrl-C. |
CTRL_D | Ctrl-D. |
EOF | The end of standard input. |
UNKNOWN | An escape sequence this decoder does not know. |
Methods
public static Key.Type[] values() | |
public static Key.Type valueOf(String name) |
Inherited methods
Enum constant details
CHAR
CHARA printable character; see
Key.codePoint.ENTER
ENTEREnter or Return.
TAB
TABTab.
BACKTAB
BACKTABShift-Tab.
BACKSPACE
BACKSPACEBackspace.
DELETE
DELETEDelete.
INSERT
INSERTInsert.
ESCAPE
ESCAPEEscape on its own.
UP
UPUp arrow.
DOWN
DOWNDown arrow.
LEFT
LEFTLeft arrow.
RIGHT
RIGHTRight arrow.
HOME
HOMEHome.
END
ENDEnd.
PAGE_UP
PAGE_UPPage Up.
PAGE_DOWN
PAGE_DOWNPage Down.
FUNCTION
FUNCTIONA function key; see
Key.number.CTRL
CTRLControl and a letter other than the ones named here; see
Key.codePoint for the letter.CTRL_C
CTRL_CCtrl-C.
CTRL_D
CTRL_DCtrl-D.
EOF
EOFThe end of standard input.
UNKNOWN
UNKNOWNAn escape sequence this decoder does not know.
Method details
values
public static Key.Type[] values()valueOf
public static Key.Type valueOf(String name)