Module swing.renderer.main
Enum Class TreeCellRendererState
java.lang.Object
java.lang.Enum<TreeCellRendererState>
io.github.astrapi69.swing.tree.renderer.state.TreeCellRendererState
- All Implemented Interfaces:
Serializable
,Comparable<TreeCellRendererState>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the state of a node that is expanded but not selected but has no focus and has no childrenRepresents the state of a node that is expanded but not selected and has childrenRepresents the state of a node that is expanded and is selected and has the focus but has no childrenRepresents the state of a node that is expanded and is selected and has the focus and has childrenRepresents the state of a node that is expanded and is selected but has no focus and has no childrenRepresents the state of a node that is expanded and is selected and has childrenRepresents the state of a leaf that is not selectedRepresents the state of a node that is not expanded, not selected but has no focus and has no childrenRepresents the state of a node that is not selected and has childrenRepresents the state of a selected leaf and has the focusRepresents the state of a selected node and has the focus with no childrenRepresents the state of a node that is selected and has the focus with childrenRepresents the state of a selected leafRepresents the state of a selected node with no childrenRepresents the state of a selected node with children -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Returns the enum constant of this class with the specified name.static TreeCellRendererState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEAF
Represents the state of a leaf that is not selected -
SELECTED_LEAF
Represents the state of a selected leaf -
SELECTED_FOCUSED_LEAF
Represents the state of a selected leaf and has the focus -
NODE
Represents the state of a node that is not expanded, not selected but has no focus and has no children -
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
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
Represents the state of a node that is expanded and is selected and has children -
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
Represents the state of a node that is expanded and is selected and has the focus but has no children -
NODE_WITH_CHILDREN
Represents the state of a node that is not selected and has children -
SELECTED_NODE
Represents the state of a selected node with no children -
SELECTED_FOCUSED_NODE
Represents the state of a selected node and has the focus with no children -
SELECTED_NODE_WITH_CHILDREN
Represents the state of a selected node with children -
EXPANDED_NODE_WITH_CHILDREN
Represents the state of a node that is expanded but not selected and has children -
SELECTED_FOCUSED_NODE_WITH_CHILDREN
Represents the state of a node that is selected and has the focus 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
-
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)
-