Skip navigation links
oracle.ide.db.controls
Class DBObjectSourcePicker
java.lang.Object
oracle.ide.db.controls.AbstractTreePicker
oracle.ide.db.controls.DBObjectPicker
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.
Fields inherited from interface oracle.bali.ewt.shuttle.ItemPicker |
PROPERTY_SELECTION |
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, setTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBObjectSourcePicker
public DBObjectSourcePicker(DBObjectProvider pro,
boolean showChildren,
boolean removeOnShuttle)
- Constructs a new shuttle picker for DBObjects.
- Parameters:
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.
setProvider
public void setProvider(DBObjectProvider pro)
getProvider
protected DBObjectProvider getProvider()
setTypes
public void setTypes(java.lang.String[] types)
setSchema
public void setSchema(Schema schema)
setFilter
public boolean setFilter(java.lang.String filter)
query
public void query()
- Before calling query() the filter, types and schema must be set.
getComponentNamePrefix
protected java.lang.String getComponentNamePrefix()
filterAndSort
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.
-
- Parameters:
objs
- the SystemObjects queried from the database.
- Returns:
- the list of objects (in order) to appear in the picker.
run
public void run()
-
- Specified by:
run
in interface java.lang.Runnable
getComponent
public java.awt.Component getComponent()
-
- Specified by:
getComponent
in interface oracle.bali.ewt.shuttle.ItemPicker
- Overrides:
getComponent
in class AbstractTreePicker
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.