|
||||||||||
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
public abstract class AsyncUniqueNode
Custom UniqueNode for WebAsyncTree. In addition to UniqueNode it contains a loader icon and busy state indicator.
Field Summary | |
---|---|
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. |
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 | |
---|---|
AsyncUniqueNode()
Costructs default node. |
|
AsyncUniqueNode(java.lang.Object userObject)
Constructs AsyncUniqueNode with a custom user object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.alee.laf.tree.UniqueNode |
---|
getId, getTreePath, setId, setId, toString |
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 transient javax.swing.ImageIcon loaderIcon
protected AsyncNodeState state
protected java.lang.Throwable failureCause
Constructor Detail |
---|
public AsyncUniqueNode()
public AsyncUniqueNode(java.lang.Object userObject)
userObject
- custom user objectMethod Detail |
---|
public 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.TreeNode
getParent
in class UniqueNode
public AsyncUniqueNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |