| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.view.View
oracle.ide.explorer.Explorer
oracle.ide.explorer.TreeExplorer
public abstract class TreeExplorer
The TreeExplorer interface defines the API for managing
 the nodes in the navigator and explorer trees.
| Field Summary | |
|---|---|
| static java.lang.String | DELETE_TNODE_CMD | 
| Fields inherited from class oracle.ide.explorer.Explorer | 
|---|
| CLOSED, defaultNode, defaultProject, defaultWorkspace, HIDDEN, SHOWN | 
| Fields inherited from class oracle.ide.view.View | 
|---|
| EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP | 
| Constructor Summary | |
|---|---|
| TreeExplorer() | |
| Method Summary | |
|---|---|
| abstract  TNode | addChild(Element element,
         TNode parent,
         javax.swing.tree.DefaultTreeModel model)Add the specified elementto themodelas
 a child ofparent. | 
| abstract  void | addChildren(TNode root)Add the children to the specified rootTNode. | 
| abstract  void | cacheFilter(TNode node,
            ChildFilter filter)Associate the specified nodeandfilter. | 
| abstract  boolean | canRefresh(TNode tnode,
           java.lang.Class cls)Check if the ancestor of the specified tnodewhose data
 object class is an instance of the specifiedclscan
 be refreshed. | 
| abstract  void | collapse(TNode tnode,
         boolean drop)Collapse the specified tnode. | 
| abstract  TNode | createTNode(Element element)Factory method for creating a TNodethat will represent the
  specifiedElementin this TreeExplorer. | 
| abstract  void | expand(TNode tnode,
       boolean all)Expand the specified tnode. | 
| abstract  void | expand(TNode tnode,
       boolean all,
       boolean select)Expand the specified tnode. | 
| abstract  ChildFilter | findCacheFilter(TNode node)Find the ChildFilterassociated with the specifiednode. | 
| abstract  TNode | findTNode(Element element,
          TNode root)Find the TNodeencapsulating the specifiedelement. | 
|  TNode | findTNode(Element element,
          TNode root,
          Context context)Find the TNodeencapsulating the specifiedelement. | 
| abstract  TNode | findTNodeBreadthFirst(Element element,
                      TNode root)Find the TNodeencapsulating the specifiedelement. | 
| abstract  Attributes | getCellRendererAttributes()Renderer attribute control how nodes should be rendered. | 
| abstract  java.util.Comparator | getComparator()Get the Comparatorthat is used to sort the children of this
 node. | 
| abstract  java.awt.Component | getGUI()Returns the component managing the tree. | 
| abstract  javax.swing.JTree | getJTree()Returns the JTree. | 
| abstract  TNode | getRoot()Returns the root TNodein the tree. | 
| abstract  javax.swing.tree.DefaultTreeModel | getTreeModel()Returns the tree model associated with this TreeExplorer. | 
| protected static boolean | isSelectAddedChild(UpdateMessage message,
                   boolean defaultValue) | 
| abstract  void | nodeChanged(TNode tnode)Call this method when you want to repaint the cell associated with the specified tnode. | 
| abstract  boolean | open(TNode node)Add the children of the specified node. | 
| abstract  void | openFilters(PropertyAccess layout)Lod the filters for the view identified by the viewIdfrom the specifiedlayout. | 
| abstract  void | refresh(TNode tnode)Drops all children of the specified tnodeand immediately
 collects them again. | 
| abstract  void | refresh(TNode tnode,
        java.lang.Class cls)Refresh the ancestor of the specified tnodewhose data
 object class is an instance of the specifiedcls. | 
| abstract  TNode | removeChild(TNode child,
            javax.swing.tree.DefaultTreeModel model)Remove the specified childfrom themodel. | 
| abstract  void | saveFilters(PropertyAccess layout)Save the filters for the view identified by the viewIdin the specifiedlayout. | 
| abstract  TNode | searchTNode(Element element,
            TNode root)Search for the TNodeencapsulating the specifiedelement. | 
|  TNode | searchTNode(Element element,
            TNode root,
            Context context)Search for the TNodeencapsulating the specifiedelement. | 
| abstract  TNode | searchTNodeBreadthFirst(Element element,
                        TNode root)Search for the TNodeencapsulating the specifiedelement. | 
| abstract  void | setComparator(java.util.Comparator comparator)Set the Comparatorthat is used to sort the children of this
 node. | 
| protected  void | setRoot(Element e)Sets the root element of the tree. | 
| static void | setSelectAddedChild(UpdateMessage message,
                    boolean selectAddedChild) | 
| abstract  void | setSelected(TNode tnode)Select the given tnodein the tree. | 
| abstract  void | setSelected(TNode[] tnodes)Select the given tnodesin the tree. | 
| Methods inherited from class oracle.ide.explorer.Explorer | 
|---|
| getContextMenu, getController, getTitle, setContext, setOwner, stateChanged | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface oracle.ide.explorer.IconOverlayConsumer | 
|---|
| getElement, getOverlayCache, setOverlayCache | 
| Field Detail | 
|---|
public static final java.lang.String DELETE_TNODE_CMD
| Constructor Detail | 
|---|
public TreeExplorer()
| Method Detail | 
|---|
public abstract TNode createTNode(Element element)
TNode that will represent the
  specified Element in this TreeExplorer.
