org.jdesktop.wonderland.common.cell
Enum CellStatus

java.lang.Object
  extended by java.lang.Enum<CellStatus>
      extended by org.jdesktop.wonderland.common.cell.CellStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CellStatus>

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

CellStatus is the current state of a cell. The class is used for both client and servers cell represenations, although the server does not use the RENDERING or VISIBLE states. A cells state progresses from the lowest state (DISK), to the highest, and the system guarantees that all intermediate states are visited. Cell developers should do all their setup and tear down of a cells state and resources by overriding setStatus(CellStatus status, boolean increasing). The increasing boolean is true when the state is increasing (from DISK upwards) and false when it's decreasing (from VISIBLE downwards).

Author:
paulby

Enum Constant Summary
ACTIVE
           
DISK
           
INACTIVE
           
RENDERING
           
VISIBLE
           
 
Method Summary
static CellStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CellStatus[] 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

DISK

public static final CellStatus DISK

INACTIVE

public static final CellStatus INACTIVE

ACTIVE

public static final CellStatus ACTIVE

RENDERING

public static final CellStatus RENDERING

VISIBLE

public static final CellStatus VISIBLE
Method Detail

values

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

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

valueOf

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


Open Wonderland - http://openwonderland.org