Package com.nsdev.lettergenerator
Class Table
java.lang.Object
com.nsdev.lettergenerator.Table
Convenience entry point for text tables embedded with
LetterBuilder.table(com.nsdev.lettergenerator.model.block.TableBlock).
The builder fixes the column count from the headers and appends rows before producing an
immutable table block.-
Method Summary
Modifier and TypeMethodDescriptionstatic TableBuilderStarts a table with equally weighted columns and a bold white-on-dark header row.
-
Method Details
-
builder
Starts a table with equally weighted columns and a bold white-on-dark header row. At least one data row must be added before building.- Parameters:
headers- non-null header array containing at least one non-null string- Returns:
- a new mutable table builder
- Throws:
IllegalArgumentException- if the array is null or empty, or a header is null
-