public class TransformedProperty<T>
extends com.vaadin.data.util.ObjectProperty<T>
ObjectProperty
.Transformer
the read and write of the value used by the field.com.vaadin.data.util.AbstractProperty.ReadOnlyStatusChangeEvent
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 and Description |
---|
TransformedProperty(Transformer<T> transformer)
Creates a new instance of TransformedProperty with the given transformer.
The super ObjectProperty is initialized with: - value = Transformer.readFromItem() in order to get the Item property value,
- type = Transformer.getType() , the type of the value. |
Modifier and Type | Method and Description |
---|---|
void |
fireI18NValueChange()
In case of i18n change, Reload the Value returned by the Handler.
|
Transformer<T> |
getTransformer() |
T |
getValue() |
boolean |
hasI18NSupport() |
void |
setValue(T newValue) |
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, isReadOnly, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly, toString
public TransformedProperty(Transformer<T> transformer)
ObjectProperty
is initialized with: Transformer.readFromItem()
in order to get the Item property value,
- type = Transformer.getType()
, the type of the value.transformer
- the relate Property Transformer
.public void setValue(T newValue) throws com.vaadin.data.Property.ReadOnlyException
public T getValue()
public boolean hasI18NSupport()
public void fireI18NValueChange()
public Transformer<T> getTransformer()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.