Tables support multiple pre-defined styles (e.g., ASCII, Box-Draw) and dynamic content manipulation. This component does not support multi-line cell content; strings containing newlines may result in malformed output.
Markup Handling: Content added to cells is automatically
processed via the configured MarkupParser.
Thread Safety: Implementations of this interface are not thread-safe. External synchronization is required if multiple threads access or modify the table structure concurrently.
| Modifier and Type | Method and Description |
|---|---|
| public Table | Returns: this table instance for method chainingthe 0-based row index rowIndex, int the 0-based column index columnIndex)Removes the content of a specific cell and replaces it with the
configured |
| public Table | Returns: this table instance for method chainingthe 0-based index of the row to remove rowIndex)Removes the row at the specified index. |
| public Table | |
| public Table | Returns: this table instance for method chainingthe cell contents for the new row row)
Deprecated
since 4.0.3. in favor of the
SequencedCollection overload
Appends a new row to the end of the table. |
| public Table | Returns: this table instance for method chaininga collection of strings representing the cells of the row;
must not be row)nullAppends a new row to the end of the table using the provided sequenced collection. |
| public Table | Returns: this table instance for method chainingthe 0-based row index rowIndex, int the 0-based column index columnIndex, String the new content for the cell; must not be text)nullUpdates the content of a specific cell. |
| removeCell | back to summary |
|---|---|
| public Table removeCell(int rowIndex, int columnIndex) Removes the content of a specific cell and replaces it with the
configured
| |
| removeRow | back to summary |
|---|---|
| public Table removeRow(int rowIndex) Removes the row at the specified index. Scoping: Indices are 0-based. The header row (index 0) cannot be removed via this method.
| |
| row | back to summary |
|---|---|
| public Table row(String... row) Appends a new row to the end of the table.
| |
| row | back to summary |
|---|---|
| public Table row(Collection<String> row)
Appends a new row to the end of the table.
| |
| row | back to summary |
|---|---|
| public Table row(SequencedCollection<String> row) Appends a new row to the end of the table using the provided sequenced collection.
| |
| updateCell | back to summary |
|---|---|
| public Table updateCell(int rowIndex, int columnIndex, String text) Updates the content of a specific cell. The provided
| |