Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.jbo.uicli.jui
Interface JUTreeTableBinding.TreeTableModel

All Superinterfaces:
javax.swing.tree.TreeModel
All Known Implementing Classes:
JUTreeTableBinding.JUTreeTableModel
Enclosing class:
JUTreeTableBinding

public static interface JUTreeTableBinding.TreeTableModel
extends javax.swing.tree.TreeModel

Method Summary
 java.lang.Class getColumnClass(int column)
          The column type is needed to identify the appropriate editor to render each cell.
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 javax.swing.tree.TreeModel getTreeModel()
          The TreeTableModel may be implemented as a single model, or a dual model.
 java.lang.Object getValueAt(javax.swing.tree.TreeNode node, int column)
          This method is the equivalent of getValueAt in TableModel.
 boolean isCellEditable(javax.swing.tree.TreeNode node, int column)
          The tree editor needs to be editable to respond to the various tree events
 void setValueAt(java.lang.Object value, javax.swing.tree.TreeNode node, int column)
          This method is the equivalent of setValueAt in TableModel.

 

Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged

 

Method Detail

getColumnCount

int getColumnCount()
Returns:
The number of columns in the table

getColumnName

java.lang.String getColumnName(int column)
Parameters:
column - the column index
Returns:
The name for a given column

getColumnClass

java.lang.Class getColumnClass(int column)
The column type is needed to identify the appropriate editor to render each cell. It is sufficient to distinguish between the tree model column and other columns (they may return Object.class)
Parameters:
column - the column index
Returns:
the type of component represented in the column

getValueAt

java.lang.Object getValueAt(javax.swing.tree.TreeNode node,
                            int column)
This method is the equivalent of getValueAt in TableModel.
Parameters:
node - the TreeNode shown in the given row
column - the column index
Returns:
the column class
See Also:
TableModel.getValueAt(int,int)

setValueAt

void setValueAt(java.lang.Object value,
                javax.swing.tree.TreeNode node,
                int column)
This method is the equivalent of setValueAt in TableModel.
Parameters:
value - the new value
node - the TreeNode shown in the given row
column - the column index
See Also:
TableModel.setValueAt(Object,int,int)

isCellEditable

boolean isCellEditable(javax.swing.tree.TreeNode node,
                       int column)
The tree editor needs to be editable to respond to the various tree events
Parameters:
node - the TreeNode shown in the given row
column - the column index
Returns:
true if the cell specified is editable

getTreeModel

javax.swing.tree.TreeModel getTreeModel()
The TreeTableModel may be implemented as a single model, or a dual model. If implemented as a single model, then the current instance will represent the TableModel as well as the TreeModel. If implemented as a dual model, the TableModel and the TreeModel are kept as siblings. This method provides access to the TreeModel, regardless of how the model is implemented.
Returns:
The associated TreeModel

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


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