Enum ETreeAccessorSelectItem
- All Implemented Interfaces:
ITreeAccessor<javax.faces.model.SelectItem, Object>, Serializable, Comparable<ETreeAccessorSelectItem>
public enum ETreeAccessorSelectItem
extends Enum<ETreeAccessorSelectItem>
implements ITreeAccessor<javax.faces.model.SelectItem, Object>
- Since:
- 8.5.4
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends javax.faces.model.SelectItem> getChildren(javax.faces.model.SelectItem object) Gets the children of the given node.getId(javax.faces.model.SelectItem item) Gets the ID of the given node.static ETreeAccessorSelectItemReturns the enum constant of this type with the specified name.static ETreeAccessorSelectItem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
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
-
getChildren
public Iterable<? extends javax.faces.model.SelectItem> getChildren(javax.faces.model.SelectItem object) Description copied from interface:ITreeAccessorGets the children of the given node. It is generally recommended to return a list of nodes for fast random access, but implementations must be compatible with general iterables.- Specified by:
getChildrenin interfaceITreeAccessor<javax.faces.model.SelectItem, Object>- Parameters:
object- The node for which to get the children.- Returns:
- A list of all children of the given tree node, empty array if it is a leaf node.
-
getId
Description copied from interface:ITreeAccessorGets the ID of the given node. The ID must be unique within the tree, but it is not required to be unique across different trees.- Specified by:
getIdin interfaceITreeAccessor<javax.faces.model.SelectItem, Object>- Parameters:
item- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-