public class DBObjectListPicker
extends oracle.bali.ewt.shuttle.ListPicker
Constructor and Description |
---|
DBObjectListPicker() |
DBObjectListPicker(javax.swing.JList list) |
Modifier and Type | Method and Description |
---|---|
void |
addDBObject(DBObject obj)
Use to setup the initial contents of the picker.
|
boolean |
addSelectedItems(java.awt.datatransfer.Transferable[] add)
By default, unless overridden by subclasses, the objects themselves are
added to the list picker.
|
protected void |
cachePath(DBObjectTransferable trans) |
boolean |
canAcceptFlavors(java.awt.datatransfer.DataFlavor[] df) |
protected java.awt.datatransfer.Transferable |
createTransferable(java.lang.Object obj) |
protected java.awt.datatransfer.Transferable[] |
filterForAdd(java.awt.datatransfer.Transferable[] add)
Filters the given Transferable[] for DBObject types that are accepted by
this picker.
|
javax.swing.DefaultListModel |
getListModel()
Returns the ListModel behind the List.
|
protected javax.swing.ListCellRenderer |
getRenderer() |
java.awt.datatransfer.DataFlavor[] |
getSelectionDataFlavors() |
void |
removeAllSelectableItems() |
void |
removeSelectedItems() |
void |
setAcceptTypes(java.lang.String[] types)
Sets the DBObject types that this picker will accept.
|
void |
setRemoveOnShuttle(boolean remove) |
addActionListener, addPropertyChangeListener, deselectAll, dispose, dragEnter, dragExit, dragOver, drop, dropActionChanged, getAllSelectableItems, getComparator, getComponent, getDnDComponent, getItemsSorted, getList, getSelectedItems, isItemSelected, isOkayToDrag, isOkayToDrop, isSelectableItemPresent, processDnDReorder, removeActionListener, removePropertyChangeListener, setItemsSorted, sortItems
public DBObjectListPicker()
public DBObjectListPicker(javax.swing.JList list)
public void setRemoveOnShuttle(boolean remove)
public void setAcceptTypes(java.lang.String[] types)
public void addDBObject(DBObject obj)
protected final javax.swing.ListCellRenderer getRenderer()
protected java.awt.datatransfer.Transferable[] filterForAdd(java.awt.datatransfer.Transferable[] add)
public javax.swing.DefaultListModel getListModel()
public boolean canAcceptFlavors(java.awt.datatransfer.DataFlavor[] df)
canAcceptFlavors
in interface oracle.bali.ewt.shuttle.ItemPicker
canAcceptFlavors
in class oracle.bali.ewt.shuttle.ListPicker
public java.awt.datatransfer.DataFlavor[] getSelectionDataFlavors()
getSelectionDataFlavors
in interface oracle.bali.ewt.shuttle.ItemPicker
getSelectionDataFlavors
in class oracle.bali.ewt.shuttle.ListPicker
protected java.awt.datatransfer.Transferable createTransferable(java.lang.Object obj)
createTransferable
in class oracle.bali.ewt.shuttle.ListPicker
public boolean addSelectedItems(java.awt.datatransfer.Transferable[] add)
addSelectedItems
in interface oracle.bali.ewt.shuttle.ItemPicker
addSelectedItems
in class oracle.bali.ewt.shuttle.ListPicker
protected void cachePath(DBObjectTransferable trans)
public void removeSelectedItems()
removeSelectedItems
in interface oracle.bali.ewt.shuttle.ItemPicker
removeSelectedItems
in class oracle.bali.ewt.shuttle.ListPicker
public void removeAllSelectableItems()
removeAllSelectableItems
in interface oracle.bali.ewt.shuttle.ItemPicker
removeAllSelectableItems
in class oracle.bali.ewt.shuttle.ListPicker