public class TableCreator extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TableCreator.Col | 
| Modifier and Type | Field and Description | 
|---|---|
| protected TableCreator.Col[] | cols | 
| protected int | globalRowHeaderWidth | 
| protected int | rowWidth | 
| protected StringBuilder | sb | 
| Constructor and Description | 
|---|
| TableCreator(TableCreator.Col[] cols) | 
| Modifier and Type | Method and Description | 
|---|---|
| TableCreator | addRow(Object[] data) | 
| TableCreator | addRow(String rowHeader,
      Object rowData) | 
| TableCreator | addRow(TableCreator.Col[] cols) | 
| TableCreator | addSeparator() | 
| protected int | calculateRowWidth() | 
| String | toString() | 
| TableCreator | withGlobalRowHeaderWidth(int width) | 
protected TableCreator.Col[] cols
protected int rowWidth
protected StringBuilder sb
protected int globalRowHeaderWidth
public TableCreator(TableCreator.Col[] cols)
protected int calculateRowWidth()
public TableCreator addSeparator()
public TableCreator addRow(TableCreator.Col[] cols)
public TableCreator addRow(Object[] data)
public TableCreator addRow(String rowHeader, Object rowData)
public TableCreator withGlobalRowHeaderWidth(int width)
Copyright © 2020. All rights reserved.