Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.ide.db.util
Class TreeNodeMaker

java.lang.Object
  extended by oracle.ide.db.util.TreeNodeMaker


public class TreeNodeMaker
extends java.lang.Object

UI utility for creating TreeNodes for DBObjects and SQLFragments.


Constructor Summary
TreeNodeMaker()
           
TreeNodeMaker(boolean showChildren)
          Creates a new TreeNodeMaker that specifically does or doesn't create child nodes as well.
TreeNodeMaker(boolean showChildren, java.lang.String[] childTypes)
          Creates a new TreeNodeMaker that specifically does or doesn't create child nodes of the given types as well.

 

Method Summary
 javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj)
          Creates a TreeNode using the defaults set on this TreeNodeMaker for child nodes for the given DBObject.
 javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj)
          Creates a TreeNode using the defaults set on this TreeNodeMaker for child nodes for the given SQLFragment.
 javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj, boolean showAvailKids)
          Creates a TreeNode using the defaults set on this TreeNodeMaker but gives an extra customisation - the ability to show available children - e.g.
 boolean getShowChildren()
          Gets whether child nodes are also created for a given object.
 void setChildTypes(java.lang.String[] childTypes)
          If child nodes are being created, the types of children for which nodes are created can be filtered by types.
 void setDeepFKs(boolean boo)
          Sets wether FKConstraint nodes should recurse to their referenced relations.
 void setShowChildren(boolean boo)
          Sets whether child nodes are also created for a given object.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TreeNodeMaker

public TreeNodeMaker()

TreeNodeMaker

public TreeNodeMaker(boolean showChildren)
Creates a new TreeNodeMaker that specifically does or doesn't create child nodes as well.

TreeNodeMaker

public TreeNodeMaker(boolean showChildren,
                     java.lang.String[] childTypes)
Creates a new TreeNodeMaker that specifically does or doesn't create child nodes of the given types as well.

Method Detail

setShowChildren

public void setShowChildren(boolean boo)
Sets whether child nodes are also created for a given object.

getShowChildren

public boolean getShowChildren()
Gets whether child nodes are also created for a given object.

setChildTypes

public void setChildTypes(java.lang.String[] childTypes)
If child nodes are being created, the types of children for which nodes are created can be filtered by types. This supports the use of the sub-types for Constraints.

setDeepFKs

public void setDeepFKs(boolean boo)
Sets wether FKConstraint nodes should recurse to their referenced relations.

createTreeNode

public javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj)
Creates a TreeNode using the defaults set on this TreeNodeMaker for child nodes for the given DBObject.

createTreeNode

public javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj)
Creates a TreeNode using the defaults set on this TreeNodeMaker for child nodes for the given SQLFragment.

createTreeNode

public javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj,
                                                              boolean showAvailKids)
Creates a TreeNode using the defaults set on this TreeNodeMaker but gives an extra customisation - the ability to show available children - e.g. Columns on a FromObject that has a RelationUsage etc. Useful for expression pallettes.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


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