public abstract class AbstractTreePicker
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.FocusListener, javax.swing.event.TreeSelectionListener, oracle.bali.ewt.shuttle.ItemPicker
Constructor and Description |
---|
AbstractTreePicker() |
AbstractTreePicker(javax.swing.JTree tree) |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener al)
Add an ActionListener to the ItemPicker.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Add a PropertyChangeListener to the ItemPicker.
|
abstract boolean |
addSelectedItems(java.awt.datatransfer.Transferable[] trans) |
boolean |
canAcceptFlavors(java.awt.datatransfer.DataFlavor[] flav) |
abstract java.awt.datatransfer.Transferable |
createTransferable(javax.swing.tree.TreePath path) |
void |
deselectAll() |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
abstract java.awt.datatransfer.Transferable[] |
getAllSelectableItems() |
java.awt.Component |
getComponent() |
javax.swing.JScrollPane |
getScrollPane() |
java.awt.datatransfer.Transferable[] |
getSelectedItems()
Returns an array containing items created by the createTransferable()
method for each path in the tree's selection.
|
java.awt.datatransfer.DataFlavor[] |
getSelectionDataFlavors() |
javax.swing.JTree |
getTree() |
protected boolean |
handleDefaultAction(javax.swing.tree.TreePath path)
Handles the default action for the picker (e.g.
|
boolean |
isItemSelected()
Returns true if at least one path in the selection returns non-null from
createTransferable.
|
boolean |
isSelectableItemPresent() |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
removeActionListener(java.awt.event.ActionListener al)
Remove an ActionListener from the ItemPicker.
|
abstract void |
removeAllSelectableItems() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Remove a PropertyChangeListener from the ItemPicker.
|
abstract void |
removeSelectedItems() |
void |
setTitleControlBar(ControlBar bar) |
void |
setTitleLabel(java.lang.String label,
java.lang.String panelName) |
void |
setTree(javax.swing.JTree tree) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
public AbstractTreePicker()
public AbstractTreePicker(javax.swing.JTree tree)
public void setTree(javax.swing.JTree tree)
public javax.swing.JTree getTree()
public boolean isItemSelected()
isItemSelected
in interface oracle.bali.ewt.shuttle.ItemPicker
public void deselectAll()
deselectAll
in interface oracle.bali.ewt.shuttle.ItemPicker
public java.awt.datatransfer.Transferable[] getSelectedItems()
getSelectedItems
in interface oracle.bali.ewt.shuttle.ItemPicker
public boolean isSelectableItemPresent()
isSelectableItemPresent
in interface oracle.bali.ewt.shuttle.ItemPicker
public javax.swing.JScrollPane getScrollPane()
public java.awt.Component getComponent()
getComponent
in interface oracle.bali.ewt.shuttle.ItemPicker
public java.awt.datatransfer.DataFlavor[] getSelectionDataFlavors()
getSelectionDataFlavors
in interface oracle.bali.ewt.shuttle.ItemPicker
public boolean canAcceptFlavors(java.awt.datatransfer.DataFlavor[] flav)
canAcceptFlavors
in interface oracle.bali.ewt.shuttle.ItemPicker
public abstract java.awt.datatransfer.Transferable[] getAllSelectableItems()
getAllSelectableItems
in interface oracle.bali.ewt.shuttle.ItemPicker
public abstract boolean addSelectedItems(java.awt.datatransfer.Transferable[] trans)
addSelectedItems
in interface oracle.bali.ewt.shuttle.ItemPicker
public abstract void removeSelectedItems()
removeSelectedItems
in interface oracle.bali.ewt.shuttle.ItemPicker
public abstract void removeAllSelectableItems()
removeAllSelectableItems
in interface oracle.bali.ewt.shuttle.ItemPicker
public abstract java.awt.datatransfer.Transferable createTransferable(javax.swing.tree.TreePath path)
public void addActionListener(java.awt.event.ActionListener al)
addActionListener
in interface oracle.bali.ewt.shuttle.ItemPicker
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface oracle.bali.ewt.shuttle.ItemPicker
public void removeActionListener(java.awt.event.ActionListener al)
removeActionListener
in interface oracle.bali.ewt.shuttle.ItemPicker
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface oracle.bali.ewt.shuttle.ItemPicker
protected boolean handleDefaultAction(javax.swing.tree.TreePath path)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void setTitleLabel(java.lang.String label, java.lang.String panelName)
public void setTitleControlBar(ControlBar bar)