info.magnolia.ui.form.field.property
Class CommaSeparatedValueHandler

java.lang.Object
  extended by info.magnolia.ui.form.field.property.AbstractMultiValueHandler<String>
      extended by 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


Constructor Summary
CommaSeparatedValueHandler(info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter parent, String propertyName)
           
 
Method Summary
 List<String> getValue()
           
 void setValue(List<String> newValue)
           
 
Methods inherited from class info.magnolia.ui.form.field.property.AbstractMultiValueHandler
getOrCreateProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommaSeparatedValueHandler

@Inject
public CommaSeparatedValueHandler(info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter parent,
                                         String propertyName)
Method Detail

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.