info.magnolia.ui.form.field.property
Class MultiValuesHandler<T>

java.lang.Object
  extended by info.magnolia.ui.form.field.property.AbstractMultiValueHandler<T>
      extended by info.magnolia.ui.form.field.property.MultiValuesHandler<T>
Type Parameters:
T - type of the element list.
All Implemented Interfaces:
MultiValueHandler<T>

public class MultiValuesHandler<T>
extends AbstractMultiValueHandler<T>

Multi values properties implementation of MultiValueHandler.
Store the list of values as Jcr Multi-property value.
Retrieve the Jcr Multi value property as a list.


Constructor Summary
MultiValuesHandler(info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter parent, String propertyName)
           
 
Method Summary
 List<T> getValue()
           
 void setValue(List<T> 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

MultiValuesHandler

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

setValue

public void setValue(List<T> newValue)
Parameters:
newValue - Set the newValue to the appropriate property.

getValue

public List<T> getValue()
Returns:
a List representation of the related property.


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.