|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itmill.toolkit.ui.BaseFieldFactory
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()
|
Method Summary | |
---|---|
Field |
createField(Class type,
Component uiContext)
Creates the 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 the field based on the item and property id. |
Field |
createField(Property property,
Component uiContext)
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 FieldFactory
item
- the item where the property belongs to.propertyId
- the Id of the property.uiContext
- the component where the field is presented.
FieldFactory.createField(Item, Object,
Component)
public Field createField(Container container, Object itemId, Object propertyId, Component uiContext)
FieldFactory
createField
in interface FieldFactory
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.
FieldFactory.createField(com.itmill.toolkit.data.Container,
java.lang.Object, java.lang.Object, com.itmill.toolkit.ui.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |