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

nui::TEvenOddColoringTableCellRenderer Class Reference

Table cell renderer that shows different colors depending on row evenness. More...

Inheritance diagram for nui::TEvenOddColoringTableCellRenderer:

List of all members.

Public Methods

 TEvenOddColoringTableCellRenderer (Color tEVEN_ROW_COLOR, Color tODD_ROW_COLOR)
Component getTableCellRendererComponent (JTable tTABLE, Object tVALUE, boolean gIS_SELECTED, boolean gHAS_FOCUS, int iROW, int iCOLUMN)

Detailed Description

Table cell renderer that shows different colors depending on row evenness.

Definition at line 37 of file TEvenOddColoringTableCellRenderer.java.


Constructor & Destructor Documentation

nui::TEvenOddColoringTableCellRenderer::TEvenOddColoringTableCellRenderer 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 56 of file TEvenOddColoringTableCellRenderer.java.


Member Function Documentation

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

Returns the component used for drawing the cell. If the odd row color is null then the first time this method is called for an odd row, the odd row color is taken from the table background color.

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.
See also:
javax.swing.table.TableCellRenderergetTableCellRendererComponent() , javax.swing.JTablegetBackground()

Definition at line 80 of file TEvenOddColoringTableCellRenderer.java.


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