info.magnolia.ui.admincentral.shellapp.pulse.item
Class NestedMapProperty<T>

java.lang.Object
  extended by com.vaadin.data.util.AbstractProperty<T>
      extended by info.magnolia.ui.admincentral.shellapp.pulse.item.NestedMapProperty<T>
Type Parameters:
T - Type of the nested Property. Resolved in initialize(Class, String).
All Implemented Interfaces:
com.vaadin.data.Property<T>, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeNotifier, Serializable

public class NestedMapProperty<T>
extends com.vaadin.data.util.AbstractProperty<T>

Nested Property for a map on a bean. Allows accessing map values in a dotted notation, e.g. "address.street". Multiple level of nesting is not supported.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.data.util.AbstractProperty
com.vaadin.data.util.AbstractProperty.ReadOnlyStatusChangeEvent
 
Nested classes/interfaces inherited from interface com.vaadin.data.Property
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer
 
Constructor Summary
NestedMapProperty(Object instance, String propertyName)
           
 
Method Summary
 Class<? extends T> getType()
           
 T getValue()
          Gets the value stored in the Property.
 void setValue(T newValue)
          Sets the value of the property.
 
Methods inherited from class com.vaadin.data.util.AbstractProperty
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, isReadOnly, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedMapProperty

public NestedMapProperty(Object instance,
                         String propertyName)
Method Detail

getValue

public T getValue()
Gets the value stored in the Property. The value is read from the map .

Returns:
the value of the Property

setValue

public void setValue(T newValue)
              throws com.vaadin.data.Property.ReadOnlyException
Sets the value of the property. The new value must be assignable to the type of this property.

Parameters:
newValue - the New value of the property.
Throws:
Property.ReadOnlyException - if the object is in read-only mode.
com.vaadin.data.Property.ReadOnlyException

getType

public Class<? extends T> getType()


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