public class DelegatingMultiValueSubnodeTransformer extends DelegatingMultiValueFieldTransformer
Transformer
is dedicated to the MultiField
;
it considers entries as child nodes of a sub-node (named after the field) and delegates property handling to their respective sub-fields.
The storage strategy is that of the MultiValueSubChildrenNodePropertiesTransformer
:
createProperty
childNodeType, i18nSuffix, subItemBaseName
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
DelegatingMultiValueSubnodeTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type,
info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport) |
Modifier and Type | Method and Description |
---|---|
protected JcrNodeAdapter |
getRootItem()
Overridden to get an intermediate sub-node where the multiple nodes are stored, rather than directly under the root node.
|
protected String |
getSubItemBaseName()
Overridden to keep only the digit part in child-node names.
|
childItemRegexRepresentation, createNewItemName, createProperty, getBasePropertyName, getStoredChildNodes, incrementRegexRepresentation, populateStoredChildItems, readFromItem, removeProperty, setI18NPropertyName, writeToItem
definePropertyName, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, setLocale, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, hasI18NSupport
getLocale, setLocale
public DelegatingMultiValueSubnodeTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.data.util.PropertysetItem> type, info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport)
protected String getSubItemBaseName()
getSubItemBaseName
in class DelegatingMultiValueFieldTransformer
protected JcrNodeAdapter getRootItem()
The sub-node is created if it doesn't exist, and is named after the multi-value field definition.
getRootItem
in class DelegatingMultiValueFieldTransformer
Copyright © 2015 Magnolia International Ltd.. All rights reserved.