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()
Deprecated.
since 5.4.2 without replacement,
TransformedProperty should not care of i18n on its own. |
Transformer<T> |
getTransformer() |
boolean |
hasI18NSupport()
Deprecated.
since 5.4.2 without replacement,
TransformedProperty should not care of i18n on its own. |
boolean |
isReadOnly() |
void |
setValue(T newValue) |
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, 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 boolean isReadOnly()
public Transformer<T> getTransformer()
@Deprecated public boolean hasI18NSupport()
TransformedProperty
should not care of i18n on its own.@Deprecated public void fireI18NValueChange()
TransformedProperty
should not care of i18n on its own.Copyright © 2015 Magnolia International Ltd.. All rights reserved.