Enum KeyboardUiKey
- java.lang.Object
-
- java.lang.Enum<KeyboardUiKey>
-
- org.pepstock.charba.client.dom.enums.KeyboardUiKey
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyboardUiKey>
,Key
,IsKeyboardKey
public enum KeyboardUiKey extends Enum<KeyboardUiKey> implements IsKeyboardKey
Enumerates the user interface keys forNativeKeyboardEvent
.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT
TheAccept
,Commit
, orOK
key or button.AGAIN
TheAgain
key.ATTENTION
TheAttn
(Attention) key.CANCEL
TheCancel
key.CONTEXT_MENU
Shows the context menu.ESCAPE
TheEsc
(Escape) key.EXECUTE
TheExecute
key.FIND
TheFind
key.FINISH
TheFinish
key.HELP
TheHelp
key.PAUSE
ThePause
key.PLAY
ThePlay
key.PROPERTIES
TheProps
(Properties) key.SELECT
TheSelect
key.ZOOM_IN
TheZoomIn
key.ZOOM_OUT
TheZoomOut
key.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic KeyboardUiKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyboardUiKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.pepstock.charba.client.dom.enums.IsKeyboardKey
is, is, is
-
-
-
-
Enum Constant Detail
-
ACCEPT
public static final KeyboardUiKey ACCEPT
TheAccept
,Commit
, orOK
key or button.
-
AGAIN
public static final KeyboardUiKey AGAIN
TheAgain
key. Redoes or repeats a previous action.
-
ATTENTION
public static final KeyboardUiKey ATTENTION
TheAttn
(Attention) key.
-
CANCEL
public static final KeyboardUiKey CANCEL
TheCancel
key.
-
CONTEXT_MENU
public static final KeyboardUiKey CONTEXT_MENU
Shows the context menu. Typically found between theWindows
(orOS
) key and theControl
key on the right side of the keyboard.
-
ESCAPE
public static final KeyboardUiKey ESCAPE
TheEsc
(Escape) key. Typically used as an exit, cancel, or"escape this operation" button. Historically, the Escape character was used to signal the start of a special control sequence of characters called an "escape sequence."
-
EXECUTE
public static final KeyboardUiKey EXECUTE
TheExecute
key.
-
FIND
public static final KeyboardUiKey FIND
TheFind
key. Opens an interface (typically a dialog box) for performing a find/search operation.
-
FINISH
public static final KeyboardUiKey FINISH
TheFinish
key.
-
HELP
public static final KeyboardUiKey HELP
TheHelp
key. Opens or toggles the display of help information.
-
PAUSE
public static final KeyboardUiKey PAUSE
ThePause
key. Pauses the current application or state, if applicable.
Note: This shouldn't be confused with the"MediaPause"
key value, which is used for media controllers, rather than to control applications and processes.
-
PLAY
public static final KeyboardUiKey PLAY
ThePlay
key. Resumes a previously paused application, if applicable.
Note: This shouldn't be confused with the"MediaPlay"
key value, which is used for media controllers, rather than to control applications and processes.
-
PROPERTIES
public static final KeyboardUiKey PROPERTIES
TheProps
(Properties) key.
-
SELECT
public static final KeyboardUiKey SELECT
TheSelect
key.
-
ZOOM_IN
public static final KeyboardUiKey ZOOM_IN
TheZoomIn
key.
-
ZOOM_OUT
public static final KeyboardUiKey ZOOM_OUT
TheZoomOut
key.
-
-
Method Detail
-
values
public static KeyboardUiKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyboardUiKey c : KeyboardUiKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyboardUiKey valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-