public abstract class FormBuilder extends Object
form.setFormBuilder(new FormBuilder(...) {...});. This
use case doesn't have to deal with concurrency issues, so no special care is
taken to make this class ThreadSafe.| Constructor and Description |
|---|
FormBuilder() |
| Modifier and Type | Method and Description |
|---|---|
FieldDefinition |
addField(String fieldName,
FieldType type)
Add a new field to the chain.
|
abstract void |
configure()
The central method to configure the chain of columns.
|
Map<String,FieldDefinition> |
getColumns() |
Map<String,FieldDefinition> |
getFields()
return the current chain of columns.
|
String |
toString() |
public abstract void configure()
public final FieldDefinition addField(String fieldName, FieldType type)
type - html typefieldName - the name of the new columnpublic final Map<String,FieldDefinition> getFields()
public Map<String,FieldDefinition> getColumns()
Copyright © 2011-2013. All Rights Reserved.