<th> cells, providing the column headers.
The attribute scope="col" is automatically added to each header cell.
In addition, a series of style class names can be specified, to be applied one per cell.
| Modifier and Type | Field and Description |
|---|---|
| private final List | cellContents
The content to be put in each of the |
| private boolean[] | |
| private List | styles
The style class names for each of the |
| Access | Constructor and Description |
|---|---|
| public | TableHeader(Contents
a factory to get the content for each header cell. contents, String... the resource keys for the content in each cell. colHeaderKeys)Creates a header row, with localized content for each cell. |
| public | TableHeader(Content...
a content object for each header cell headerCellContents)Creates a header row, with specified content for each cell. |
| public | TableHeader(List<Content>
a content object for each header cell headerCellContents)Creates a header row, with specified content for each cell. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: falseImplements abstract jdk. Returns true if the content is empty. |
| public TableHeader | Returns: this objectboolean array specifying sortable columns sortable)Makes the table sortable by the content of columns for which the
argument boolean array contains |
| public TableHeader | |
| public TableHeader | |
| private Content | |
| public boolean | write(Writer out, String newline, boolean atNewline)
Implements abstract jdk. Writes content to a writer, using a given newline sequence, which should be
either |
| cellContents | back to summary |
|---|---|
| private final List<Content> cellContents The content to be put in each of the | |
| sortable | back to summary |
|---|---|
| private boolean[] sortable | |
| styles | back to summary |
|---|---|
| private List<HtmlStyle> styles The style class names for each of the | |
| TableHeader | back to summary |
|---|---|
| public TableHeader(Contents contents, String... colHeaderKeys) Creates a header row, with localized content for each cell.
Resources keys will be converted to content using | |
| TableHeader | back to summary |
|---|---|
| public TableHeader(Content... headerCellContents) Creates a header row, with specified content for each cell.
| |
| TableHeader | back to summary |
|---|---|
| public TableHeader(List<Content> headerCellContents) Creates a header row, with specified content for each cell. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract jdk. Doc from jdk. Returns true if the content is empty. Implementation Specification This implementation always returns
| |
| sortable | back to summary |
|---|---|
| public TableHeader sortable(boolean... sortable) Makes the table sortable by the content of columns for which the
argument boolean array contains
| |
| styles | back to summary |
|---|---|
| public TableHeader styles(HtmlStyle... styles) Set the style class names for each header cell. The number of names must match the number of cells given to the constructor.
| |
| styles | back to summary |
|---|---|
| public TableHeader styles(List<HtmlStyle> styles) Set the style class names for each header cell. The number of names must match the number of cells given to the constructor.
| |
| toContent | back to summary |
|---|---|
| private Content toContent() Converts this header to a
| |
| write | back to summary |
|---|---|
| public boolean write(Writer out, String newline, boolean atNewline) throws IOException Implements abstract jdk. Doc from jdk. Writes content to a writer, using a given newline sequence, which should be
either
| |