Enum KeyboardNavigationKey
- java.lang.Object
-
- java.lang.Enum<KeyboardNavigationKey>
-
- org.pepstock.charba.client.dom.enums.KeyboardNavigationKey
-
- All Implemented Interfaces:
Serializable,Comparable<KeyboardNavigationKey>,Key,IsKeyboardKey
public enum KeyboardNavigationKey extends Enum<KeyboardNavigationKey> implements IsKeyboardKey
Enumerates the navigation keys forNativeKeyboardEvent.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARROW_DOWNThe down arrow key.ARROW_LEFTThe left arrow key.ARROW_RIGHTThe right arrow key.ARROW_UPThe up arrow key.ENDTheEndkey.HOMETheHomekey.PAGE_DOWNThePage Down(orPgDn) key.PAGE_UPThePage Up(orPgUp) key.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()Returns the name value of propertystatic KeyboardNavigationKeyvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyboardNavigationKey[]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
-
ARROW_DOWN
public static final KeyboardNavigationKey ARROW_DOWN
The down arrow key.
-
ARROW_LEFT
public static final KeyboardNavigationKey ARROW_LEFT
The left arrow key.
-
ARROW_RIGHT
public static final KeyboardNavigationKey ARROW_RIGHT
The right arrow key.
-
ARROW_UP
public static final KeyboardNavigationKey ARROW_UP
The up arrow key.
-
END
public static final KeyboardNavigationKey END
TheEndkey. Moves to the end of content.
-
HOME
public static final KeyboardNavigationKey HOME
TheHomekey. Moves to the start of content.
-
PAGE_DOWN
public static final KeyboardNavigationKey PAGE_DOWN
ThePage Down(orPgDn) key. Scrolls down or displays the next page of content.
-
PAGE_UP
public static final KeyboardNavigationKey PAGE_UP
ThePage Up(orPgUp) key. Scrolls up or displays the previous page of content.
-
-
Method Detail
-
values
public static KeyboardNavigationKey[] 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 (KeyboardNavigationKey c : KeyboardNavigationKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyboardNavigationKey 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
-
-