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

public static enum TreeCheckingModel.CheckingMode extends Enum<TreeCheckingModel.CheckingMode>
The checking behaviors supported by this class.
  • Enum Constant Details

    • PROPAGATE

      public static final TreeCheckingModel.CheckingMode 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

      public static final TreeCheckingModel.CheckingMode 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

      public static final TreeCheckingModel.CheckingMode 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

      public static final TreeCheckingModel.CheckingMode 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

      public static final TreeCheckingModel.CheckingMode SIMPLE
      The check is not propagated at all, toggles the clicked checkbox only.
    • SINGLE

      public static final TreeCheckingModel.CheckingMode 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

      public static TreeCheckingModel.CheckingMode[] 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

      public static TreeCheckingModel.CheckingMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null