Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.awt.Component | getTableCellRendererComponent(JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
This method is sent to the renderer by the drawing table to configure the renderer appropriately before drawing. |
Method Detail |
public java.awt.Component getTableCellRendererComponent(JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
table
- the JTable that is asking the renderer to draw.
This parameter can be null.
value
- the value of the cell to be rendered. It is
up to the specific renderer to interpret
and draw the value. eg. if value is the
String "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null is a valid value.
isSelected
- true is the cell is to be renderer with
selection highlighting
row
- the row index of the cell being drawn. When
drawing the header the rowIndex is -1.
column
- the column index of the cell being drawnOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |