public class RowBuilder
extends java.lang.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(java.lang.String name,
java.lang.Object value)
Add a single column by name.
|
RowBuilder |
addAll(java.util.Map<java.lang.String,?> columns)
Add several columns from a map.
|
Row |
build()
Build a row as a row object.
|
java.util.List<java.lang.Object> |
buildList()
Build the row as a list.
|
RowBuilder |
clear()
Clear the row builder.
|
public RowBuilder(TableLayout tl)
public RowBuilder add(java.lang.String name, java.lang.Object value)
Add a single column by name.
name
- The column name.value
- The column value.public RowBuilder addAll(java.util.Map<java.lang.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.
public java.util.List<java.lang.Object> buildList()
Build the row as a list.