net.sourceforge.ajaxtags.helpers
Enum TreeItem.TreeAttribute

java.lang.Object
  extended by java.lang.Enum<TreeItem.TreeAttribute>
      extended by net.sourceforge.ajaxtags.helpers.TreeItem.TreeAttribute
All Implemented Interfaces:
Serializable, Comparable<TreeItem.TreeAttribute>
Enclosing class:
TreeItem

public static enum TreeItem.TreeAttribute
extends Enum<TreeItem.TreeAttribute>

All known tree-elements for the parser.
This is just a subset of what we can do.


Enum Constant Summary
COLLAPSED
          Key to set collapsed flag.
LEAF
          Key to set node or a leaf flag.
URL
          Key to set URL flag.
 
Method Summary
static TreeItem.TreeAttribute valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TreeItem.TreeAttribute[] 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

LEAF

public static final TreeItem.TreeAttribute LEAF
Key to set node or a leaf flag.


COLLAPSED

public static final TreeItem.TreeAttribute COLLAPSED
Key to set collapsed flag.


URL

public static final TreeItem.TreeAttribute URL
Key to set URL flag.

Method Detail

values

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

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

valueOf

public static TreeItem.TreeAttribute 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


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.