org.grails.plugin.vaadin.gsp
[Groovy] Class FieldDefDrivenFieldFactory
java.lang.Object
com.vaadin.ui.DefaultFieldFactory
org.grails.plugin.vaadin.gsp.FieldDefDrivenFieldFactory
class FieldDefDrivenFieldFactory
extends DefaultFieldFactory
A Vaadin DefaultFieldFactory
that uses specified defs to create and configure the fields.
- Authors:
- Francis McKenzie
Field Summary |
protected Map |
fieldDefs
Creators for each named field
|
Methods inherited from class DefaultFieldFactory
|
get, createFieldByPropertyType, createField, createField, createCaptionByPropertyId, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
fieldDefs
protected Map fieldDefs
- Creators for each named field
FieldDefDrivenFieldFactory
FieldDefDrivenFieldFactory(List fieldDefs)
- Constructs a new FieldFactory using the specified fieldDefs
- Parameters:
fieldDefs
- The list of fieldDefs to use to create the fields
createField
@Override
Field createField(Item item, Object propertyId, Component uiContext)
- Creates a field by using the fieldDef for the specified propertyId
(i.e. field name). If the fieldDef returns null, then instead uses
the superclass createField() method to create a default field based
on property type.
Once created, uses the same fieldDef to configure the field.
Groovy Documentation