T
- public class ListToSetTransformer<T> extends BasicTransformer<T>
OptionGroupFieldDefinition
.
Indeed, Vaadin's OptionGroup
operates selection with sets, whereas we resolve
JCR multi-value properties as lists.
Also mind that for single-select definitions, this transformer merely works like a plain BasicTransformer
.
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
ListToSetTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<T> type)
Deprecated.
since 5.4.2 - use
ListToSetTransformer(Item, ConfiguredFieldDefinition, Class, I18NAuthoringSupport) instead. |
ListToSetTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<T> type,
info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isCollectionConversionNeeded(T newValue,
Class<?> propertyType)
|
T |
readFromItem()
Transform a specific Item values to a specified type T.
|
void |
writeToItem(T newValue)
Convert the T newValue to a specific Item format.
|
definePropertyName, deriveLocaleAwareName, getBasePropertyName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setI18NPropertyName, setLocale, setReadOnly, setType
@Deprecated public ListToSetTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<T> type)
ListToSetTransformer(Item, ConfiguredFieldDefinition, Class, I18NAuthoringSupport)
instead.public ListToSetTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<T> type, info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport)
public void writeToItem(T newValue)
Transformer
writeToItem
in interface Transformer<T>
writeToItem
in class BasicTransformer<T>
protected boolean isCollectionConversionNeeded(T newValue, Class<?> propertyType)
public T readFromItem()
Transformer
readFromItem
in interface Transformer<T>
readFromItem
in class BasicTransformer<T>
Copyright © 2016 Magnolia International Ltd.. All rights reserved.