Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.ui.tree.lazy
Class LazyProgressNode<T>

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by oracle.javatools.ui.tree.lazy.LazyProgressNode<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public final class LazyProgressNode<T>
extends javax.swing.tree.DefaultMutableTreeNode
implements javax.swing.tree.TreeNode

A LazyProgressNode is a temporary node that appears in a tree as a child of a LazyParentNode. The LazyProcessNode runs the worker that determines the children, and reports progress via the getProgress method. Once the children are fetched the progess node is removed from the tree and the children are inserted.

Progress can be determined and cancelled via a LazyProgressTracker passed to a LazyParentNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Method Summary
 int getProgress()
          Report the progress of the child worker via SwingWorker.getProgress()
 java.lang.String getProgressText()
          Report the latest (if any) "progressText" property change event sent by the SwingWorker
 boolean isLeaf()
           
 java.lang.String toString()
           
 
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, 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
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent
 

Method Detail

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode

getProgress

public int getProgress()
Report the progress of the child worker via SwingWorker.getProgress()


getProgressText

public java.lang.String getProgressText()
Report the latest (if any) "progressText" property change event sent by the SwingWorker


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.