org.apache.myfaces.tobago.model
Enum TreeSelectable

java.lang.Object
  extended by java.lang.Enum<TreeSelectable>
      extended by org.apache.myfaces.tobago.model.TreeSelectable
All Implemented Interfaces:
Serializable, Comparable<TreeSelectable>

public enum TreeSelectable
extends Enum<TreeSelectable>


Enum Constant Summary
MULTI
           
MULTI_LEAF_ONLY
           
MULTI_SUB_TREE
           
OFF
           
SIBLING
           
SIBLING_LEAF_ONLY
           
SINGLE
           
SINGLE_LEAF_ONLY
           
SINGLE_SUB_TREE
           
 
Method Summary
 String getValue()
           
 boolean isSupportedByTree()
           
 boolean isSupportedByTreeListbox()
           
static TreeSelectable parse(String name)
           
static TreeSelectable valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TreeSelectable[] 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

OFF

public static final TreeSelectable OFF

MULTI

public static final TreeSelectable MULTI

SINGLE

public static final TreeSelectable SINGLE

MULTI_LEAF_ONLY

public static final TreeSelectable MULTI_LEAF_ONLY

SINGLE_LEAF_ONLY

public static final TreeSelectable SINGLE_LEAF_ONLY

SIBLING

public static final TreeSelectable SIBLING

SIBLING_LEAF_ONLY

public static final TreeSelectable SIBLING_LEAF_ONLY

MULTI_SUB_TREE

public static final TreeSelectable MULTI_SUB_TREE

SINGLE_SUB_TREE

public static final TreeSelectable SINGLE_SUB_TREE
Method Detail

values

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

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

valueOf

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

getValue

public String getValue()

parse

public static TreeSelectable parse(String name)
                            throws IllegalArgumentException
Parameters:
name - Name of the TreeSelectable
Returns:
The matching tree selection (can't be null).
Throws:
IllegalArgumentException - When the name doesn't match any TreeSelectable.

isSupportedByTree

public boolean isSupportedByTree()

isSupportedByTreeListbox

public boolean isSupportedByTreeListbox()


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.