T
- public static class ComponentWithValue.ValueProperty<T>
extends com.vaadin.data.util.AbstractProperty<T>
Note that the forms::Binding.get() is called immediately when this object is constructed, and is cached afterwards. TODO why?
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 |
---|
ValueProperty(ComponentWithValue<T> owner,
Variant.RecordVariant bindingRecord,
Class<T> valueType)
Creates the adapter around given forms::Binding instance.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getType() |
T |
getValue() |
void |
setValue(Object newValue) |
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, isReadOnly, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly, toString
public ValueProperty(ComponentWithValue<T> owner, Variant.RecordVariant bindingRecord, Class<T> valueType)
owner
- the owner component, not null.bindingRecord
- the forms::Binding instance, not null.valueType
- expected type of values which will be set to the forms::Binding instance, for example Decimal.class.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.