org.apache.pivot.wtk
Enum Keyboard.KeyLocation

java.lang.Object
  extended by java.lang.Enum<Keyboard.KeyLocation>
      extended by org.apache.pivot.wtk.Keyboard.KeyLocation
All Implemented Interfaces:
Serializable, Comparable<Keyboard.KeyLocation>
Enclosing class:
Keyboard

public static enum Keyboard.KeyLocation
extends Enum<Keyboard.KeyLocation>

Enumeration representing key locations.


Enum Constant Summary
KEYPAD
           
LEFT
           
RIGHT
           
STANDARD
           
 
Method Summary
static Keyboard.KeyLocation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Keyboard.KeyLocation[] 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

STANDARD

public static final Keyboard.KeyLocation STANDARD

LEFT

public static final Keyboard.KeyLocation LEFT

RIGHT

public static final Keyboard.KeyLocation RIGHT

KEYPAD

public static final Keyboard.KeyLocation KEYPAD
Method Detail

values

public static Keyboard.KeyLocation[] 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 (Keyboard.KeyLocation c : Keyboard.KeyLocation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Keyboard.KeyLocation 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 name
NullPointerException - if the argument is null