public abstract class DefaultJAXXBinding extends Object implements JAXXBinding
PropertyChangeListener which processes a data binding when it receives a
PropertyChangeEvent.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultBinding
flag to know
true : if the binding was init from a generated
jaxx object, false otherwise. |
protected boolean |
reloadAfterFire
Internal state to reapply the binding after each fires :this is sometimes
necessary when binding is complex.
|
protected JAXXObject |
source
The source of the binding.
|
| Constructor and Description |
|---|
DefaultJAXXBinding(JAXXObject source,
String id,
boolean defaultBinding)
Creates a new Data binding which will run the given data binding
when it receives a
PropertyChangeEvent. |
DefaultJAXXBinding(JAXXObject source,
String id,
boolean defaultBinding,
boolean reloadAfterFire)
Creates a new Data binding which will run the given data binding
when it receives a
PropertyChangeEvent. |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
JAXXObject |
getSource() |
boolean |
isDefaultBinding() |
void |
propertyChange(PropertyChangeEvent e)
Processes the data binding in response to a
PropertyChangeEvent. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyDataBinding, processDataBinding, removeDataBindingprotected final JAXXObject source
protected final boolean defaultBinding
true : if the binding was init from a generated
jaxx object, false otherwise.protected final boolean reloadAfterFire
ui.getModel().getProperty()We need to listen two things : first listen on
ui the
modification of model, then on model the property.public DefaultJAXXBinding(JAXXObject source, String id, boolean defaultBinding)
PropertyChangeEvent.source - the JAXXObject source of the bindingid - the name of the data binding to rundefaultBinding - flag to knwon if binding is coming from a generated jaxx object (true).public DefaultJAXXBinding(JAXXObject source, String id, boolean defaultBinding, boolean reloadAfterFire)
PropertyChangeEvent.source - the JAXXObject source of the bindingid - the name of the data binding to rundefaultBinding - flag to know if binding is coming from a generated jaxx object (true).reloadAfterFire - flag to know if the binding need to be reload after each firespublic String getId()
getId in interface JAXXBindingpublic JAXXObject getSource()
getSource in interface JAXXBindingpublic boolean isDefaultBinding()
isDefaultBinding in interface JAXXBindingpublic void propertyChange(PropertyChangeEvent e)
PropertyChangeEvent.
When the binding is wake up, delegate the process to the source object which
can manage re-entrant code (can not process a re-entrant event).propertyChange in interface PropertyChangeListenere - the event which triggered the bindingCopyright © 2008–2017 Ultreia.io. All rights reserved.