public interface TextTableBuilder
Modifier and Type | Method and Description |
---|---|
TextTableBuilder |
addCell(Collection<String> content)
Add multi line cell.
|
TextTableBuilder |
addCell(int colspan,
Collection<String> content) |
TextTableBuilder |
addCell(int colspan,
String content) |
TextTableBuilder |
addCell(String content)
Add single line cell.
|
TextTableBuilder |
appendToLastCell(Collection<String> content)
Append multiple lines to the last cells content.
|
TextTableBuilder |
appentToLastCell(String content)
Append a line to the last cells content.
|
TextTableBuilder |
indentTable(String s)
Indent whole table.
|
TextTableBuilder |
newRow()
Start building new row.
|
TextTableBuilder |
rowSeparation(int lines)
Number of empty lines between rows.
|
TextTableBuilder |
rowUnderlineChar(char c)
Specify character for underlining the current row.
|
String |
toString() |
List<String> |
toStrings()
Create multi line representation.
|
void |
toStrings(List<String> target)
Create multi line representation.
|
TextTableBuilder addCell(String content)
content
- Cell contentthis
builderTextTableBuilder addCell(int colspan, String content)
TextTableBuilder addCell(Collection<String> content)
content
- Cell contentthis
builderTextTableBuilder addCell(int colspan, Collection<String> content)
TextTableBuilder appentToLastCell(String content)
content
- New line to appendthis
builderTextTableBuilder appendToLastCell(Collection<String> content)
content
- New lines to appendthis
builderTextTableBuilder newRow()
this
builderTextTableBuilder rowUnderlineChar(char c)
c
- Character to usethis
builderList<String> toStrings()
void toStrings(List<String> target)
target
- Target to write.TextTableBuilder indentTable(String s)
s
- Indentationthis
builderTextTableBuilder rowSeparation(int lines)
lines
- Row separationthis
builder