Modifier and Type | Class and Description |
---|---|
static class |
CellFieldImpl.ConstructWrapper
Implementation for DI interface.
|
Constructor and Description |
---|
CellFieldImpl() |
Modifier and Type | Method and Description |
---|---|
<T> Column<T> |
addColumn(Class<T> type,
String name)
Add a column.
|
<T> Column<T> |
addColumn(Class<T> type,
String name,
List<T> data)
Adds a column that uses the provided list to store the elements.
|
Column<Object> |
addColumn(String name)
Add an Object column.
|
Column<Double> |
addDoubleColumn(String name)
Add a Double column.
|
Column<Integer> |
addIntegerColumn(String name)
Add an integer column.
|
Row |
addRow()
Add new empty row.
|
RowBuilder |
addRowBuilder()
Row builder.
|
Column<String> |
addStringColumn(String name)
Add a String column.
|
<T> T |
get(Row row,
Column<T> col)
Get a cell.
|
List<Column<?>> |
getColumns()
Get all columns.
|
Row |
getRow(int rowIndex)
Get a row.
|
int |
getRowCount()
Rows.
|
int |
indexOf(Row row)
Look up row index.
|
Iterator<Row> |
iterator() |
<T> void |
set(Row row,
Column<T> col,
T data)
Set a cell.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int getRowCount()
CellField
getRowCount
in interface CellField
public <T> Column<T> addColumn(Class<T> type, String name)
CellField
public <T> Column<T> addColumn(Class<T> type, String name, List<T> data)
CellField
If the list is not empty the new instance is initialized with the given elements.
public RowBuilder addRowBuilder()
CellField
addRowBuilder
in interface CellField
public <T> void set(Row row, Column<T> col, T data)
CellField
public <T> T get(Row row, Column<T> col)
CellField
public List<Column<?>> getColumns()
CellField
getColumns
in interface CellField
public Column<String> addStringColumn(String name)
CellField
addStringColumn
in interface CellField
name
- Column namepublic Column<Integer> addIntegerColumn(String name)
CellField
addIntegerColumn
in interface CellField
name
- Column namepublic Column<Double> addDoubleColumn(String name)
CellField
addDoubleColumn
in interface CellField
name
- Column name