|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.data.util.AbstractProperty<T> com.vaadin.data.util.ObjectProperty<T> info.magnolia.ui.form.field.transformer.TransformedProperty<T>
public class TransformedProperty<T>
Basic implementation of an ObjectProperty
.
This base property delegate to the Transformer
the read and write of the value used by the field.
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 | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class com.vaadin.data.util.ObjectProperty |
---|
getType |
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 |
---|
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
.Method Detail |
---|
public void setValue(T newValue) throws com.vaadin.data.Property.ReadOnlyException
setValue
in interface com.vaadin.data.Property<T>
setValue
in class com.vaadin.data.util.ObjectProperty<T>
com.vaadin.data.Property.ReadOnlyException
public T getValue()
getValue
in interface com.vaadin.data.Property<T>
getValue
in class com.vaadin.data.util.ObjectProperty<T>
public boolean hasI18NSupport()
public void fireI18NValueChange()
public Transformer<T> getTransformer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |