com.jmex.bui.background
Enum ComponentState

java.lang.Object
  extended by java.lang.Enum<ComponentState>
      extended by com.jmex.bui.background.ComponentState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComponentState>

public enum ComponentState
extends java.lang.Enum<ComponentState>

Since:
Mar 18, 2008 4:37:31 PM
Author:
timo

Enum Constant Summary
DEFAULT
          The default component state.
DISABLED
          A component state indicating that the component is disabled.
DOWN
          Indicates that this button is in the down state.
HOVER
          A component state indicating that the mouse is hovering over the component.
 
Method Summary
static ComponentState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComponentState[] 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

DEFAULT

public static final ComponentState DEFAULT
The default component state. This is used to select the component's style pseudoclass among other things.


HOVER

public static final ComponentState HOVER
A component state indicating that the mouse is hovering over the component. This is used to select the component's style pseudoclass among other things.


DISABLED

public static final ComponentState DISABLED
A component state indicating that the component is disabled. This is used to select the component's style pseudoclass among other things.


DOWN

public static final ComponentState DOWN
Indicates that this button is in the down state.

Method Detail

values

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

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

valueOf

public static ComponentState 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


Copyright © 2011 Michael Bayne. All Rights Reserved.