info.magnolia.ui.form.field.transformer.multi
Class MultiValueChildNodeTransformer
java.lang.Object
info.magnolia.ui.form.field.transformer.basic.BasicTransformer<com.vaadin.data.util.PropertysetItem>
info.magnolia.ui.form.field.transformer.multi.MultiValueChildNodeTransformer
- All Implemented Interfaces:
- info.magnolia.ui.api.i18n.I18NAwareHandler, Transformer<com.vaadin.data.util.PropertysetItem>
public class MultiValueChildNodeTransformer
- extends BasicTransformer<com.vaadin.data.util.PropertysetItem>
Sub Nodes implementation of Transformer
storing and retrieving properties (as PropertysetItem
) displayed in MultiField.
Storage strategy:
- root node (relatedFormItem)
-- child node (node name is the name of the related property)
--- property1 (store the first value of the MultiField)
--- property2 (store the second value of the MultiField)
--- ...
Method Summary |
com.vaadin.data.util.PropertysetItem |
readFromItem()
Transform a specific Item values to a specified type T.
|
void |
writeToItem(com.vaadin.data.util.PropertysetItem newValue)
Convert the T newValue to a specific Item format.
|
Methods inherited from class info.magnolia.ui.form.field.transformer.basic.BasicTransformer |
definePropertyName, getBasePropertyName, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, setI18NPropertyName, setLocale, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValueChildNodeTransformer
public MultiValueChildNodeTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type)
readFromItem
public com.vaadin.data.util.PropertysetItem readFromItem()
- Description copied from interface:
Transformer
- Transform a specific Item values to a specified type T.
- Specified by:
readFromItem
in interface Transformer<com.vaadin.data.util.PropertysetItem>
- Overrides:
readFromItem
in class BasicTransformer<com.vaadin.data.util.PropertysetItem>
writeToItem
public void writeToItem(com.vaadin.data.util.PropertysetItem newValue)
- Description copied from interface:
Transformer
- Convert the T newValue to a specific Item format.
- Specified by:
writeToItem
in interface Transformer<com.vaadin.data.util.PropertysetItem>
- Overrides:
writeToItem
in class BasicTransformer<com.vaadin.data.util.PropertysetItem>
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.