public class MultiValueSubChildrenNodeTransformer extends MultiValueChildrenNodeTransformer
Transformer
storing and retrieving properties (as PropertysetItem
) displayed in MultiField.childNodeType
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
MultiValueSubChildrenNodeTransformer(com.vaadin.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.data.util.PropertysetItem> type) |
Modifier and Type | Method and Description |
---|---|
protected String |
createChildItemName(Set<String> childNames,
Object value,
JcrNodeAdapter rootItem)
Basic Implementation that create child Nodes with increasing number as Name.
|
protected org.apache.jackrabbit.commons.predicate.Predicate |
createPredicateToEvaluateChildNode()
Return a null predicate.
|
protected JcrNodeAdapter |
getRootItem()
Define the root Item used in order to set the SubNodes list.
|
protected void |
handleRootitemAndParent(JcrNodeAdapter rootItem)
Handle the relation between parent and rootItem.
Typically, if rootItem would be a child of parentItem: |
getOrCreateChildNode, getStoredChildNodes, getValueFromChildNode, hasI18NSupport, initializeChildItem, readFromItem, setChildItemValue, setChildValuePropertyName, setNewChildItem, writeToItem
definePropertyName, deriveLocaleAwareName, getBasePropertyName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, isReadOnly, setI18NPropertyName, setLocale, setReadOnly, setType
@Inject public MultiValueSubChildrenNodeTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.data.util.PropertysetItem> type)
protected JcrNodeAdapter getRootItem()
MultiValueChildrenNodeTransformer
getRootItem
in class MultiValueChildrenNodeTransformer
protected String createChildItemName(Set<String> childNames, Object value, JcrNodeAdapter rootItem)
MultiValueChildrenNodeTransformer
createChildItemName
in class MultiValueChildrenNodeTransformer
protected void handleRootitemAndParent(JcrNodeAdapter rootItem)
MultiValueChildrenNodeTransformer
if (childItem.getChildren() != null && !childItem.getChildren().isEmpty()) { ((JcrNodeAdapter) parent).addChild(childItem); } else { ((JcrNodeAdapter) parent).removeChild(childItem); }
handleRootitemAndParent
in class MultiValueChildrenNodeTransformer
protected org.apache.jackrabbit.commons.predicate.Predicate createPredicateToEvaluateChildNode()
createPredicateToEvaluateChildNode
in class MultiValueChildrenNodeTransformer
Copyright © 2015 Magnolia International Ltd.. All rights reserved.