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

E17493-02

oracle.ide.db.util
Class DBObjectRenderer

java.lang.Object
  extended by oracle.ide.db.util.DBObjectRenderer
All Implemented Interfaces:
java.util.Comparator, javax.swing.ListCellRenderer, javax.swing.table.TableCellRenderer, javax.swing.tree.TreeCellRenderer

public class DBObjectRenderer
extends java.lang.Object
implements javax.swing.table.TableCellRenderer, javax.swing.ListCellRenderer, javax.swing.tree.TreeCellRenderer, java.util.Comparator

UI utility class for rendering DBObjects in a table, list, or tree. For best results in a tree, us a TreeNodeMaker.


Constructor Summary
DBObjectRenderer()
           
DBObjectRenderer(boolean includeIcon)
           
 
Method Summary
 int compare(DBObject o1, DBObject o2)
           
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj, boolean showChildren)
          Deprecated. - use a TreeNodeMaker.
static javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj, boolean showChildren, java.lang.String[] includeChildTypes)
          Deprecated. - use a TreeNodeMaker.
static javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj, boolean showChildren)
          Deprecated. - use a TreeNodeMaker.
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
           
 java.lang.String getNullLabel()
           
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
           
 java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
           
 void setCompareByType(boolean boo)
           
 void setIncludeIcon(boolean boo)
           
 void setNullLabel(java.lang.String lbl)
           
 void setProvider(DBObjectProvider prov)
           
 void setShowSchema(boolean showSchema)
          switch whether or not to show the schema with a DBObject name
static void setToolTipText(javax.swing.JComponent widget, java.lang.String text)
          Sets the tool tip text on the widget and the accessible name for Jaws.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DBObjectRenderer

public DBObjectRenderer()

DBObjectRenderer

public DBObjectRenderer(boolean includeIcon)
Method Detail

getNullLabel

public java.lang.String getNullLabel()

setNullLabel

public void setNullLabel(java.lang.String lbl)

setProvider

public void setProvider(DBObjectProvider prov)

setIncludeIcon

public void setIncludeIcon(boolean boo)

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer

getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean cellHasFocus)
Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer

getTreeCellRendererComponent

public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
                                                       java.lang.Object value,
                                                       boolean selected,
                                                       boolean expanded,
                                                       boolean leaf,
                                                       int row,
                                                       boolean hasFocus)
Specified by:
getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRenderer

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

compare

public int compare(DBObject o1,
                   DBObject o2)

setCompareByType

public void setCompareByType(boolean boo)

setShowSchema

public void setShowSchema(boolean showSchema)
switch whether or not to show the schema with a DBObject name


setToolTipText

public static void setToolTipText(javax.swing.JComponent widget,
                                  java.lang.String text)
Sets the tool tip text on the widget and the accessible name for Jaws. The accessible description has to be set as an empty string to prevent Jaws appending 'Insert F1 Help' to the tool tip text.

Parameters:
widget -
text -

createTreeNode

@Deprecated
public static javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj,
                                                                                boolean showChildren)
Deprecated. - use a TreeNodeMaker.


createTreeNode

@Deprecated
public static javax.swing.tree.DefaultMutableTreeNode createTreeNode(DBObject obj,
                                                                                boolean showChildren,
                                                                                java.lang.String[] includeChildTypes)
Deprecated. - use a TreeNodeMaker.


createTreeNode

@Deprecated
public static javax.swing.tree.DefaultMutableTreeNode createTreeNode(SQLFragment obj,
                                                                                boolean showChildren)
Deprecated. - use a TreeNodeMaker.


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.