Package org.zkoss.zul.ext
Enum Class TristateModel.State
- All Implemented Interfaces:
Serializable,Comparable<TristateModel.State>,Constable
- Enclosing interface:
- TristateModel<E>
States of the tri-state selection designed to assist users in defining states effectively.
This enum is meant to be used in conjunction with an interface that requires the definition
of tri-state selection states.
This enum is designed to facilitate the implementation of interfaces where a tri-state selection is required. Utilizing these predefined states enables users to clearly define the selection status of nodes consistently and meaningfully.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the partial selection state.Represents the selected state.Represents the unselected state. -
Method Summary
Modifier and TypeMethodDescriptionstatic TristateModel.StateReturns the enum constant of this class with the specified name.static TristateModel.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSELECTED
Represents the unselected state. Use this state when the node is explicitly not selected. -
SELECTED
Represents the selected state. Use this state when the node is explicitly selected. -
PARTIAL
Represents the partial selection state. Use this state when the node is partially selected, meaning that it is in an intermediate state between fully selected and unselected.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-