public abstract TNode findTNode(Element element,
                                TNode root)
TNode encapsulating the specified element.
 Start looking recursively depth first from the given root
 node.
 Unlike searchTNode(Element, TNode), this routine will open
 unopened child container nodes during the search in order to find the
 specified element.  Since this type of search is potentially costly,
 searchTNode(Element, TNode) is preferred in most cases.
public TNode findTNode(Element element,
                       TNode root,
                       Context context)
TNode encapsulating the specified element.
 Start looking recursively depth first from the given root
 node.
 Unlike searchTNode(Element, TNode), this routine will open
 unopened child container nodes during the search in order to find the
 specified element.  Since this type of search is potentially costly,
 searchTNode(Element, TNode) is preferred in most cases.
public abstract TNode findTNodeBreadthFirst(Element element,
                                            TNode root)
TNode encapsulating the specified element.
 Start looking recursively breadth first from the given root
 node. The search does not descend into unopened child container nodes.
 Unlike searchTNode(Element, TNode), this routine will open
 unopened child container nodes during the search in order to find the
 specified element.  Since this type of search is potentially costly,
 searchTNode(Element, TNode) is preferred in most cases.
public abstract TNode searchTNode(Element element,
                                  TNode root)
TNode encapsulating the specified
 element.  Start looking recursively depth first from the given
 root node.The search does not descend into unopened child container nodes.
public TNode searchTNode(Element element,
                         TNode root,
                         Context context)
TNode encapsulating the specified
 element.  Start looking recursively depth first from the given
 root node.The search does not descend into unopened child container nodes.
public abstract TNode searchTNodeBreadthFirst(Element element,
                                              TNode root)
TNode encapsulating the specified
 element.  Start looking recursively breadth first from the
 given root node.The search does not descend into unopened child container nodes.
public abstract ChildFilter findCacheFilter(TNode node)
ChildFilter associated with the specified
 node.
 Returns null if no filter is found.
public abstract void cacheFilter(TNode node,
                                 ChildFilter filter)
node and filter.
public abstract void saveFilters(PropertyAccess layout)
viewId
 in the specified layout.
public abstract void openFilters(PropertyAccess layout)
viewId
 from the specified layout.
public abstract void addChildren(TNode root)
root TNode.
 If a ChildFilter is found for root, this method
 gets the children from the filter.
public abstract TNode addChild(Element element,
                               TNode parent,
                               javax.swing.tree.DefaultTreeModel model)
element to the model as
 a child of parent.
 Returns the TNode encapsulating the Element.
public abstract TNode removeChild(TNode child,
                                  javax.swing.tree.DefaultTreeModel model)
child from the model.
 Returns the TNode closest to the removed child.
public abstract boolean open(TNode node)
node. If the node is
 already opened this method returns immediately. Reloads the tree model
 once the children are added to the node.
public abstract void nodeChanged(TNode tnode)
TNode should not be null.
public abstract void refresh(TNode tnode)
tnode and immediately
 collects them again.
public abstract void refresh(TNode tnode,
                             java.lang.Class cls)
tnode whose data
 object class is an instance of the specified cls.
node - The target node.cls - The class of the data object contained by the ancestor
 of tnode that should be refreshed.
public abstract boolean canRefresh(TNode tnode,
                                   java.lang.Class cls)
tnode whose data
 object class is an instance of the specified cls can
 be refreshed.
node - The target node.cls - The class of the data object contained by the ancestor
 of tnode that should be refreshed.
public abstract void expand(TNode tnode,
                            boolean all)
tnode. If all is set
 to true, it recursively expands container children.
 This form of expand also sets the current selection to each node
 as it is expanded.
public abstract void expand(TNode tnode,
                            boolean all,
                            boolean select)
tnode. If all is set
 to true, it recursively expands container children.
 If select is set to true, the current selection
 is set to each node as it is expanded.
public abstract void collapse(TNode tnode,
                              boolean drop)
public abstract void setSelected(TNode tnode)
tnode in the tree.
public abstract void setSelected(TNode[] tnodes)
tnodes in the tree.
public abstract javax.swing.tree.DefaultTreeModel getTreeModel()
TreeExplorer.
public abstract java.util.Comparator getComparator()
Comparator that is used to sort the children of this
 node.
public abstract void setComparator(java.util.Comparator comparator)
Comparator that is used to sort the children of this
 node.  Calling this method has no effect if the node is not a
 container node.  If the comparator has changed, then the child nodes
 are re-ordered.
comparator - The Comparator used for sorting the children
 of this node; if null, the children are not sorted.public abstract TNode getRoot()
TNode in the tree.
public abstract javax.swing.JTree getJTree()
JTree.
getJTree in interface IconOverlayConsumerpublic abstract java.awt.Component getGUI()
getGUI in class Viewpublic abstract Attributes getCellRendererAttributes()
protected static boolean isSelectAddedChild(UpdateMessage message,
                                            boolean defaultValue)
public static void setSelectAddedChild(UpdateMessage message,
                                       boolean selectAddedChild)
protected void setRoot(Element e)
e - the root element of the tree| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||