public class DBObjectSourcePicker extends DBObjectPicker implements java.lang.Runnable
EMPTY, m_dbRenderer, m_nodeMaker, m_remove, m_top, m_tree, m_treeModel
Constructor and Description |
---|
DBObjectSourcePicker(DBObjectProvider pro,
boolean showChildren,
boolean removeOnShuttle)
Constructs a new shuttle picker for DBObjects.
|
Modifier and Type | Method and Description |
---|---|
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) |
addDBObjectPaths, addDBObjects, addNode, addSelectedItems, canAcceptFlavors, clear, createTransferable, findOrAddChild, getAllSelectableItems, getNodeMaker, getSelectionDataFlavors, isSelectableItemPresent, reloadTree, removeAllSelectableItems, removeSelectedItems, setSelectedItems, valueChanged
addActionListener, addPropertyChangeListener, deselectAll, focusGained, focusLost, getScrollPane, getSelectedItems, getTree, handleDefaultAction, isItemSelected, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, removeActionListener, removePropertyChangeListener, setTitleControlBar, setTitleLabel, setTree
public DBObjectSourcePicker(DBObjectProvider pro, boolean showChildren, boolean removeOnShuttle)
pro
- the provider of objects that we're picking fromshowChildren
- 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.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()
protected java.lang.String getComponentNamePrefix()
protected SystemObject[] filterAndSort(SystemObject[] objs)
objs
- the SystemObjects queried from the database.public void run()
run
in interface java.lang.Runnable
public java.awt.Component getComponent()
getComponent
in interface oracle.bali.ewt.shuttle.ItemPicker
getComponent
in class AbstractTreePicker