Package org.appng.cli.prettytable
Class PrettyTable
- java.lang.Object
-
- org.appng.cli.prettytable.PrettyTable
-
public class PrettyTable extends Object
Provides the ability to print some pretty formatted tables to the console.- Author:
- Matthias Herlitzius
-
-
Constructor Summary
Constructors Constructor Description PrettyTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(String name)
void
addColumn(String name, boolean isVerbose)
void
addRow(Object... values)
int
getColumnIndex(String id)
List<TableRow>
getRows()
String
render(boolean tabbedValues, boolean beVerbose)
-
-
-
Method Detail
-
addColumn
public void addColumn(String name)
-
addColumn
public void addColumn(String name, boolean isVerbose)
-
addRow
public void addRow(Object... values) throws BusinessException
- Throws:
BusinessException
-
render
public String render(boolean tabbedValues, boolean beVerbose)
-
getColumnIndex
public int getColumnIndex(String id)
-
-