public static class TextTable.Column
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TextTable.Alignment |
alignment |
private java.lang.String |
header |
private int |
width |
Constructor and Description |
---|
Column(java.lang.String header) |
Column(java.lang.String header,
TextTable.Alignment alignment) |
Modifier and Type | Method and Description |
---|---|
void |
fit(java.lang.String value) |
java.lang.String |
format(java.lang.String value,
java.lang.String padding) |
java.lang.String |
formatHeader(java.lang.String padding) |
java.lang.String |
getSeparator(char character) |
int |
getWidth() |
void |
resetWidth() |
private java.lang.String header
private int width
private TextTable.Alignment alignment
public Column(java.lang.String header)
public Column(java.lang.String header, TextTable.Alignment alignment)
public java.lang.String formatHeader(java.lang.String padding)
public java.lang.String format(java.lang.String value, java.lang.String padding)
public java.lang.String getSeparator(char character)
public void fit(java.lang.String value)
public void resetWidth()
public int getWidth()