public static interface TableView.HeaderDataRenderer extends Renderer
Renderer
interface to customize the appearance of the header of a TableViewModifier and Type | Method and Description |
---|---|
void |
render(Object data,
int columnIndex,
TableViewHeader tableViewHeader,
String columnName,
boolean highlighted)
Prepares the renderer for layout or paint.
|
String |
toString(Object item)
Converts table view header data to a string representation.
|
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth, setSize
getBaseline, getHeight, getWidth, paint
void render(Object data, int columnIndex, TableViewHeader tableViewHeader, String columnName, boolean highlighted)
data
- The data to render, or null if called to calculate preferred
height for skins that assume a fixed renderer height.columnIndex
- The index of the column being rendered.tableViewHeader
- The host component.columnName
- The name of the column being rendered.highlighted
- If true, the item is highlighted.String toString(Object item)
item
- Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.