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.javatools.ui.combo
Class TreeComboModel

java.lang.Object
  extended by oracle.javatools.ui.combo.TreeComboModel

All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel

public class TreeComboModel
extends java.lang.Object
implements javax.swing.ComboBoxModel

Model for a JTreeComboBox Constructed with a regular TreeModel, this class delegates most calls to the TreeModel, but adds the concept of combo selection.


Constructor Summary
TreeComboModel(javax.swing.JTree tree)
           

 

Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
          Currently does nothing
 java.lang.Object getElementAt(int index)
          Return the object at the row specified by 'index'
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 javax.swing.tree.TreePath getTreePath(java.lang.Object obj)
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
          Currently does nothing
 void setSelectedItem(java.lang.Object anItem)
           

 

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

 

Constructor Detail

TreeComboModel

public TreeComboModel(javax.swing.JTree tree)

Method Detail

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel

getTreePath

public javax.swing.tree.TreePath getTreePath(java.lang.Object obj)
Parameters:
obj - Object to search the tree for
Returns:
the TreePath for the given object

getSelectedItem

public java.lang.Object getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
Returns:
the currently selected object

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel
Returns:
The number of rows in the tree

getElementAt

public java.lang.Object getElementAt(int index)
Return the object at the row specified by 'index'
Specified by:
getElementAt in interface javax.swing.ListModel
Parameters:
index -
Returns:

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing
Specified by:
addListDataListener in interface javax.swing.ListModel
Parameters:
l -

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing
Specified by:
removeListDataListener in interface javax.swing.ListModel
Parameters:
l -

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.