Skip navigation links

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


Class DBObjectSourcePicker

  extended by oracle.ide.db.controls.AbstractTreePicker
      extended by oracle.ide.db.controls.DBObjectPicker
          extended by oracle.ide.db.controls.DBObjectSourcePicker

All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.lang.Runnable, java.util.EventListener, javax.swing.event.TreeSelectionListener, oracle.bali.ewt.shuttle.ItemPicker
Direct Known Subclasses:
FromFromPicker, QuickPickSourcePicker

public class DBObjectSourcePicker
extends DBObjectPicker
implements java.lang.Runnable

ItemPicker that renders a tree of pickable DBObjects.
Before calling query() the filter, types and schema must be set.

Field Summary


Fields inherited from class oracle.ide.db.controls.DBObjectPicker
EMPTY, m_dbRenderer, m_nodeMaker, m_remove, m_top, m_tree, m_treeModel


Fields inherited from interface oracle.bali.ewt.shuttle.ItemPicker


Constructor Summary
DBObjectSourcePicker(DBObjectProvider pro, boolean showChildren, boolean removeOnShuttle)
          Constructs a new shuttle picker for DBObjects.


Method Summary
protected  SystemObject[] filterAndSort(SystemObject[] objs)
          Called by the picker when querying the database.
 java.awt.Component getComponent()
protected  java.lang.String getComponentNamePrefix()
protected  DBObjectProvider getProvider()
 void query()
          Before calling query() the filter, types and schema must be set.
 void run()
 boolean setFilter(java.lang.String filter)
 void setProvider(DBObjectProvider pro)
 void setSchema(Schema schema)
 void setTypes(java.lang.String[] types)


Methods inherited from class oracle.ide.db.controls.DBObjectPicker
addDBObjectPaths, addDBObjects, addNode, addSelectedItems, canAcceptFlavors, clear, createTransferable, findOrAddChild, getAllSelectableItems, getNodeMaker, getSelectionDataFlavors, isSelectableItemPresent, reloadTree, removeAllSelectableItems, removeSelectedItems, setSelectedItems, valueChanged


Methods inherited from class oracle.ide.db.controls.AbstractTreePicker
actionPerformed, addActionListener, addPropertyChangeListener, deselectAll, focusGained, focusLost, getScrollPane, getSelectedItems, getTree, handleDefaultAction, isItemSelected, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, removeActionListener, removePropertyChangeListener, setTitleControlBar, setTitleLabel, setTree


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


Constructor Detail


public DBObjectSourcePicker(DBObjectProvider pro,
                            boolean showChildren,
                            boolean removeOnShuttle)
Constructs a new shuttle picker for DBObjects.
pro - the provider of objects that we're picking from
showChildren - whether to recurse to child objects - fk's will recurse but only when the node is opened.
removeOnShuttle - whether to remove objects on shuttle. this will only work if we're NOT showing the children.

Method Detail


public void setProvider(DBObjectProvider pro)


protected DBObjectProvider getProvider()


public void setTypes(java.lang.String[] types)


public void setSchema(Schema schema)


public boolean setFilter(java.lang.String filter)


public void query()
Before calling query() the filter, types and schema must be set.


protected java.lang.String getComponentNamePrefix()


protected SystemObject[] filterAndSort(SystemObject[] objs)
Called by the picker when querying the database. This method is respsonsible for sorting the list of objects that appear in the picker, as well as omitting any objects that are unwanted.
objs - the SystemObjects queried from the database.
the list of objects (in order) to appear in the picker.


public void run()
Specified by:
run in interface java.lang.Runnable


public java.awt.Component getComponent()
Specified by:
getComponent in interface oracle.bali.ewt.shuttle.ItemPicker
getComponent in class AbstractTreePicker

Skip navigation links

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


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