public class DelegatingCompositeFieldTransformer extends BasicTransformer<com.vaadin.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.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type,
List<String> fieldsName) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.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.data.util.PropertysetItem newValue)
This transformer's write implementation is empty.
|
definePropertyName, getBasePropertyName, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, setI18NPropertyName, setLocale, setType
@Inject public DelegatingCompositeFieldTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.data.util.PropertysetItem> type, List<String> fieldsName)
public void writeToItem(com.vaadin.data.util.PropertysetItem newValue)
writeToItem
in interface Transformer<com.vaadin.data.util.PropertysetItem>
writeToItem
in class BasicTransformer<com.vaadin.data.util.PropertysetItem>
public com.vaadin.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.data.util.PropertysetItem>
readFromItem
in class BasicTransformer<com.vaadin.data.util.PropertysetItem>
Copyright © 2015 Magnolia International Ltd.. All rights reserved.