Interface FieldFactory

Factory for creating new Field-instances based on type, datasource and/or context.

Synopsis

Since

3.1

Inheritance Path.  com.itmill.toolkit.ui.FieldFactory

createField(Class, Component)

Parameters

type

The type of data presented in field

uiContext

The component where the field is presented.

return

Field The field suitable for editing the specified data.

Creates field based on type of data.

createField(Container, Object, Object, Component)

Parameters

container

Container where the property belongs to.

itemId

The item Id.

propertyId

Id of the property.

uiContext

The component where the field is presented.

return

Field The field suitable for editing the specified data.

Creates field based on the container item id and property id.

createField(Item, Object, Component)

Parameters

item

The item where the property belongs to.

propertyId

Id of the property.

uiContext

The component where the field is presented.

return

Field The field suitable for editing the specified data.

Creates field based on the item and property id.

createField(Property, Component)

Parameters

property

The property datasource.

uiContext

The component where the field is presented.

return

Field The field suitable for editing the specified data.

Creates field based on the property datasource.