org.cocome.tradingsystem.cashdeskline.datatypes
Enum KeyStroke
java.lang.Object
java.lang.Enum<KeyStroke>
org.cocome.tradingsystem.cashdeskline.datatypes.KeyStroke
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<KeyStroke>
public enum KeyStroke
- extends java.lang.Enum<KeyStroke>
Description of the possible keystrokes (on the CashBox keyboard)
- Author:
- Yannick Welsch
Method Summary |
static KeyStroke |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static KeyStroke[] |
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 |
ZERO
public static final KeyStroke ZERO
ONE
public static final KeyStroke ONE
TWO
public static final KeyStroke TWO
THREE
public static final KeyStroke THREE
FOUR
public static final KeyStroke FOUR
FIVE
public static final KeyStroke FIVE
SIX
public static final KeyStroke SIX
SEVEN
public static final KeyStroke SEVEN
EIGHT
public static final KeyStroke EIGHT
NINE
public static final KeyStroke NINE
COMMA
public static final KeyStroke COMMA
ENTER
public static final KeyStroke ENTER
values
public static KeyStroke[] 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 (KeyStroke c : KeyStroke.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static KeyStroke valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null