|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.ui.BaseFieldFactory
DefaultFieldFactory
or own implementations on
FormFieldFactory
or TableFieldFactory
instead.
@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.
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 |
---|
public BaseFieldFactory()
Method Detail |
---|
public Field createField(Class<?> type, Component uiContext)
createField
in interface FieldFactory
type
- the type of data presented in field.uiContext
- the context where the Field is presented.
FieldFactory.createField(Class, Component)
public Field createField(Property property, Component uiContext)
createField
in interface FieldFactory
property
- the property datasource.uiContext
- the component where the field is presented.
FieldFactory.createField(Property, Component)
public Field createField(Item item, Object propertyId, Component uiContext)
createField
in interface FormFieldFactory
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.
FormFieldFactory.createField(Item, Object, Component)
public Field createField(Container container, Object itemId, Object propertyId, Component uiContext)
TableFieldFactory
Table
).
createField
in interface TableFieldFactory
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.
TableFieldFactory.createField(com.vaadin.data.Container,
java.lang.Object, java.lang.Object, com.vaadin.ui.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |