Enum SimpleTreeCellRendererState
- java.lang.Object
-
- java.lang.Enum<SimpleTreeCellRendererState>
-
- io.github.astrapi69.swing.tree.renderer.state.SimpleTreeCellRendererState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SimpleTreeCellRendererState>
public enum SimpleTreeCellRendererState extends java.lang.Enum<SimpleTreeCellRendererState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEAF
The state that represents a leaf that is not selectedNODE
The state that represents a node that is not selected and has no childrenNODE_WITH_CHILDREN
The state that represents a node that is not selected and has childrenSELECTED_FOCUSED_LEAF
The state that represents a selected leaf and has the focusSELECTED_LEAF
The state that represents a selected leafSELECTED_NODE
The state that represents a selected node with no childrenSELECTED_NODE_WITH_CHILDREN
The state that represents a selected node with children
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleTreeCellRendererState
getRenderState(boolean leaf, boolean selected, boolean children)
static SimpleTreeCellRendererState
getState(boolean leaf, boolean selected, boolean children)
static SimpleTreeCellRendererState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimpleTreeCellRendererState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 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 namejava.lang.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)
-
-