com.vaadin.ui
Class BaseFieldFactory

java.lang.Object
  extended by com.vaadin.ui.BaseFieldFactory
All Implemented Interfaces:
FieldFactory, FormFieldFactory, TableFieldFactory, Serializable

Deprecated. use DefaultFieldFactory or own implementations on FormFieldFactory or TableFieldFactory instead.

@Deprecated
public class BaseFieldFactory
extends Object
implements FieldFactory

Default implementation of the the following Field types are used by default:

Boolean: Button(switchMode:true).
Date: DateField(resolution: day).
Item: Form.
default field type: TextField.

Since:
3.1
Version:
6.8.18
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
BaseFieldFactory()
          Deprecated.  
 
Method Summary
 Field createField(Class<?> type, Component uiContext)
          Deprecated. Creates the field based on type of data.
 Field createField(Container container, Object itemId, Object propertyId, Component uiContext)
          Deprecated. Creates a field based on the Container, item id, property id and the component responsible for displaying the field (most commonly Table).
 Field createField(Item item, Object propertyId, Component uiContext)
          Deprecated. Creates the field based on the item and property id.
 Field createField(Property property, Component uiContext)
          Deprecated. Creates the field based on the datasource property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFieldFactory

public BaseFieldFactory()
Deprecated. 
Method Detail

createField

public Field createField(Class<?> type,
                         Component uiContext)
Deprecated. 
Creates the field based on type of data.

Specified by:
createField in interface FieldFactory
Parameters:
type - the type of data presented in field.
uiContext - the context where the Field is presented.
Returns:
Field the field suitable for editing the specified data.
See Also:
FieldFactory.createField(Class, Component)

createField

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

Specified by:
createField in interface FieldFactory
Parameters:
property - the property datasource.
uiContext - the component where the field is presented.
Returns:
Field the field suitable for editing the specified data.
See Also:
FieldFactory.createField(Property, Component)

createField

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

Specified by:
createField in interface FormFieldFactory
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.
See Also:
FormFieldFactory.createField(Item, Object, Component)

createField

public Field createField(Container container,
                         Object itemId,
                         Object propertyId,
                         Component uiContext)
Deprecated. 
Description copied from interface: TableFieldFactory
Creates a field based on the Container, item id, property id and the component responsible for displaying the field (most commonly Table).

Specified by:
createField in interface TableFieldFactory
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.
See Also:
TableFieldFactory.createField(com.vaadin.data.Container, java.lang.Object, java.lang.Object, com.vaadin.ui.Component)


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.