public abstract class CellRenderOverride extends Object
| Constructor and Description |
|---|
CellRenderOverride() |
| Modifier and Type | Method and Description |
|---|---|
G9Table |
getTable()
Gets the g9 table this overrider is registered on.
|
abstract Component |
getTableCellRendererComponent(Component renderer,
ListblockLine line,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Override the renderer component.
|
public final G9Table getTable()
public abstract Component getTableCellRendererComponent(Component renderer, ListblockLine line, Object value, boolean isSelected, boolean hasFocus, int row, int column)
A typical implementation of this method is:
if (value.equals("some other value") {
renderer.setForeground(Color.MAGENTA);
}
return renderer;
renderer - the default renderer component for the cell.line - the ListblockLine that holds the data for the row.value - the value about to be displayed in the cellisSelected - true if the cell is selctedhasFocus - true if the cell has focusrow - the row indexcolumn - the column indexCopyright © 2006–2018 Esito AS. All rights reserved.