info.magnolia.ui.form.field.property
Class CommaSeparatedValueHandler
java.lang.Object
info.magnolia.ui.form.field.property.AbstractMultiValueHandler<String>
info.magnolia.ui.form.field.property.CommaSeparatedValueHandler
- All Implemented Interfaces:
- MultiValueHandler<String>
public class CommaSeparatedValueHandler
- extends AbstractMultiValueHandler<String>
SingleProperty implementation of MultiValueHandler
.
Store the list of values in a single property as a concatenation of string with a ',' separator.
Retrieve the single property as a List of String.
This handler is implemented for backward capability with Magnolia 4.x.
As for Magnolia 4.x, the current implementation only support a list of String
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommaSeparatedValueHandler
@Inject
public CommaSeparatedValueHandler(info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter parent,
String propertyName)
setValue
public void setValue(List<String> newValue)
- Parameters:
newValue
- Set the newValue to the appropriate property.
getValue
public List<String> getValue()
- Returns:
- a List representation of the related property.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.