public abstract class LazyLoadingTreeNode extends DefaultMutableTreeNode implements HasValue
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
LazyLoadingTreeNode(Object userObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
expandNode(DefaultTreeModel model,
JComponent view)
Loads children nodes, in a swing worker
|
abstract List<MutableTreeNode> |
loadChildren()
Call when children have to be load
|
protected void |
setChildren(List<MutableTreeNode> childs) |
void |
setRunning(JComponent view,
boolean running)
Call when loading starts and end.
|
add, 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, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic LazyLoadingTreeNode(Object userObject)
public abstract List<MutableTreeNode> loadChildren()
protected void setChildren(List<MutableTreeNode> childs)
public void setRunning(JComponent view, boolean running)
view - The view to updaterunning - If the process is running ... or notpublic void expandNode(DefaultTreeModel model, JComponent view)
model - The model to updateview - The view to updateCopyright © 2019. All rights reserved.