|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode com.alee.laf.tree.UniqueNode com.alee.extended.tree.AsyncUniqueNode com.alee.extended.tree.sample.SampleNode
public class SampleNode
Sample node.
Field Summary | |
---|---|
protected java.lang.String |
name
Node name to display. |
protected long |
time
Time spent to load node childs. |
protected SampleNodeType |
type
Node type. |
Fields inherited from class com.alee.extended.tree.AsyncUniqueNode |
---|
failureCause, loaderIcon, state |
Fields inherited from class com.alee.laf.tree.UniqueNode |
---|
id, ID_PREFIX |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
SampleNode(java.lang.String name,
SampleNodeType type)
Constructs sample node. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns node name. |
long |
getTime()
Returns time spent to load node childs. |
SampleNodeType |
getType()
Returns node type. |
void |
setName(java.lang.String name)
Changes node name. |
void |
setTime(long time)
Sets time spent to load node childs. |
void |
setType(SampleNodeType type)
Changes node type. |
java.lang.String |
toString()
Returns text node representation. |
Methods inherited from class com.alee.extended.tree.AsyncUniqueNode |
---|
createLoaderIcon, getChildAt, getFailureCause, getLoaderIcon, getParent, getState, isFailed, isLoaded, isLoading, isWaiting, setFailureCause, setState |
Methods inherited from class com.alee.laf.tree.UniqueNode |
---|
getId, getTreePath, setId, setId |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected SampleNodeType type
protected long time
Constructor Detail |
---|
public SampleNode(java.lang.String name, SampleNodeType type)
name
- node nametype
- node typeMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- new node namepublic SampleNodeType getType()
public void setType(SampleNodeType type)
type
- new node typepublic long getTime()
public void setTime(long time)
time
- new time spent to load node childspublic java.lang.String toString()
toString
in class UniqueNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |