Package org.jdesktop.beansbinding
Class AbstractBindingListener
java.lang.Object
org.jdesktop.beansbinding.AbstractBindingListener
- All Implemented Interfaces:
EventListener,BindingListener
An abstract subclass of
BindingListener that simplifies writing
BindingListeners by allowing you to extend this class and re-implement
only the methods you care about.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindingBecameBound(Binding binding) Notification that aBindinghas been bound.voidbindingBecameUnbound(Binding binding) Notification that aBindinghas been unbound.voidsourceChanged(Binding binding, PropertyStateEvent event) Notification that the source property of aBindinghas fired aPropertyStateEventfor theBinding'ssource object.voidsourceEdited(Binding binding) Deprecated.voidNotification that the source and target of aBindinghave been made in sync.voidsyncFailed(Binding binding, Binding.SyncFailure failure) Notification that theBindingattempted to sync the source and target, but the sync failed.voidtargetChanged(Binding binding, PropertyStateEvent event) Notification that the target property of aBindinghas fired aPropertyStateEventfor theBinding'starget object.voidtargetEdited(Binding binding) Deprecated.This method has been replaced bytargetChanged(org.jdesktop.beansbinding.Binding, org.jdesktop.beansbinding.PropertyStateEvent)and it will go away soon.
-
Constructor Details
-
AbstractBindingListener
public AbstractBindingListener()
-
-
Method Details
-
bindingBecameBound
Notification that aBindinghas been bound.- Specified by:
bindingBecameBoundin interfaceBindingListener- Parameters:
binding- theBinding
-
bindingBecameUnbound
Notification that aBindinghas been unbound.- Specified by:
bindingBecameUnboundin interfaceBindingListener- Parameters:
binding- theBinding
-
syncFailed
Notification that theBindingattempted to sync the source and target, but the sync failed.- Specified by:
syncFailedin interfaceBindingListener- Parameters:
binding- theBindingfailure- the reason the sync failed
-
synced
Notification that the source and target of aBindinghave been made in sync.- Specified by:
syncedin interfaceBindingListener- Parameters:
binding- theBinding
-
sourceChanged
Notification that the source property of aBindinghas fired aPropertyStateEventfor theBinding'ssource object.This implementation calls
sourceEditedif the provided event returnstruefromgetValueChanged.- Specified by:
sourceChangedin interfaceBindingListener- Parameters:
binding- theBinding
-
targetChanged
Notification that the target property of aBindinghas fired aPropertyStateEventfor theBinding'starget object.This implementation calls
targetEditedif the provided event returnstruefromgetValueChanged.- Specified by:
targetChangedin interfaceBindingListener- Parameters:
binding- theBinding
-
sourceEdited
Deprecated.This method has been replaced bysourceChanged(org.jdesktop.beansbinding.Binding, org.jdesktop.beansbinding.PropertyStateEvent)and it will go away soon. It is being kept for a short period only, to assist in migration.Notification that the source property of aBindinghas fired aPropertyStateEventindicating that its value or readability has changed for theBinding'ssource object. Called by the defaultAbstractBindingListener'simplementation ofsourceChanged.- Parameters:
binding- theBinding
-
targetEdited
Deprecated.This method has been replaced bytargetChanged(org.jdesktop.beansbinding.Binding, org.jdesktop.beansbinding.PropertyStateEvent)and it will go away soon. It is being kept for a short period only, to assist in migration.Notification that the target property of aBindinghas fired aPropertyStateEventindicating that its value or readability has changed for theBinding'starget object. Called by the defaultAbstractBindingListener'simplementation oftargetChanged.- Parameters:
binding- theBinding
-
sourceChanged(org.jdesktop.beansbinding.Binding, org.jdesktop.beansbinding.PropertyStateEvent)and it will go away soon.