Enum SimpleTreeCellRendererState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LEAF
      The state that represents a leaf that is not selected
      NODE
      The state that represents a node that is not selected and has no children
      NODE_WITH_CHILDREN
      The state that represents a node that is not selected and has children
      SELECTED_FOCUSED_LEAF
      The state that represents a selected leaf and has the focus
      SELECTED_LEAF
      The state that represents a selected leaf
      SELECTED_NODE
      The state that represents a selected node with no children
      SELECTED_NODE_WITH_CHILDREN
      The state that represents a selected node with children
    • Enum Constant Detail

      • SELECTED_FOCUSED_LEAF

        public static final SimpleTreeCellRendererState SELECTED_FOCUSED_LEAF
        The state that represents a selected leaf and has the focus
      • 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 Detail

      • values

        public static SimpleTreeCellRendererState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SimpleTreeCellRendererState c : SimpleTreeCellRendererState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SimpleTreeCellRendererState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null