|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode oracle.javatools.ui.tree.lazy.LazyParentNode
public class LazyParentNode
A LazyParentNode is a type of DefaultMutableTreeNode that doesn't compute its children until the user attempts to expand the node. Thus avoiding expensive creation of child nodes that might never be seen by the users.
To use: Create an implementation of LazyParent which fetches the children, create a LazyParentNode and add it to a tree's DefaultTreeModel
The LazyParent instance given at construction time is set as the 'UserObject' of this DefaultMutableTreeNode.
If the process to determine the children takes any significant time then a temporary LazyProgressNode is displayed in the tree to give the user feedback on what's happening.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
LazyParentNode(javax.swing.tree.DefaultTreeModel treeModel,
LazyParent lazyParent)
Create a LazyParentNode. |
|
LazyParentNode(javax.swing.tree.DefaultTreeModel treeModel,
LazyParent lazyParent,
LazyProgressController controller)
Create a LazyParentNode. |
Method Summary |
---|
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
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, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyParentNode(javax.swing.tree.DefaultTreeModel treeModel, LazyParent lazyParent)
public LazyParentNode(javax.swing.tree.DefaultTreeModel treeModel, LazyParent lazyParent, LazyProgressController controller)
The controller will inform listeners whether any progress nodes in this tree are currently fetching their children and has the ability to cancel fetching.
treeModel
- The DefaultTreeModel of the tree containing the nodeslazyParent
- A LazyParent implementation that will fetch the children of this nodecontroller
- a controller to track all of nodes in the tree
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |