Package muntjac :: Package ui :: Module form_field_factory :: Class IFormFieldFactory
[hide private]
[frames] | no frames]

Class IFormFieldFactory

source code

object --+
         |
        IFormFieldFactory
Known Subclasses:

Factory interface for creating new Field-instances based on Item, property id and uiContext (the component responsible for displaying fields). Currently this interface is used by Form, but might later be used by some other components for Field generation.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

See Also: TableFieldFactory

Instance Methods [hide private]
 
createField(self, item, propertyId, uiContext)
Creates a field based on the item, property id and the component (most commonly Form) where the Field will be presented.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

createField(self, item, propertyId, uiContext)

source code 

Creates a field based on the item, property id and the component (most commonly Form) where the Field will be presented.

Parameters:
  • item - the item where the property belongs to.
  • propertyId - the Id of the property.
  • uiContext - the component where the field is presented, most commonly this is Form. uiContext will not necessary be the parent component of the field, but the one that is responsible for creating it.
Returns:
Field the field suitable for editing the specified data.