Package org.apache.myfaces.tobago.model
Enum Selectable
- All Implemented Interfaces:
Serializable
,Comparable<Selectable>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMulti selection possible.Multi selection possible.Only leafs are selectable.Not selectable.Only siblings are selectable.Only siblings are selectable and they have to be leafs.Only one item is selectable.Only one item is selectable and it must be a leaf.Only one of no item is selectable. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isMulti()
boolean
isSingle()
boolean
boolean
boolean
static Selectable
static Selectable
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 Details
-
none
Not selectable. -
multi
Multi selection possible. No other limitations. -
single
Only one item is selectable. -
singleOrNone
Only one of no item is selectable. -
multiLeafOnly
Only leafs are selectable. -
singleLeafOnly
Only one item is selectable and it must be a leaf. -
sibling
Only siblings are selectable. -
siblingLeafOnly
Only siblings are selectable and they have to be leafs. -
multiCascade
Multi selection possible. When selecting or deselecting an item, the subtree will also be selected or unselected.
-
-
Field Details
-
NONE
- See Also:
-
MULTI
- See Also:
-
SINGLE
- See Also:
-
SINGLE_OR_NONE
- See Also:
-
MULTI_LEAF_ONLY
- See Also:
-
SINGLE_LEAF_ONLY
- See Also:
-
SIBLING
- See Also:
-
SIBLING_LEAF_ONLY
- See Also:
-
MULTI_CASCADE
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- 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()
-