Enum Class TreeCellRendererState

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

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

    • LEAF

      public static final TreeCellRendererState LEAF
      Represents the state of a leaf that is not selected
    • SELECTED_LEAF

      public static final TreeCellRendererState SELECTED_LEAF
      Represents the state of a selected leaf
    • SELECTED_FOCUSED_LEAF

      public static final TreeCellRendererState SELECTED_FOCUSED_LEAF
      Represents the state of a selected leaf and has the focus
    • NODE

      public static final TreeCellRendererState NODE
      Represents the state of a node that is not expanded, not selected but has no focus and has no children
    • EXPANDED_NODE

      public static final TreeCellRendererState EXPANDED_NODE
      Represents the state of a node that is expanded but not selected but has no focus and has no children
    • EXPANDED_SELECTED_NODE

      public static final TreeCellRendererState EXPANDED_SELECTED_NODE
      Represents the state of a node that is expanded and is selected but has no focus and has no children
    • EXPANDED_SELECTED_NODE_WITH_CHILDREN

      public static final TreeCellRendererState EXPANDED_SELECTED_NODE_WITH_CHILDREN
      Represents the state of a node that is expanded and is selected and has children
    • EXPANDED_SELECTED_FOCUSED_NODE_WITH_CHILDREN

      public static final TreeCellRendererState EXPANDED_SELECTED_FOCUSED_NODE_WITH_CHILDREN
      Represents the state of a node that is expanded and is selected and has the focus and has children
    • EXPANDED_SELECTED_FOCUSED_NODE

      public static final TreeCellRendererState EXPANDED_SELECTED_FOCUSED_NODE
      Represents the state of a node that is expanded and is selected and has the focus but has no children
    • NODE_WITH_CHILDREN

      public static final TreeCellRendererState NODE_WITH_CHILDREN
      Represents the state of a node that is not selected and has children
    • SELECTED_NODE

      public static final TreeCellRendererState SELECTED_NODE
      Represents the state of a selected node with no children
    • SELECTED_FOCUSED_NODE

      public static final TreeCellRendererState SELECTED_FOCUSED_NODE
      Represents the state of a selected node and has the focus with no children
    • SELECTED_NODE_WITH_CHILDREN

      public static final TreeCellRendererState SELECTED_NODE_WITH_CHILDREN
      Represents the state of a selected node with children
    • EXPANDED_NODE_WITH_CHILDREN

      public static final TreeCellRendererState EXPANDED_NODE_WITH_CHILDREN
      Represents the state of a node that is expanded but not selected and has children
    • SELECTED_FOCUSED_NODE_WITH_CHILDREN

      public static final TreeCellRendererState SELECTED_FOCUSED_NODE_WITH_CHILDREN
      Represents the state of a node that is selected and has the focus with children
  • Method Details

    • values

      public static TreeCellRendererState[] 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 TreeCellRendererState 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
    • getState

      public static TreeCellRendererState getState(boolean leaf, boolean selected, boolean expanded, boolean hasFocus, boolean children)
    • getRenderState

      public static TreeCellRendererState getRenderState(boolean leaf, boolean selected, boolean expanded, boolean hasFocus, boolean children)