public class RowBuilder extends Object
Build a row. This builds a row from named columns; to use column indexes, just build a list.
Constructor and Description |
---|
RowBuilder(TableLayout tl) |
Modifier and Type | Method and Description |
---|---|
RowBuilder |
add(String name,
Object value)
Add a single column by name.
|
RowBuilder |
addAll(Map<String,?> columns)
Add several columns from a map.
|
Row |
build()
Build a row as a row object.
|
List<Object> |
buildList()
Build the row as a list.
|
RowBuilder |
clear()
Clear the row builder.
|
public RowBuilder(TableLayout tl)
public RowBuilder add(String name, Object value)
Add a single column by name.
name
- The column name.value
- The column value.public RowBuilder addAll(Map<String,?> columns)
Add several columns from a map.
columns
- The columns.public RowBuilder clear()
Clear the row builder.
public Row build()
Build a row as a row object.