public abstract class AsyncUniqueNode extends UniqueNode implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Throwable |
failureCause
Childs load failure cause.
|
protected javax.swing.ImageIcon |
loaderIcon
Special separate loader icon for each tree node.
|
protected AsyncNodeState |
state
Current async node state.
|
id, ID_PREFIX| Constructor and Description |
|---|
AsyncUniqueNode()
Costructs default node.
|
AsyncUniqueNode(java.lang.Object userObject)
Constructs AsyncUniqueNode with a custom user object.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.ImageIcon |
createLoaderIcon()
Returns newly created loader icon for this node.
|
AsyncUniqueNode |
getChildAt(int index) |
java.lang.Throwable |
getFailureCause()
Returns childs load failure cause.
|
javax.swing.ImageIcon |
getLoaderIcon()
Returns loader icon for this node.
|
AsyncUniqueNode |
getParent() |
AsyncNodeState |
getState()
Returns async node state.
|
boolean |
isFailed()
Returns whether node childs load failed or not.
|
boolean |
isLoaded()
Returns whether node childs are loaded or not.
|
boolean |
isLoading()
Returns whether node childs are being loaded or not.
|
boolean |
isWaiting()
Returns whether node is in waiting state.
|
void |
setFailureCause(java.lang.Throwable failureCause)
Sets childs load failure cause.
|
void |
setState(AsyncNodeState state)
Sets async node state.
|
getId, getTreePath, setId, setId, toStringadd, 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 transient javax.swing.ImageIcon loaderIcon
protected AsyncNodeState state
protected java.lang.Throwable failureCause
public AsyncUniqueNode()
public AsyncUniqueNode(java.lang.Object userObject)
userObject - custom user objectpublic AsyncNodeState getState()
public boolean isWaiting()
public boolean isLoading()
public boolean isLoaded()
public boolean isFailed()
public void setState(AsyncNodeState state)
state - new async node statepublic java.lang.Throwable getFailureCause()
public void setFailureCause(java.lang.Throwable failureCause)
failureCause - childs load failure causepublic javax.swing.ImageIcon getLoaderIcon()
protected javax.swing.ImageIcon createLoaderIcon()
public AsyncUniqueNode getParent()
getParent in interface javax.swing.tree.TreeNodegetParent in class UniqueNodepublic AsyncUniqueNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class javax.swing.tree.DefaultMutableTreeNode