public class V2_AsciiTable extends Object
| Constructor and Description |
|---|
V2_AsciiTable()
Creates a new table.
|
V2_AsciiTable(int padding)
Creates a new table with default padding to be used for columns in content rows.
|
| Modifier and Type | Method and Description |
|---|---|
ContentRow |
addRow(Object... columns)
Adds a content row to the table.
|
void |
addRule()
Adds a rule row to the table.
|
void |
addStrongRule()
Adds a rule with strong (emphasized) style row to the table.
|
int |
getColumnCount()
Returns the number of columns set for the table.
|
int |
getDefaultPadding()
Returns the table's default padding.
|
List<V2_Row> |
getTable()
Returns the table.
|
String |
toString()
Returns a string with debug information.
|
public V2_AsciiTable()
public V2_AsciiTable(int padding)
padding - default paddingpublic int getDefaultPadding()
public final void addRule()
public final void addStrongRule()
public final ContentRow addRow(Object... columns) throws TableException
getColumnCount().columns - content of the columns for the rowTableException - if parameter is null or does not have the correct size (more or less entries than columns defined for the table)public final int getColumnCount()
Copyright © 2010–2015. All rights reserved.