Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.ide.db.controls
Class AbstractTreePicker

java.lang.Object
  extended by oracle.ide.db.controls.AbstractTreePicker

All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.util.EventListener, javax.swing.event.TreeSelectionListener, oracle.bali.ewt.shuttle.ItemPicker
Direct Known Subclasses:
DBObjectPicker, FromJoinToPicker, GroupByFromPicker

public abstract class AbstractTreePicker
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.FocusListener, javax.swing.event.TreeSelectionListener, java.awt.event.ActionListener, oracle.bali.ewt.shuttle.ItemPicker

Abstract ItemPicker implementation providing some support for having a JTree to pick from.


Field Summary

 

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

 

Constructor Summary
AbstractTreePicker()
           
AbstractTreePicker(javax.swing.JTree tree)
           

 

Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 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 setTree(javax.swing.JTree tree)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           

 

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

 

Constructor Detail

AbstractTreePicker

public AbstractTreePicker()

AbstractTreePicker

public AbstractTreePicker(javax.swing.JTree tree)

Method Detail

setTree

public void setTree(javax.swing.JTree tree)

getTree

public javax.swing.JTree getTree()

isItemSelected

public boolean isItemSelected()
Returns true if at least one path in the selection returns non-null from createTransferable.
Specified by:
isItemSelected in interface oracle.bali.ewt.shuttle.ItemPicker

deselectAll

public void deselectAll()
Specified by:
deselectAll in interface oracle.bali.ewt.shuttle.ItemPicker

getSelectedItems

public java.awt.datatransfer.Transferable[] getSelectedItems()
Returns an array containing items created by the createTransferable() method for each path in the tree's selection. If an element in the tree has no associated transferable it is ommited.
Specified by:
getSelectedItems in interface oracle.bali.ewt.shuttle.ItemPicker

isSelectableItemPresent

public boolean isSelectableItemPresent()
Specified by:
isSelectableItemPresent in interface oracle.bali.ewt.shuttle.ItemPicker

getScrollPane

public javax.swing.JScrollPane getScrollPane()

getComponent

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

getSelectionDataFlavors

public java.awt.datatransfer.DataFlavor[] getSelectionDataFlavors()
Specified by:
getSelectionDataFlavors in interface oracle.bali.ewt.shuttle.ItemPicker

canAcceptFlavors

public boolean canAcceptFlavors(java.awt.datatransfer.DataFlavor[] flav)
Specified by:
canAcceptFlavors in interface oracle.bali.ewt.shuttle.ItemPicker

getAllSelectableItems

public abstract java.awt.datatransfer.Transferable[] getAllSelectableItems()
Specified by:
getAllSelectableItems in interface oracle.bali.ewt.shuttle.ItemPicker

addSelectedItems

public abstract boolean addSelectedItems(java.awt.datatransfer.Transferable[] trans)
Specified by:
addSelectedItems in interface oracle.bali.ewt.shuttle.ItemPicker

removeSelectedItems

public abstract void removeSelectedItems()
Specified by:
removeSelectedItems in interface oracle.bali.ewt.shuttle.ItemPicker

removeAllSelectableItems

public abstract void removeAllSelectableItems()
Specified by:
removeAllSelectableItems in interface oracle.bali.ewt.shuttle.ItemPicker

createTransferable

public abstract java.awt.datatransfer.Transferable createTransferable(javax.swing.tree.TreePath path)

addActionListener

public void addActionListener(java.awt.event.ActionListener al)
Add an ActionListener to the ItemPicker.
Specified by:
addActionListener in interface oracle.bali.ewt.shuttle.ItemPicker

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Add a PropertyChangeListener to the ItemPicker.
Specified by:
addPropertyChangeListener in interface oracle.bali.ewt.shuttle.ItemPicker

removeActionListener

public void removeActionListener(java.awt.event.ActionListener al)
Remove an ActionListener from the ItemPicker.
Specified by:
removeActionListener in interface oracle.bali.ewt.shuttle.ItemPicker

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Remove a PropertyChangeListener from the ItemPicker.
Specified by:
removePropertyChangeListener in interface oracle.bali.ewt.shuttle.ItemPicker

handleDefaultAction

protected boolean handleDefaultAction(javax.swing.tree.TreePath path)
Handles the default action for the picker (e.g. enter, or double click events). If false is returned then the default action will be taken (usually remove on the shuttle).

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


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