public class FormBuilder extends AbstractFormBuilder
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static int |
DEFAULT_N_COLUMNS |
protected List<String> |
fieldSetNames |
protected List<ArrayList<PropertyAccessor>> |
groupedPropertyAccessors |
protected int |
nColumns |
classAccessor, logger, manager, mode, prefix, selectionProviders
Constructor and Description |
---|
FormBuilder(Class aClass) |
FormBuilder(ClassAccessor classAccessor) |
Modifier and Type | Method and Description |
---|---|
Form |
build() |
protected void |
buildField(FieldSet fieldSet,
PropertyAccessor propertyAccessor,
Map<String,Field> fieldMap) |
protected Field |
buildField(PropertyAccessor propertyAccessor) |
protected void |
buildFieldGroup(Form form,
int i,
Map<String,Field> fieldMap) |
FormBuilder |
configFields(String... fieldNames) |
FormBuilder |
configFields(String[]... groupedFieldNames) |
FormBuilder |
configFieldSetNames(String... fieldSetNames) |
FormBuilder |
configMode(Mode mode) |
FormBuilder |
configNColumns(int nColumns) |
FormBuilder |
configPrefix(String prefix) |
FormBuilder |
configReflectiveFields() |
FormBuilder |
configSelectionProvider(SelectionProvider selectionProvider,
String... fieldNames) |
String |
getText(String key,
Object... args) |
buildField, buildSelectField, isPropertyEnabled, removeUnusedSelectionProviders
public static final String copyright
public static final int DEFAULT_N_COLUMNS
protected List<ArrayList<PropertyAccessor>> groupedPropertyAccessors
protected int nColumns
public FormBuilder(Class aClass)
public FormBuilder(ClassAccessor classAccessor)
public FormBuilder configFields(String... fieldNames)
public FormBuilder configFields(String[]... groupedFieldNames)
public FormBuilder configPrefix(String prefix)
public FormBuilder configNColumns(int nColumns)
public FormBuilder configFieldSetNames(String... fieldSetNames)
public FormBuilder configSelectionProvider(SelectionProvider selectionProvider, String... fieldNames)
public FormBuilder configMode(Mode mode)
public FormBuilder configReflectiveFields()
public Form build()
protected void buildField(FieldSet fieldSet, PropertyAccessor propertyAccessor, Map<String,Field> fieldMap)
protected Field buildField(PropertyAccessor propertyAccessor)