Package org.jdesktop.beansbinding
Class AbstractBindingListener
- java.lang.Object
-
- org.jdesktop.beansbinding.AbstractBindingListener
-
- All Implemented Interfaces:
EventListener,BindingListener
public abstract class AbstractBindingListener extends Object implements BindingListener
An abstract subclass ofBindingListenerthat simplifies writingBindingListenersby allowing you to extend this class and re-implement only the methods you care about.- Author:
- Shannon Hickey
-
-
Constructor Summary
Constructors Constructor Description AbstractBindingListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbindingBecameBound(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.This method has been replaced bysourceChanged(org.jdesktop.beansbinding.Binding, org.jdesktop.beansbinding.PropertyStateEvent)and it will go away soon.voidsynced(Binding binding)Notification 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.voidsyncWarning(Binding binding, Binding.SyncFailure failure)A warning occurred while validating.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.
-
-
-
Method Detail
-
bindingBecameBound
public void bindingBecameBound(Binding binding)
Notification that aBindinghas been bound.- Specified by:
bindingBecameBoundin interfaceBindingListener- Parameters:
binding- theBinding
-
bindingBecameUnbound
public void bindingBecameUnbound(Binding binding)
Notification that aBindinghas been unbound.- Specified by:
bindingBecameUnboundin interfaceBindingListener- Parameters:
binding- theBinding
-
syncFailed
public void syncFailed(Binding binding, Binding.SyncFailure failure)
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
public void synced(Binding binding)
Notification that the source and target of aBindinghave been made in sync.- Specified by:
syncedin interfaceBindingListener- Parameters:
binding- theBinding
-
syncWarning
public void syncWarning(Binding binding, Binding.SyncFailure failure)
Description copied from interface:BindingListenerA warning occurred while validating. The binding has been synced anyway.- Specified by:
syncWarningin interfaceBindingListener- Parameters:
binding- theBindingfailure- the reason the sync failed
-
sourceChanged
public void sourceChanged(Binding binding, PropertyStateEvent event)
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
public void targetChanged(Binding binding, PropertyStateEvent event)
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 public void sourceEdited(Binding binding)
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 public void targetEdited(Binding binding)
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
-
-