public static class TableListing.Builder
extends java.lang.Object
| Constructor | Description |
|---|---|
Builder() |
Create a new Builder.
|
| Modifier and Type | Method | Description |
|---|---|---|
TableListing.Builder |
addField(java.lang.String title) |
|
TableListing.Builder |
addField(java.lang.String title,
boolean wrap) |
|
TableListing.Builder |
addField(java.lang.String title,
TableListing.Justification justification) |
|
TableListing.Builder |
addField(java.lang.String title,
TableListing.Justification justification,
boolean wrap) |
Add a new field to the Table under construction.
|
TableListing |
build() |
Create a new TableListing.
|
TableListing.Builder |
hideHeaders() |
Whether to hide column headers in table output.
|
TableListing.Builder |
showHeaders() |
Whether to show column headers in table output.
|
TableListing.Builder |
wrapWidth(int width) |
Set the maximum width of a row in the TableListing.
|
public TableListing.Builder addField(java.lang.String title)
public TableListing.Builder addField(java.lang.String title, TableListing.Justification justification)
public TableListing.Builder addField(java.lang.String title, boolean wrap)
public TableListing.Builder addField(java.lang.String title, TableListing.Justification justification, boolean wrap)
title - Field title.justification - Right or left justification. Defaults to left.wrap - Width at which to auto-wrap the content of the cell.
Defaults to Integer.MAX_VALUE.public TableListing.Builder hideHeaders()
public TableListing.Builder showHeaders()
public TableListing.Builder wrapWidth(int width)
width - width.public TableListing build()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.