Enum TreeCellRendererState
- java.lang.Object
-
- java.lang.Enum<TreeCellRendererState>
-
- io.github.astrapi69.swing.tree.renderer.state.TreeCellRendererState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TreeCellRendererState>
public enum TreeCellRendererState extends java.lang.Enum<TreeCellRendererState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPANDED_NODE
Represents the state of a node that is expanded but not selected but has no focus and has no childrenEXPANDED_NODE_WITH_CHILDREN
Represents the state of a node that is expanded but not selected and has childrenEXPANDED_SELECTED_FOCUSED_NODE
Represents the state of a node that is expanded and is selected and has the focus but has no childrenEXPANDED_SELECTED_FOCUSED_NODE_WITH_CHILDREN
Represents the state of a node that is expanded and is selected and has the focus and has childrenEXPANDED_SELECTED_NODE
Represents the state of a node that is expanded and is selected but has no focus and has no childrenEXPANDED_SELECTED_NODE_WITH_CHILDREN
Represents the state of a node that is expanded and is selected and has childrenLEAF
Represents the state of a leaf that is not selectedNODE
Represents the state of a node that is not expanded, not selected but has no focus and has no childrenNODE_WITH_CHILDREN
Represents the state of a node that is not selected and has childrenSELECTED_FOCUSED_LEAF
Represents the state of a selected leaf and has the focusSELECTED_FOCUSED_NODE
Represents the state of a selected node and has the focus with no childrenSELECTED_FOCUSED_NODE_WITH_CHILDREN
Represents the state of a node that is selected and has the focus with childrenSELECTED_LEAF
Represents the state of a selected leafSELECTED_NODE
Represents the state of a selected node with no childrenSELECTED_NODE_WITH_CHILDREN
Represents the state of a selected node with children
-
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.
-
-
-
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 namejava.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)
-
-