public class SampleNode extends AsyncUniqueNode
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
Node name to display.
|
protected long |
time
Time spent to load node childs.
|
protected SampleNodeType |
type
Node type.
|
failureCause, loaderIcon, stateid, ID_PREFIX| Constructor and Description |
|---|
SampleNode(java.lang.String name,
SampleNodeType type)
Constructs sample node.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
createLoaderIcon, getChildAt, getFailureCause, getLoaderIcon, getParent, getState, isFailed, isLoaded, isLoading, isWaiting, setFailureCause, setStategetId, getTreePath, setId, setIdadd, 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, setUserObjectprotected java.lang.String name
protected SampleNodeType type
protected long time
public SampleNode(java.lang.String name,
SampleNodeType type)
name - node nametype - node typepublic 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