public class SwitchableTransformer extends CompositeTransformer
Transformer
implementation storing and retrieving SwitchableField informations as PropertysetItem
.fieldsName, propertyPrefix
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
SwitchableTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type,
List<String> fieldsName) |
Modifier and Type | Method and Description |
---|---|
protected String |
getCompositePropertyName(String propertyName) |
com.vaadin.data.util.PropertysetItem |
readFromItem()
Transform a specific Item values to a specified type T.
|
void |
writeToItem(com.vaadin.data.util.PropertysetItem newValues)
Convert the T newValue to a specific Item format.
|
createPropertyPrefix
definePropertyName, getBasePropertyName, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, setI18NPropertyName, setLocale, setType
public SwitchableTransformer(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 newValues)
Transformer
writeToItem
in interface Transformer<com.vaadin.data.util.PropertysetItem>
writeToItem
in class CompositeTransformer
public com.vaadin.data.util.PropertysetItem readFromItem()
Transformer
readFromItem
in interface Transformer<com.vaadin.data.util.PropertysetItem>
readFromItem
in class CompositeTransformer
protected String getCompositePropertyName(String propertyName)
getCompositePropertyName
in class CompositeTransformer
Copyright © 2015 Magnolia International Ltd.. All rights reserved.