com.vaadin.ui.
Class BaseFieldFactory
java.lang.Object
com.vaadin.ui.BaseFieldFactory
All Implemented Interfaces:
FieldFactory, FormFieldFactory, TableFieldFactory, Serializable
DefaultFieldFactory
or own implementations on
FormFieldFactory
or TableFieldFactory
instead.
- extends Object
- implements FieldFactory
@Deprecated
public class BaseFieldFactory
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:
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)
- Specified by:
createField
in interfaceFieldFactory
- 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)
Deprecated.
Creates the field based on type of data.
createField
public Field createField(Property property,
Component uiContext)
- Specified by:
createField
in interfaceFieldFactory
- 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)
Deprecated.
Creates the field based on the datasource property.
createField
public Field createField(Item item,
Object propertyId,
Component uiContext)
- Specified by:
createField
in interfaceFormFieldFactory
- 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 isForm
. 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)
Deprecated.
Creates the field based on the item and property id.
createField
public Field createField(Container container,
Object itemId,
Object propertyId,
Component uiContext)
- Specified by:
createField
in interfaceTableFieldFactory
- 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)
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
).