public class ColumnarData
extends java.lang.Object
| Constructor and Description |
|---|
ColumnarData(java.lang.String... headers)
Creates a new grid with the given column headers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(java.lang.Object... rowData)
Adds a row to the grid.
|
void |
clear()
Removes all data from the grid, but preserves the headers.
|
java.lang.String |
format()
Gives a string that represents the data formatted in columns.
|
public ColumnarData(java.lang.String... headers)
headers - column headerspublic void addRow(java.lang.Object... rowData)
rowData - row data to addpublic java.lang.String format()
public final void clear()