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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier 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- 
PROPAGATEToggles 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_CHECKPropagates 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_UNCHECKPropagates 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_UNCHECKThe change is propagated to descendants like in the PROPAGATE mode. Moreover, if the checkbox becomes unchecked, all the ancestors will be unchecked.
- 
SIMPLEThe check is not propagated at all, toggles the clicked checkbox only.
- 
SINGLEThe 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-