Package muntjac :: Package ui :: Module table_field_factory :: Class ITableFieldFactory
[hide private]
[frames] | no frames]

Class ITableFieldFactory

source code

object --+
         |
        ITableFieldFactory
Known Subclasses:

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


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

See Also: FormFieldFactory

Instance Methods [hide private]
 
createField(self, container, itemId, propertyId, uiContext)
Creates a field based on the Container, item id, property id and the component responsible for displaying the field (most commonly Table).
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, container, itemId, propertyId, uiContext)

source code 

Creates a field based on the Container, item id, property id and the component responsible for displaying the field (most commonly Table).

Parameters:
  • container - the Container where the property belongs to.
  • itemId - the item Id.
  • propertyId - the Id of the property.
  • uiContext - the component where the field is presented.
Returns:
A field suitable for editing the specified data or null if the property should not be editable.