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

treetable::TTreeTableCellRenderer Class Reference

Cell renderer for the tree-table tree column. More...

Inheritance diagram for treetable::TTreeTableCellRenderer:

treetable::TEvenOddColoringTreeTableCellRenderer List of all members.

Public Methods

 TTreeTableCellRenderer (TTreeTable tTREE_TABLE)
Component getTableCellRendererComponent (JTable tTABLE, Object tVALUE, boolean gIS_SELECTED, boolean gHAS_FOCUS, int iROW, int iCOLUMN)
Component getTreeCellRendererComponent (JTree tTREE, Object tVALUE, boolean gIS_SELECTED, boolean gIS_EXPANDED, boolean gIS_LEAF, int iROW, boolean gHAS_FOCUS)

Protected Attributes

JTree tTree
 Tree.

DefaultTreeCellRenderer tTreeCellRenderer
 Tree cell renderer.

TTreeTable tTreeTable
 Tree table.


Detailed Description

Cell renderer for the tree-table tree column.

Definition at line 37 of file TTreeTableCellRenderer.java.


Constructor & Destructor Documentation

treetable::TTreeTableCellRenderer::TTreeTableCellRenderer TTreeTable    tTREE_TABLE [inline]
 

Builds a new instance.

Parameters:
tTREE_TABLE  The TTreeTable object.

Definition at line 58 of file TTreeTableCellRenderer.java.

References treetable::TTreeTableCellRenderer::tTree, treetable::TTreeTableCellRenderer::tTreeCellRenderer, and treetable::TTreeTableCellRenderer::tTreeTable.


Member Function Documentation

Component treetable::TTreeTableCellRenderer::getTableCellRendererComponent JTable    tTABLE,
Object    tVALUE,
boolean    gIS_SELECTED,
boolean    gHAS_FOCUS,
int    iROW,
int    iCOLUMN
[inline]
 

Returns the component used for drawing the cell. This method is used to configure the renderer appropriately before drawing.

Parameters:
tTABLE  The JTable that is asking the renderer to draw; can be null.
tVALUE  The value of the cell to be rendered. It is up to the specific renderer to interpret and draw the value. For example, if tVALUE is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. It can be null.
gIS_SELECTED  True if the cell is to be rendered with the selection highlighted; otherwise false.
gHAS_FOCUS  if true, render cell appropriately. For example, put a special border on the cell, if the cell can be edited, render in the color used to indicate editing.
iROW  The row index of the cell being drawn. When drawing the header, the value of row is -1.
iCOLUMN  The column index of the cell being drawn.
See also:
ITreeTableCellRenderer::getTreeCellRendererComponent()

Reimplemented in treetable::TEvenOddColoringTreeTableCellRenderer.

Definition at line 94 of file TTreeTableCellRenderer.java.

References treetable::TTreeTableCellRenderer::tTree, and treetable::TTreeTableCellRenderer::tTreeTable.

Component treetable::TTreeTableCellRenderer::getTreeCellRendererComponent JTree    tTREE,
Object    tVALUE,
boolean    gIS_SELECTED,
boolean    gIS_EXPANDED,
boolean    gIS_LEAF,
int    iROW,
boolean    gHAS_FOCUS
[inline]
 

Sets the value of the current tree cell to tVALUE. If gIS_SELECTED is true, the cell will be drawn as if selected. If gIS_EXPANDED is true the node is currently expanded. If gIS_LEAF is true the node represents a leaf. If gHAS_FOCUS is true the node currently has focus. tTREE is the JTree and the receiver is being configured for. Returns the Component that the renderer uses to draw the value.

Parameters:
tTREE  Tree where the cell belongs to.
tVALUE  Value contained in the cell.
gIS_SELECTED  True if the cell is selected.
gIS_EXPANDED  True if the node is expanded.
gIS_SELECTED  True if the node represents a leaf.
iROW  Row of the cell.
gHAS_FOCUS  True if the cell has the focus.
Returns:
The Component that the renderer uses to draw the value.
See also:
ITreeTableCellRenderer::getTreeCellRendererComponent()

Reimplemented in treetable::TEvenOddColoringTreeTableCellRenderer.

Definition at line 130 of file TTreeTableCellRenderer.java.

References treetable::TTreeTableCellRenderer::tTreeCellRenderer, and treetable::TTreeTableCellRenderer::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