public class DelegatingCompositeFieldTransformer extends BasicTransformer<com.vaadin.v7.data.util.PropertysetItem>
Transformer
is dedicated to the CompositeField
and SwitchableField
;
it simply delegates property handling to the configured sub-fields.
Therefore, sub-fields use their own transformers to store the field value; e.g. with BasicTransformer
properties are named after their respective FieldDefinition.getName()
.
Modifier and Type | Field and Description |
---|---|
protected List<String> |
fieldsName |
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
DelegatingCompositeFieldTransformer(com.vaadin.v7.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.v7.data.util.PropertysetItem> type,
List<String> fieldsName)
Deprecated.
since 5.4.2 - use
DelegatingCompositeFieldTransformer(Item, ConfiguredFieldDefinition, Class, List, I18NAuthoringSupport) instead. |
DelegatingCompositeFieldTransformer(com.vaadin.v7.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.v7.data.util.PropertysetItem> type,
List<String> fieldsName,
I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.v7.data.util.PropertysetItem |
readFromItem()
Returns a representation of the child items as a
PropertysetItem ;
this is merely a map whose keys are the configured names of the sub-fields, and whose values are the child items, wrapped as ObjectProperties . |
void |
writeToItem(com.vaadin.v7.data.util.PropertysetItem newValue)
This transformer's write implementation is empty.
|
definePropertyName, deriveLocaleAwareName, getBasePropertyName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setI18NPropertyName, setLocale, setReadOnly, setType
@Deprecated public DelegatingCompositeFieldTransformer(com.vaadin.v7.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.v7.data.util.PropertysetItem> type, List<String> fieldsName)
DelegatingCompositeFieldTransformer(Item, ConfiguredFieldDefinition, Class, List, I18NAuthoringSupport)
instead.@Inject public DelegatingCompositeFieldTransformer(com.vaadin.v7.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.v7.data.util.PropertysetItem> type, List<String> fieldsName, I18NAuthoringSupport i18NAuthoringSupport)
public void writeToItem(com.vaadin.v7.data.util.PropertysetItem newValue)
writeToItem
in interface Transformer<com.vaadin.v7.data.util.PropertysetItem>
writeToItem
in class BasicTransformer<com.vaadin.v7.data.util.PropertysetItem>
public com.vaadin.v7.data.util.PropertysetItem readFromItem()
PropertysetItem
;
this is merely a map whose keys are the configured names of the sub-fields, and whose values are the child items, wrapped as ObjectProperties
.readFromItem
in interface Transformer<com.vaadin.v7.data.util.PropertysetItem>
readFromItem
in class BasicTransformer<com.vaadin.v7.data.util.PropertysetItem>
Copyright © 2019 Magnolia International Ltd.. All rights reserved.