public class TableLayoutBuilder extends Object implements org.apache.commons.lang3.builder.Builder<TableLayout>, Cloneable
Constructor and Description |
---|
TableLayoutBuilder() |
Modifier and Type | Method and Description |
---|---|
TableLayoutBuilder |
addColumn(String name)
Add a column to the table layout.
|
TableLayout |
build() |
TableLayoutBuilder |
clone()
Clone this layout command.
|
static TableLayoutBuilder |
copy(TableLayout layout)
Construct a new builder that is a copy of an existing layout.
|
int |
getColumnCount()
Get the number of columns currently in the layout.
|
public static TableLayoutBuilder copy(TableLayout layout)
layout
- The layout to copy.public TableLayoutBuilder addColumn(String name)
name
- The column name.IllegalArgumentException
- if the column already exists.public int getColumnCount()
public TableLayoutBuilder clone()
public TableLayout build()
build
in interface org.apache.commons.lang3.builder.Builder<TableLayout>