Module net.anwiba.commons.swing
Package net.anwiba.commons.swing.tree
Class ReloadableFolderTreeNode<T>
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
net.anwiba.commons.swing.tree.ReloadableFolderTreeNode<T>
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionReloadableFolderTreeNode(IFactory<T, List<DefaultMutableTreeNode>, RuntimeException> initializer, T userObject) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MutableTreeNode newChild) booleanbooleanisLeaf()booleanvoidload(DefaultTreeModel treeModel) voidreload(DefaultTreeModel treeModel, Runnable postProcess) Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
Constructor Details
-
ReloadableFolderTreeNode
public ReloadableFolderTreeNode(IFactory<T, List<DefaultMutableTreeNode>, RuntimeException> initializer, T userObject)
-
-
Method Details
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfaceTreeNode- Overrides:
isLeafin classDefaultMutableTreeNode
-
add
- Overrides:
addin classDefaultMutableTreeNode
-
isInitialized
public boolean isInitialized() -
isLoading
public boolean isLoading() -
load
-
reload
-