com.alee.extended.tree
Enum AsyncNodeState

java.lang.Object
  extended by java.lang.Enum<AsyncNodeState>
      extended by com.alee.extended.tree.AsyncNodeState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AsyncNodeState>

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

This enumeration represents possible async tree node states.

Usually node might change in one of these directions: 1. waiting -> (2) 2. loading -> (3) or (4) 3. loaded -> when reload called (2) 4. failed -> when reload called (2)

Author:
Mikle Garin

Enum Constant Summary
failed
          Childs load failed.
loaded
          Childs loaded.
loading
          Loading childs.
waiting
          Waiting for node expansion to load childs.
 
Method Summary
static AsyncNodeState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AsyncNodeState[] 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

waiting

public static final AsyncNodeState waiting
Waiting for node expansion to load childs.


loading

public static final AsyncNodeState loading
Loading childs.


loaded

public static final AsyncNodeState loaded
Childs loaded.


failed

public static final AsyncNodeState failed
Childs load failed.

Method Detail

values

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

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

valueOf

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