Top Fields Constructors Methods
io.github.kusoroadeolu.clique.components

public Class TableHeaderBuilder

extends Object
implements PendingTable
Class Inheritance
All Implemented Interfaces
io.github.kusoroadeolu.clique.components.PendingTable
Annotations
@InternalApi
since:3.2.0
Imports
io.github.kusoroadeolu.clique.internal.WidthAwareList, io.github.kusoroadeolu.clique.internal.documentation.InternalApi, java.util.*

Field Summary

Modifier and TypeField and Description
private final AbstractTable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Table
fromColumns(SequencedMap<String, ? extends SequencedCollection<String>> columns)

Implements io.github.kusoroadeolu.clique.components.PendingTable.fromColumns.

Initializes the table from a column-oriented data source, where each entry maps a header to the values in that column, top to bottom.

public Table
fromRows(SequencedCollection<? extends SequencedCollection<String>> rows)

Implements io.github.kusoroadeolu.clique.components.PendingTable.fromRows.

Initializes the table from a row-oriented data source.

public Table
headers(String... headers)

Implements io.github.kusoroadeolu.clique.components.PendingTable.headers.

Sets the table headers.

public Table
public Table
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tableback to summary
private final AbstractTable table

Constructor Detail

TableHeaderBuilderback to summary
public TableHeaderBuilder(Table table)

Method Detail

fromColumnsback to summary
public Table fromColumns(SequencedMap<String, ? extends SequencedCollection<String>> columns)

Implements io.github.kusoroadeolu.clique.components.PendingTable.fromColumns.

Doc from io.github.kusoroadeolu.clique.components.PendingTable.fromColumns.

Initializes the table from a column-oriented data source, where each entry maps a header to the values in that column, top to bottom.

Columns of differing lengths are padded to the longest column.

Annotations
@Override
fromRowsback to summary
public Table fromRows(SequencedCollection<? extends SequencedCollection<String>> rows)

Implements io.github.kusoroadeolu.clique.components.PendingTable.fromRows.

Doc from io.github.kusoroadeolu.clique.components.PendingTable.fromRows.

Initializes the table from a row-oriented data source. The first row is used as the table headers; all subsequent rows are added as data rows.

Annotations
@Override
headersback to summary
public Table headers(String... headers)

Implements io.github.kusoroadeolu.clique.components.PendingTable.headers.

Doc from io.github.kusoroadeolu.clique.components.PendingTable.headers.

Sets the table headers.

headersback to summary
public Table headers(Collection<String> headers)

Implements io.github.kusoroadeolu.clique.components.PendingTable.headers.

Doc from io.github.kusoroadeolu.clique.components.PendingTable.headers.

Sets the table headers.

headersback to summary
public Table headers(SequencedCollection<String> headers)

Implements io.github.kusoroadeolu.clique.components.PendingTable.headers.

Doc from io.github.kusoroadeolu.clique.components.PendingTable.headers.

Sets the table headers.

Annotations
@Override