Package eu.essilab.lablib.checkboxtree
Enum Class TreeCheckingModel.CheckingMode
java.lang.Object
java.lang.Enum<TreeCheckingModel.CheckingMode>
eu.essilab.lablib.checkboxtree.TreeCheckingModel.CheckingMode
- All Implemented Interfaces:
Serializable
,Comparable<TreeCheckingModel.CheckingMode>
,java.lang.constant.Constable
- Enclosing interface:
TreeCheckingModel
The checking behaviors supported by this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionToggles the clicked checkbox and propagates the change down.Propagates the change not only to descendants but also to ancestors.Propagates the change not only to descendants but also to ancestors.The change is propagated to descendants like in the PROPAGATE mode.The check is not propagated at all, toggles the clicked checkbox only.The check is not propagated at all, toggles the clicked checkbox only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TreeCheckingModel.CheckingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROPAGATE
Toggles the clicked checkbox and propagates the change down. In other words, if the clicked checkbox becomes checked, all the descendants will be checked; otherwise, all the descendants will be unchecked. -
PROPAGATE_PRESERVING_CHECK
Propagates the change not only to descendants but also to ancestors. With regard to descendants this mode behaves exactly like the Propagate mode. With regard to ancestors it checks/unchecks them as needed so that a node is checked if and only if all of its children are checked. -
PROPAGATE_PRESERVING_UNCHECK
Propagates the change not only to descendants but also to ancestors. With regard to descendants this mode behaves exactly like the Propagate mode. With regard to ancestors it checks/unchecks them as needed so that a node is unchecked if and only if all of its children are unchecked. -
PROPAGATE_UP_UNCHECK
The change is propagated to descendants like in the PROPAGATE mode. Moreover, if the checkbox becomes unchecked, all the ancestors will be unchecked. -
SIMPLE
The check is not propagated at all, toggles the clicked checkbox only. -
SINGLE
The check is not propagated at all, toggles the clicked checkbox only. Only one checkbox is allowed to be checked at any given time.
-
-
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
-