com.itmill.toolkit.ui
Interface FieldFactory

All Known Implementing Classes:
BaseFieldFactory

public interface FieldFactory

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

Since:
3.1
Version:
5.3.0
Author:
IT Mill Ltd.

Method Summary
 Field createField(Class type, Component uiContext)
          Creates a field based on type of data.
 Field createField(Container container, Object itemId, Object propertyId, Component uiContext)
          Creates a field based on the container item id and property id.
 Field createField(Item item, Object propertyId, Component uiContext)
          Creates a field based on the item and property id.
 Field createField(Property property, Component uiContext)
          Creates a field based on the property datasource.
 

Method Detail

createField

Field createField(Class type,
                  Component uiContext)
Creates a field based on type of data.

Parameters:
type - the type of data presented in field.
uiContext - the component where the field is presented.
Returns:
Field the field suitable for editing the specified data.

createField

Field createField(Property property,
                  Component uiContext)
Creates a field based on the property datasource.

Parameters:
property - the property datasource.
uiContext - the component where the field is presented.
Returns:
Field the field suitable for editing the specified data.

createField

Field createField(Item item,
                  Object propertyId,
                  Component uiContext)
Creates a field based on the item and property id.

Parameters:
item - the item where the property belongs to.
propertyId - the Id of the property.
uiContext - the component where the field is presented.
Returns:
Field the field suitable for editing the specified data.

createField

Field createField(Container container,
                  Object itemId,
                  Object propertyId,
                  Component uiContext)
Creates a field based on the container item id and property id.

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:
Field the field suitable for editing the specified data.


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.