public class NotNullInitialStringValueTransformer extends BasicTransformer<String>
Transformer
that return a empty String it the requested property value do not exist.basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
NotNullInitialStringValueTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<String> type,
info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
String |
readFromItem()
If the initial property do not exist, do not return a Null.
|
definePropertyName, deriveLocaleAwareName, getBasePropertyName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setI18NPropertyName, setLocale, setReadOnly, setType, writeToItem
@Inject public NotNullInitialStringValueTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<String> type, info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport)
public String readFromItem()
readFromItem
in interface Transformer<String>
readFromItem
in class BasicTransformer<String>
Copyright © 2017 Magnolia International Ltd.. All rights reserved.