public class CheckBoxFieldFactory extends AbstractFieldFactory<CheckboxFieldDefinition,Boolean>
definition, field, item
Constructor and Description |
---|
CheckBoxFieldFactory(CheckboxFieldDefinition definition,
com.vaadin.data.Item relatedFieldItem) |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.ui.Field<Boolean> |
createFieldComponent()
Implemented by subclasses to create and initialize the Vaadin Field instance to use.
|
protected Class<?> |
getDefaultFieldType()
Exposed method used by field's factory in order to define a default Field Type (decoupled from the definition).
|
void |
setPropertyDataSourceAndDefaultValue(com.vaadin.data.Property<?> property)
Set the DataSource of the current field.
Set the default value if : - the item is an instance of ItemAdapter and this is a new Item (Not yet stored in the related datasource).- the item is not an instance of ItemAdapter .In this case, the Item is a custom implementation of Item and we have no possibility to define if it is or not a new Item. |
createDefaultValue, createField, getComponentProvider, getDefinitionType, getFieldDefinition, getFieldType, getI18nBasename, getLocale, getView, initializeConverter, initializeTransformer, setComponentProvider, setFieldValidatorFactoryFactory, setI18nContentSupport, setLocale, setPropertyDataSourceDefaultValue
getMessage, getMessages, getParent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, getParent, setParent
public CheckBoxFieldFactory(CheckboxFieldDefinition definition, com.vaadin.data.Item relatedFieldItem)
protected com.vaadin.ui.Field<Boolean> createFieldComponent()
AbstractFieldFactory
createFieldComponent
in class AbstractFieldFactory<CheckboxFieldDefinition,Boolean>
protected Class<?> getDefaultFieldType()
AbstractFieldFactory
getDefaultFieldType
in class AbstractFieldFactory<CheckboxFieldDefinition,Boolean>
public void setPropertyDataSourceAndDefaultValue(com.vaadin.data.Property<?> property)
AbstractFieldFactory
ItemAdapter
and this is a new Item (Not yet stored in the related datasource).ItemAdapter
.Item
and we have no possibility to define if it is or not a new Item.setPropertyDataSourceAndDefaultValue
in class AbstractFieldFactory<CheckboxFieldDefinition,Boolean>
Copyright © 2015 Magnolia International Ltd.. All rights reserved.