public interface TableDefinition
Aa table definition contains a caption and data that describes each column. Every column in the table may have
TextStyle that describes the width of the entry, its offset from the previous column (leftPad) and how much each line after the first should be
indented (indent).| Modifier and Type | Method | Description |
|---|---|---|
String |
caption() |
Gets the caption for the table.
|
List<TextStyle> |
columnTextStyles() |
Gets the list TextStyles.
|
static TableDefinition |
from(String caption,
List<TextStyle> columnStyle,
List<String> headers,
Iterable<List<String>> rows) |
A helper function to create a table instance from the various components.
|
List<String> |
headers() |
Gets the list of header strings.
|
Iterable<List<String>> |
rows() |
Gets the collection of rows.
|
static TableDefinition from(String caption, List<TextStyle> columnStyle, List<String> headers, Iterable<List<String>> rows)
caption - The caption, may be null.columnStyle - a list of TextStyle elements defining the columns.headers - the list of column headers.rows - a collection of rows.String caption()
List<TextStyle> columnTextStyles()
List<String> headers()
Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository