public class DataTable extends Object
Constructor and Description |
---|
DataTable(String name,
String[] columnnames)
Create a new data table.
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(Object[] row)
Add a data row.
|
int |
getColumnIndex(String columnname)
Get the column index for a column name.
|
String[] |
getColumnNames()
Get the columnnames.
|
Object |
getData(int row,
int column)
Get the data element from a specific row and column.
|
String |
getName()
Get the name.
|
List |
getRows()
Get the data rows.
|
public void addRow(Object[] row)
row
- The data row.public List getRows()
public String[] getColumnNames()
public int getColumnIndex(String columnname)
columnname
- The column name.public Object getData(int row, int column)
public String getName()
Copyright © 2012. All Rights Reserved.