info.magnolia.ui.vaadin.integration.jcr
Class DefaultProperty<T>

java.lang.Object
  extended by com.vaadin.data.util.AbstractProperty<T>
      extended by com.vaadin.data.util.ObjectProperty<T>
          extended by info.magnolia.ui.vaadin.integration.jcr.DefaultProperty<T>
Type Parameters:
T - generic type of the value.
All Implemented Interfaces:
com.vaadin.data.Property<T>, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeNotifier, Serializable

public class DefaultProperty<T>
extends com.vaadin.data.util.ObjectProperty<T>

Basic implementation of Property.

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
DefaultProperty(Class<T> type, T value)
          Creates a typed DefaultProperty based on the properties name, it's type value and the actual class type.
DefaultProperty(T value)
           
 
Method Summary
 void setValue(T newValue)
           
 String toString()
           
 
Methods inherited from class com.vaadin.data.util.ObjectProperty
getType, getValue
 
Methods inherited from class com.vaadin.data.util.AbstractProperty
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, isReadOnly, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultProperty

public DefaultProperty(T value)

DefaultProperty

public DefaultProperty(Class<T> type,
                       T value)
Creates a typed DefaultProperty based on the properties name, it's type value and the actual class type. Value can be null.

Method Detail

setValue

public void setValue(T newValue)
              throws com.vaadin.data.Property.ReadOnlyException,
                     com.vaadin.data.util.converter.Converter.ConversionException
Specified by:
setValue in interface com.vaadin.data.Property<T>
Overrides:
setValue in class com.vaadin.data.util.ObjectProperty<T>
Throws:
com.vaadin.data.Property.ReadOnlyException
com.vaadin.data.util.converter.Converter.ConversionException

toString

public String toString()
Overrides:
toString in class com.vaadin.data.util.AbstractProperty<T>


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