Package org.apache.myfaces.tobago.model
Enum Selectable
- java.lang.Object
-
- java.lang.Enum<Selectable>
-
- org.apache.myfaces.tobago.model.Selectable
-
- All Implemented Interfaces:
Serializable,Comparable<Selectable>
public enum Selectable extends Enum<Selectable>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description multiMulti selection possible.multiCascadeMulti selection possible.multiLeafOnlyOnly leafs are selectable.noneNot selectable.siblingOnly siblings are selectable.siblingLeafOnlyOnly siblings are selectable and they have to be leafs.singleOnly one item is selectable.singleLeafOnlyOnly one item is selectable and it must be a leaf.singleOrNoneOnly one of no item is selectable.
-
Field Summary
Fields Modifier and Type Field Description static StringMULTIstatic StringMULTI_CASCADEstatic StringMULTI_LEAF_ONLYstatic StringNONEstatic StringSIBLINGstatic StringSIBLING_LEAF_ONLYstatic StringSINGLEstatic StringSINGLE_LEAF_ONLYstatic StringSINGLE_OR_NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLeafOnly()booleanisMulti()booleanisSingle()booleanisSupportedBySheet()booleanisSupportedByTree()booleanisSupportedByTreeListbox()static Selectableparse(Object name)static SelectablevalueOf(String name)Returns the enum constant of this type with the specified name.static Selectable[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final Selectable none
Not selectable.
-
multi
public static final Selectable multi
Multi selection possible. No other limitations.
-
single
public static final Selectable single
Only one item is selectable.
-
singleOrNone
public static final Selectable singleOrNone
Only one of no item is selectable.
-
multiLeafOnly
public static final Selectable multiLeafOnly
Only leafs are selectable.
-
singleLeafOnly
public static final Selectable singleLeafOnly
Only one item is selectable and it must be a leaf.
-
sibling
public static final Selectable sibling
Only siblings are selectable.
-
siblingLeafOnly
public static final Selectable siblingLeafOnly
Only siblings are selectable and they have to be leafs.
-
multiCascade
public static final Selectable multiCascade
Multi selection possible. When selecting or deselecting an item, the subtree will also be selected or unselected.
-
-
Field Detail
-
NONE
public static final String NONE
- See Also:
- Constant Field Values
-
MULTI
public static final String MULTI
- See Also:
- Constant Field Values
-
SINGLE
public static final String SINGLE
- See Also:
- Constant Field Values
-
SINGLE_OR_NONE
public static final String SINGLE_OR_NONE
- See Also:
- Constant Field Values
-
MULTI_LEAF_ONLY
public static final String MULTI_LEAF_ONLY
- See Also:
- Constant Field Values
-
SINGLE_LEAF_ONLY
public static final String SINGLE_LEAF_ONLY
- See Also:
- Constant Field Values
-
SIBLING
public static final String SIBLING
- See Also:
- Constant Field Values
-
SIBLING_LEAF_ONLY
public static final String SIBLING_LEAF_ONLY
- See Also:
- Constant Field Values
-
MULTI_CASCADE
public static final String MULTI_CASCADE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Selectable[] 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 (Selectable c : Selectable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Selectable 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 nameNullPointerException- if the argument is null
-
parse
public static Selectable parse(Object name) throws IllegalArgumentException
- Parameters:
name- Name of the Selectable- Returns:
- The matching tree selection (can't be null).
- Throws:
IllegalArgumentException- When the name doesn't match any Selectable.
-
isLeafOnly
public boolean isLeafOnly()
-
isSingle
public boolean isSingle()
-
isMulti
public boolean isMulti()
-
isSupportedBySheet
public boolean isSupportedBySheet()
-
isSupportedByTree
public boolean isSupportedByTree()
-
isSupportedByTreeListbox
public boolean isSupportedByTreeListbox()
-
-