public abstract class PropertyBinder<T,W extends com.google.gwt.user.client.ui.IsWidget> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataObjectBinder<T> |
dataObjectBinder |
protected W |
widget |
| Constructor and Description |
|---|
PropertyBinder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bind(com.google.gwt.user.client.ui.IsWidget w) |
abstract void |
copyFrom(T dataObject)
Transfer data from given widget to target dataObject
|
abstract void |
copyTo(T dataObject)
Transfer data from dataObject to target widget
|
com.google.gwt.user.client.ui.UIObject |
getUiObject()
Retrieve the target
UIObject that is associated to this binding. |
protected boolean |
isBound() |
protected boolean |
isBoundToAttribute()
Inform if this property binding references an HTML attribute or property.
|
protected void |
listenDOMChanges()
Implements DOM listening to enable Crux to update bound dataObject when
DOM changes.
|
protected void |
notifyChanges() |
protected void |
observeChangeEvents() |
protected void |
observeChangeEvents(com.google.gwt.dom.client.Element el,
PropertyBinder<T,W> binder) |
protected void |
observeDOMChanges() |
protected void |
setBoundToAttribute(boolean boundToAttribute) |
protected void |
setDataObjectBinder(DataObjectBinder<T> dataObjectBinder) |
protected DataObjectBinder<T> dataObjectBinder
protected W extends com.google.gwt.user.client.ui.IsWidget widget
protected void bind(com.google.gwt.user.client.ui.IsWidget w)
protected void setDataObjectBinder(DataObjectBinder<T> dataObjectBinder)
protected boolean isBound()
protected void observeDOMChanges()
protected void observeChangeEvents()
protected void observeChangeEvents(com.google.gwt.dom.client.Element el,
PropertyBinder<T,W> binder)
protected void notifyChanges()
protected void listenDOMChanges()
protected void setBoundToAttribute(boolean boundToAttribute)
protected boolean isBoundToAttribute()
public abstract void copyTo(T dataObject)
dataObject - public abstract void copyFrom(T dataObject)
dataObject - public com.google.gwt.user.client.ui.UIObject getUiObject()
UIObject that is associated to this binding.
Default to the bound widgetCopyright © 2015. All rights reserved.