public abstract class DataObjectBinder<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataObjectBinder.UpdatedStateBindingContext
This binding context can be used only when we know that there is no write operation waiting to be
performed on the current bindable container.
|
| Constructor and Description |
|---|
DataObjectBinder(BindableContainer bindableContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExpressionBinder(String widgetId,
ExpressionBinder<?> expressionBinder) |
void |
addPropertyBinder(String widgetId,
PropertyBinder<T,?> propertyBinder,
boolean boundToAttribute)
Add a new binding between a property of a DataObject and a widget property.
|
protected abstract T |
createDataObject() |
public DataObjectBinder(BindableContainer bindableContainer)
public void addPropertyBinder(String widgetId, PropertyBinder<T,?> propertyBinder, boolean boundToAttribute)
widgetId - the bound widget identifier.propertyBinder - the PropertyBinder that maps how this property is bound to the DataObjectboundToAttribute - Inform if this property binding references an HTML attribute or property.
It is important for considerable performance improvements, as it allow us to avoid
dirty checking to implement data binding.public void addExpressionBinder(String widgetId, ExpressionBinder<?> expressionBinder)
protected abstract T createDataObject()
Copyright © 2015. All rights reserved.