Enum Class TristateModel.State

java.lang.Object
java.lang.Enum<TristateModel.State>
org.zkoss.zul.ext.TristateModel.State
All Implemented Interfaces:
Serializable, Comparable<TristateModel.State>, Constable
Enclosing interface:
TristateModel<E>

public static enum TristateModel.State extends Enum<TristateModel.State>
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.

  • Enum Constant Details

    • UNSELECTED

      public static final TristateModel.State UNSELECTED
      Represents the unselected state. Use this state when the node is explicitly not selected.
    • SELECTED

      public static final TristateModel.State SELECTED
      Represents the selected state. Use this state when the node is explicitly selected.
    • PARTIAL

      public static final TristateModel.State 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

      public static TristateModel.State[] 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 TristateModel.State 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