Enum TreeCellRendererState

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TreeCellRendererState getRenderState​(boolean leaf, boolean selected, boolean expanded, boolean hasFocus, boolean children)  
      static TreeCellRendererState getState​(boolean leaf, boolean selected, boolean expanded, boolean hasFocus, boolean children)  
      static TreeCellRendererState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TreeCellRendererState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static TreeCellRendererState[] 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 (TreeCellRendererState c : TreeCellRendererState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TreeCellRendererState 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
      • 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)