|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ButtonKey>
com.flagstone.transform.button.ButtonKey
public enum ButtonKey
ButtonKey is used to provide mapping from special keys to codes recognised by the Flash Player.
Enum Constant Summary | |
---|---|
BACKSPACE
Code for the button event that occurs when the backspace key is pressed on the keyboard. |
|
DELETE
Code for the button event that occurs when the delete key is pressed on the keyboard. |
|
DOWN
Code for the button event that occurs when the down arrow key is pressed on the keyboard. |
|
END
Code for the button event that occurs when the end key is pressed on the keyboard. |
|
ENTER
Code for the button event that occurs when the enter key is pressed on the keyboard. |
|
ESCAPE
Code for the button event that occurs when the escape key is pressed on the keyboard. |
|
HOME
Code for the button event that occurs when the home key is pressed on the keyboard. |
|
INSERT
Code for the button event that occurs when the insert key is pressed on the keyboard. |
|
LEFT
Code for the button event that occurs when the left arrow key is pressed on the keyboard. |
|
PAGE_DOWN
Code for the button event that occurs when the page down key is pressed on the keyboard. |
|
PAGE_UP
Code for the button event that occurs when the page up key is pressed on the keyboard. |
|
RIGHT
Code for the button event that occurs when the right arrow key is pressed on the keyboard. |
|
TAB
Code for the button event that occurs when the tab key is pressed on the keyboard. |
|
UP
Code for the button event that occurs when the up arrow key is pressed on the keyboard. |
Method Summary | |
---|---|
static ButtonKey |
fromInt(int keyCode)
Get the ButtonKey for an encoded value. |
int |
getValue()
Get the value that will be encoded to represent the ButtonKey. |
static ButtonKey |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ButtonKey[] |
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 class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ButtonKey LEFT
public static final ButtonKey RIGHT
public static final ButtonKey HOME
public static final ButtonKey END
public static final ButtonKey INSERT
public static final ButtonKey DELETE
public static final ButtonKey BACKSPACE
public static final ButtonKey ENTER
public static final ButtonKey UP
public static final ButtonKey DOWN
public static final ButtonKey PAGE_UP
public static final ButtonKey PAGE_DOWN
public static final ButtonKey TAB
public static final ButtonKey ESCAPE
Method Detail |
---|
public static ButtonKey[] values()
for (ButtonKey c : ButtonKey.values()) System.out.println(c);
public static ButtonKey valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ButtonKey fromInt(int keyCode)
keyCode
- the encoded value representing a key.
public int getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |