|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.tree.NodeState
public class NodeState
Single node state data class.
Field Summary | |
---|---|
protected boolean |
expanded
Whether node is expanded or not. |
protected boolean |
selected
Whether node is selected or not. |
Constructor Summary | |
---|---|
NodeState()
Constructs empty node state. |
|
NodeState(boolean expanded,
boolean selected)
Constructs node state with the specified expansion and selection states. |
Method Summary | |
---|---|
protected NodeState |
clone()
Returns cloned node state. |
boolean |
isExpanded()
Returns whether node is expanded or not. |
boolean |
isSelected()
Returns whether node is selected or not. |
void |
setExpanded(boolean expanded)
Sets whether node is expanded or not. |
void |
setSelected(boolean selected)
Sets whether node is selected or not. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@XStreamAsAttribute protected boolean expanded
@XStreamAsAttribute protected boolean selected
Constructor Detail |
---|
public NodeState()
public NodeState(boolean expanded, boolean selected)
expanded
- expansion stateselected
- selection stateMethod Detail |
---|
public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded
- whether node is expanded or notpublic boolean isSelected()
public void setSelected(boolean selected)
selected
- whether node is selected or notprotected NodeState clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |