Package org.apache.pivot.wtk
Interface TableView.HeaderDataRenderer
-
- All Superinterfaces:
ConstrainedVisual
,Renderer
,Visual
- All Known Implementing Classes:
TableViewHeaderDataRenderer
- Enclosing class:
- TableView
public static interface TableView.HeaderDataRenderer extends Renderer
Renderer
interface to customize the appearance of the header of a TableView.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
render(java.lang.Object data, int columnIndex, TableViewHeader tableViewHeader, java.lang.String columnName, boolean highlighted)
Prepares the renderer for layout or paint.java.lang.String
toString(java.lang.Object item)
Converts table view header data to a string representation.-
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth, setSize, setSize
-
-
-
-
Method Detail
-
render
void render(java.lang.Object data, int columnIndex, TableViewHeader tableViewHeader, java.lang.String columnName, boolean highlighted)
Prepares the renderer for layout or paint.- Parameters:
data
- The data to render, ornull
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
- Iftrue
, the item is highlighted.
-
toString
java.lang.String toString(java.lang.Object item)
Converts table view header data to a string representation.- Parameters:
item
- The header data item.- Returns:
- The data's string representation, or
null
if the data does not have a string representation.Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.
-
-