public class DelegatingMultiValueChildNodeWithLocaleTransformer extends DelegatingMultiValueSubnodeTransformer
Transformer
is dedicated to the MultiField
;
it considers entries as child nodes and delegates property handling to their respective sub-fields.
createProperty
childNodeType, subItemBaseName
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
DelegatingMultiValueChildNodeWithLocaleTransformer(com.vaadin.v7.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.v7.data.util.PropertysetItem> type,
I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
protected String |
childItemRegexRepresentation() |
protected String |
createNewItemName()
Creates a unique name for the child item, in the following format:
subItemBaseName + increment + i18nSuffix
subItemBaseName by default we use the
FieldDefinition.getName()
increment is the next available index for the current base name
i18nSuffix is the default i18n suffix (typically something formatted like '_de')
. |
protected String |
getChildNodeName() |
getRootItem, getStoredChildNodes, getSubItemBaseName
createProperty, getBasePropertyName, getChildItemNames, incrementRegexRepresentation, populateStoredChildItems, readFromItem, removeProperty, setI18NPropertyName, setLocale, writeToItem
definePropertyName, deriveLocaleAwareName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setReadOnly, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, hasI18NSupport, isReadOnly, setReadOnly
getLocale
public DelegatingMultiValueChildNodeWithLocaleTransformer(com.vaadin.v7.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.v7.data.util.PropertysetItem> type, I18NAuthoringSupport i18NAuthoringSupport)
protected String createNewItemName()
DelegatingMultiValueFieldTransformer
FieldDefinition.getName()
createNewItemName
in class DelegatingMultiValueFieldTransformer
protected String childItemRegexRepresentation()
childItemRegexRepresentation
in class DelegatingMultiValueFieldTransformer
protected String getChildNodeName()
getChildNodeName
in class DelegatingMultiValueSubnodeTransformer
Copyright © 2019 Magnolia International Ltd.. All rights reserved.