Module swing.renderer.main
Enum Class SimpleTreeCellRendererState
java.lang.Object
java.lang.Enum<SimpleTreeCellRendererState>
io.github.astrapi69.swing.tree.renderer.state.SimpleTreeCellRendererState
- All Implemented Interfaces:
Serializable
,Comparable<SimpleTreeCellRendererState>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe state that represents a leaf that is not selectedThe state that represents a node that is not selected and has no childrenThe state that represents a node that is not selected and has childrenThe state that represents a selected leaf and has the focusThe state that represents a selected leafThe state that represents a selected node with no childrenThe state that represents a selected node with children -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleTreeCellRendererState
getRenderState
(boolean leaf, boolean selected, boolean children) static SimpleTreeCellRendererState
getState
(boolean leaf, boolean selected, boolean children) static SimpleTreeCellRendererState
Returns the enum constant of this class with the specified name.static SimpleTreeCellRendererState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEAF
The state that represents a leaf that is not selected -
SELECTED_LEAF
The state that represents a selected leaf -
SELECTED_FOCUSED_LEAF
The state that represents a selected leaf and has the focus -
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_NODE
The state that represents a selected node with no children -
SELECTED_NODE_WITH_CHILDREN
The state that represents a selected node with children
-
-
Method Details
-
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
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 nameNullPointerException
- 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)
-