public class DefaultTableCellRenderer extends Object implements TableCellRenderer
A default TableCellRenderer
implementation that renders cell as a Label
.
Constructor and Description |
---|
DefaultTableCellRenderer() |
Modifier and Type | Method and Description |
---|---|
TableLayout.Constraint |
createCellConstraint(Table table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
Component |
getTableCellRendererComponent(Table table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Create a component to display the content of a particular cell of the table.
|
public Component getTableCellRendererComponent(Table table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
TableCellRenderer
Create a component to display the content of a particular cell of the table.
getTableCellRendererComponent
in interface TableCellRenderer
table
- The table.value
- The cell value to display.isSelected
- Whether the cell is currently selected.hasFocus
- Whether the cell currently has focus.row
- The row number (0-based).column
- The column number (0-based)public TableLayout.Constraint createCellConstraint(Table table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
createCellConstraint
in interface TableCellRenderer
Copyright © 2022. All Rights Reserved.