org.apache.myfaces.tobago.model
Enum TreeSelectable
java.lang.Object
java.lang.Enum<TreeSelectable>
org.apache.myfaces.tobago.model.TreeSelectable
- All Implemented Interfaces:
- Serializable, Comparable<TreeSelectable>
public enum TreeSelectable
- extends Enum<TreeSelectable>
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
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.