VALUE - is the generic type of the value.public class UiDataBindingPojo<VALUE> extends AbstractUiDataBinding<VALUE>
| Modifier and Type | Field and Description |
|---|---|
private UiDataBindingAdapter<VALUE> |
adapter |
| Constructor and Description |
|---|
UiDataBindingPojo(AbstractUiWidget<VALUE> widget,
UiDataBindingAdapter<VALUE> adapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected VALUE |
createCopyOfValue(VALUE value)
This method will create a (deep-)copy of the given
value. |
protected VALUE |
createNewValue()
This method creates a new instance of <VALUE> (see
AbstractUiFeatureValueAndValidation.getValue()). |
PropertyAccessor<VALUE,?> |
createPropertyAccessor(String property) |
<P> PropertyAccessor<VALUE,P> |
createPropertyAccessor(TypedProperty<P> property) |
UiDataBindingAdapter<VALUE> |
getAdapter() |
addChangeHandler, bind, createAndBind, createAndBind, createValidationFailure, doGetValue, doSetValue, getLabel, getLogger, getOriginalValue, getRecentValue, getSource, getValidity, getValueDirect, getWidget, isModified, removeChangeHandler, setMandatory, setModified, setValidity, setValue, toStringaddValidator, doValidate, isMandatory, isMandatory, removeValidatoraddValidatorMandatory, clearValidity, getValue, getValueAndValidate, getValueOrException, handleGetValueError, resetValue, setValue, setValueForUser, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoValidategetValueAndValidateresetValue, setValue, setValueForUsergetValue, getValueOrExceptionaddValidatorMandatory, isMandatoryaddValidator, removeValidatorvalidateprivate final UiDataBindingAdapter<VALUE> adapter
getAdapter()public UiDataBindingPojo(AbstractUiWidget<VALUE> widget, UiDataBindingAdapter<VALUE> adapter)
widget - is the widget to bind.adapter - is the UiDataBindingAdapter.public UiDataBindingAdapter<VALUE> getAdapter()
UiDataBindingAdapter.public PropertyAccessor<VALUE,?> createPropertyAccessor(String property)
createPropertyAccessor in interface UiDataBinding<VALUE>createPropertyAccessor in class AbstractUiDataBinding<VALUE>property - is the property name.PropertyAccessor for the given property based on the
Pojo type <VALUE>.public <P> PropertyAccessor<VALUE,P> createPropertyAccessor(TypedProperty<P> property)
createPropertyAccessor in interface UiDataBinding<VALUE>createPropertyAccessor in class AbstractUiDataBinding<VALUE>P - is the generic type of the property to access - see TypedProperty.getPropertyType().property - is the TypedProperty.PropertyAccessor for the given property based on the
Pojo type <VALUE>.protected VALUE createNewValue()
AbstractUiFeatureValueAndValidation.getValue()). It is called from
AbstractUiDataBinding.getValueDirect(Object, ValidationState) or AbstractUiFeatureValueAndValidation.setValue(Object) in case the given value is
null. Void or a Datatype (immutable object), this
method should legally return null. This can also be suitable for objects that only delegate
their value to something else. Further, to be GWT compatible you cannot create the
new instance via reflection. If you do not care about GWT, you can use reflection or better use it via
PojoFactory.createNewValue in class AbstractUiDataBinding<VALUE>protected VALUE createCopyOfValue(VALUE value)
value. null.createCopyOfValue in class AbstractUiDataBinding<VALUE>value - is the value to copy. Will typically be AbstractUiDataBinding.getOriginalValue().
Must NOT be modified in any way.null if NOT implemented or supported.Copyright © 2001–2016 mmm-Team. All rights reserved.