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

treetable::TEvenOddColoringTreeTableCellRenderer Class Reference

Inheritance diagram for treetable::TEvenOddColoringTreeTableCellRenderer:

treetable::TTreeTableCellRenderer List of all members.

Public Methods

 TEvenOddColoringTreeTableCellRenderer (TTreeTable tTREE_TABLE, Color tEVEN_ROW_COLOR, Color tODD_ROW_COLOR)
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)

Detailed Description

Tree and table cell renderer that shows different colors depending on row evenness.
See also:
org.mpcl.nui.TEvenOddColoringTableCellRenderer

Definition at line 43 of file TEvenOddColoringTreeTableCellRenderer.java.


Constructor & Destructor Documentation

treetable::TEvenOddColoringTreeTableCellRenderer::TEvenOddColoringTreeTableCellRenderer TTreeTable    tTREE_TABLE,
Color    tEVEN_ROW_COLOR,
Color    tODD_ROW_COLOR
[inline]
 

Builds a new instance.

Parameters:
tEVEN_ROW_COLOR  The even row color.
tODD_ROW_COLOR  The odd row color.

Definition at line 62 of file TEvenOddColoringTreeTableCellRenderer.java.


Member Function Documentation

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

Returns the component used for drawing the cell.

Parameters:
tTABLE  Table where the cell belongs to.
tVALUE  Value contained in the cell.
gIS_SELECTED  True if the cell is selected.
gHAS_FOCUS  True if the cell has the focus.
iROW  Row of the cell.
iCOLUMN  Column of the cell.

Reimplemented from treetable::TTreeTableCellRenderer.

Definition at line 85 of file TEvenOddColoringTreeTableCellRenderer.java.

Component treetable::TEvenOddColoringTreeTableCellRenderer::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 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.

Reimplemented from treetable::TTreeTableCellRenderer.

Definition at line 131 of file TEvenOddColoringTreeTableCellRenderer.java.

References treetable::TTreeTableCellRenderer::tTreeCellRenderer.


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