com.dlsc.flexgantt.swing.treetable
Interface IColumnHeaderRenderer
- All Known Implementing Classes:
- DefaultColumnHeaderRenderer
public interface IColumnHeaderRenderer
A renderer used to visualize the individual headers of columns. Each column
can have its own renderer depending on the type of the header value (see
TreeTableColumn.getHeaderValue()
). Header renderers need to make
sure that they visualize the sorting direction if sorting is applied on a
column.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
TreeTableHeader.setColumnHeaderRenderer(Class, IColumnHeaderRenderer)
getColumnHeaderRendererComponent
java.awt.Component getColumnHeaderRendererComponent(TreeTableHeader header,
TreeTableColumn column,
boolean selected,
boolean hasFocus,
SortDirection sortDirection,
int sortPosition)
- Returns a component that gets used to render the header of a column in
the tree table header component.
- Parameters:
header
- the tree table header component in which the header will be
renderedcolumn
- the column for which to draw a headerselected
- a flag indicating whether the column is currently selectedhasFocus
- a flag indicating whether the column currently has the focussortDirection
- indicates whether the column is sorted and in which directionsortPosition
- the sort position (important when doing a multi-column sort)
- Returns:
- a component that will renderer the header of the given column
- Since:
- 1.0
TODO implement the focus and selection support inside the table header