Groovy Documentation

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

 
Constructor Summary
FieldDefDrivenFieldFactory(List fieldDefs)

Constructs a new FieldFactory using the specified fieldDefs

 
Method Summary
Field createField(Item item, Object propertyId, Component uiContext)

Creates a field by using the fieldDef for the specified propertyId (i.e. field name).

 
Methods inherited from class DefaultFieldFactory
get, createFieldByPropertyType, createField, createField, createCaptionByPropertyId, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

fieldDefs

protected Map fieldDefs
Creators for each named field


 
Constructor Detail

FieldDefDrivenFieldFactory

FieldDefDrivenFieldFactory(List fieldDefs)
Constructs a new FieldFactory using the specified fieldDefs
Parameters:
fieldDefs - The list of fieldDefs to use to create the fields


 
Method Detail

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