net.sf.jguiraffe.gui.builder.action
Enum Accelerator.Modifiers

java.lang.Object
  extended by java.lang.Enum<Accelerator.Modifiers>
      extended by net.sf.jguiraffe.gui.builder.action.Accelerator.Modifiers
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Accelerator.Modifiers>
Enclosing class:
Accelerator

public static enum Accelerator.Modifiers
extends java.lang.Enum<Accelerator.Modifiers>

An enumeration describing the modifiers that can be applied to an accelerator. These are special keys of a typical key board that are pressed together with other keys modifying their state and meaning.


Enum Constant Summary
ALT
          Constant representing the ALT modifier key.
ALT_GRAPH
          Constant representing the ALT GRAPH modifier key.
CONTROL
          Constant representing the CONTROL modifier key.
META
          Constant representing the META modifier key.
SHIFT
          Constant representing the SHIFT modifier key.
 
Method Summary
static Accelerator.Modifiers valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Accelerator.Modifiers[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALT

public static final Accelerator.Modifiers ALT
Constant representing the ALT modifier key.


ALT_GRAPH

public static final Accelerator.Modifiers ALT_GRAPH
Constant representing the ALT GRAPH modifier key.


CONTROL

public static final Accelerator.Modifiers CONTROL
Constant representing the CONTROL modifier key.


META

public static final Accelerator.Modifiers META
Constant representing the META modifier key.


SHIFT

public static final Accelerator.Modifiers SHIFT
Constant representing the SHIFT modifier key.

Method Detail

values

public static final Accelerator.Modifiers[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Accelerator.Modifiers c : Accelerator.Modifiers.values())
        System.out.println(c);

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

valueOf

public static Accelerator.Modifiers 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


Copyright © 2009 The JGUIraffe Team. All Rights Reserved.