Enum Class SimpleTreeCellRendererState

java.lang.Object
java.lang.Enum<SimpleTreeCellRendererState>
io.github.astrapi69.swing.tree.renderer.state.SimpleTreeCellRendererState
All Implemented Interfaces:
Serializable, Comparable<SimpleTreeCellRendererState>, Constable

public enum SimpleTreeCellRendererState extends Enum<SimpleTreeCellRendererState>
  • Enum Constant Details

    • LEAF

      public static final SimpleTreeCellRendererState LEAF
      The state that represents a leaf that is not selected
    • SELECTED_LEAF

      public static final SimpleTreeCellRendererState SELECTED_LEAF
      The state that represents a selected leaf
    • SELECTED_FOCUSED_LEAF

      public static final SimpleTreeCellRendererState SELECTED_FOCUSED_LEAF
      The state that represents a selected leaf and has the focus
    • NODE

      public static final SimpleTreeCellRendererState NODE
      The state that represents a node that is not selected and has no children
    • NODE_WITH_CHILDREN

      public static final SimpleTreeCellRendererState NODE_WITH_CHILDREN
      The state that represents a node that is not selected and has children
    • SELECTED_NODE

      public static final SimpleTreeCellRendererState SELECTED_NODE
      The state that represents a selected node with no children
    • SELECTED_NODE_WITH_CHILDREN

      public static final SimpleTreeCellRendererState SELECTED_NODE_WITH_CHILDREN
      The state that represents a selected node with children
  • Method Details

    • values

      public static SimpleTreeCellRendererState[] 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 SimpleTreeCellRendererState 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
    • getRenderState

      public static SimpleTreeCellRendererState getRenderState(boolean leaf, boolean selected, boolean children)
    • getState

      public static SimpleTreeCellRendererState getState(boolean leaf, boolean selected, boolean children)