public class TableLayout extends Object
A layout for a table to be written. Specifies the columns in the table. Column names must be unique.
Modifier and Type | Method and Description |
---|---|
int |
columnIndex(String col)
Get the index of a particular column.
|
int |
getColumnCount()
Get the number of columns in this layout.
|
List<String> |
getColumns()
Get the headers of the columns.
|
RowBuilder |
newRowBuilder()
Create a new row builder for this layout.
|
public List<String> getColumns()
Get the headers of the columns.
public int columnIndex(String col)
Get the index of a particular column.
col
- The column.IllegalArgumentException
- if the column is not in the layout.public int getColumnCount()
Get the number of columns in this layout.
public RowBuilder newRowBuilder()
Create a new row builder for this layout.