Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

nui::TTreeTable Class Reference

Inheritance diagram for nui::TTreeTable:

List of all members.

Public Methods

 TTreeTable (ITreeTableModel tTREE_TABLE_MODEL)
void collapseTreeAll ()
 Collapses all nodes in the tree.

void expandTreeAll ()
 Expands all nodes in the tree.

void setDefaultRenderer (ITreeTableCellRenderer tTREE_TABLE_CELL_RENDERER)
void setLastVisibleRow (int iLAST_VISIBLE_ROW)
void setRowHeight (int iROW_HEIGHT)
TTree getTree ()
ITreeTableModel getTreeTableModel ()
void updateUI ()

Protected Attributes

TTree tTree
 Tree. It will be used as renderer and editor.

ITreeTableModel tTreeTableModel

Detailed Description

Tree-table component. It uses a JTree as a renderer and editor for the cells in a particular column in the JTable.

Definition at line 90 of file TTreeTable.java.


Constructor & Destructor Documentation

nui::TTreeTable::TTreeTable ITreeTableModel    tTREE_TABLE_MODEL [inline]
 

Builds a new instance.

Parameters:
tTREE_TABLE_MODEL  The tree-table model.

Definition at line 111 of file TTreeTable.java.

References nui::TTreeTable::setDefaultRenderer(), nui::TTreeTable::setRowHeight(), nui::TTreeTable::tTree, and nui::TTreeTable::tTreeTableModel.


Member Function Documentation

TTree nui::TTreeTable::getTree   [inline]
 

Returns the tree that is being shared between the model.

Returns:
The tree.

Definition at line 241 of file TTreeTable.java.

References nui::TTreeTable::tTree.

ITreeTableModel nui::TTreeTable::getTreeTableModel   [inline]
 

Returns the tree-table model.

Returns:
The tree-table model.

Definition at line 250 of file TTreeTable.java.

References nui::TTreeTable::tTreeTableModel.

void nui::TTreeTable::setDefaultRenderer ITreeTableCellRenderer    tTREE_TABLE_CELL_RENDERER [inline]
 

Sets a default cell renderer to be used if no renderer has been set in a TableColumn. If tTREE_TABLE_CELL_RENDERER is null, then it removes the default renderer for the column class ITreeTableModel.

Parameters:
tTREE_TABLE_CELL_RENDERER  Default cell renderer to be used for the column class ITreeTableModel.

Definition at line 176 of file TTreeTable.java.

References nui::TTreeTable::tTree.

Referenced by nui::TTreeTable::TTreeTable().

void nui::TTreeTable::setLastVisibleRow int    iLAST_VISIBLE_ROW [inline]
 

Sets the last visible row for the tree renderer.

Parameters:
iLAST_VISIBLE_ROW  The tree last visible row.

Definition at line 199 of file TTreeTable.java.

References nui::TTreeTable::tTree.

void nui::TTreeTable::setRowHeight int    iROW_HEIGHT [inline]
 

Overridden to also pass the new row height to the tree.

Parameters:
iROW_HEIGHT  The new row height.
See also:
javax.swing.JTablesetRowHeight()

Definition at line 209 of file TTreeTable.java.

References nui::TTreeTable::tTree.

Referenced by nui::TTreeTable::TTreeTable().

void nui::TTreeTable::updateUI   [inline]
 

Overridden to message super and forward the method to the tree. Since the tree is not actually in the component hierarchy, it will never receive this unless it forwards it in this manner.

Definition at line 260 of file TTreeTable.java.

References nui::TTreeTable::tTree.


Member Data Documentation

ITreeTableModel nui::TTreeTable::tTreeTableModel [protected]
 

Tree-table model. It is a table model representing the visible rows in the tree.

Definition at line 100 of file TTreeTable.java.

Referenced by nui::TTreeTable::getTreeTableModel(), and nui::TTreeTable::TTreeTable().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18