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 TypeMethodDescriptionvoid
bindingBecameBound
(Binding binding) Notification that aBinding
has been bound.void
bindingBecameUnbound
(Binding binding) Notification that aBinding
has been unbound.void
sourceChanged
(Binding binding, PropertyStateEvent event) Notification that the source property of aBinding
has fired aPropertyStateEvent
for theBinding's
source object.void
sourceEdited
(Binding binding) Deprecated.void
Notification that the source and target of aBinding
have been made in sync.void
syncFailed
(Binding binding, Binding.SyncFailure failure) Notification that theBinding
attempted to sync the source and target, but the sync failed.void
targetChanged
(Binding binding, PropertyStateEvent event) Notification that the target property of aBinding
has fired aPropertyStateEvent
for theBinding's
target object.void
targetEdited
(Binding binding) Deprecated.This method has been replaced bytargetChanged(Binding, PropertyStateEvent)
and it will go away soon.
-
Constructor Details
-
AbstractBindingListener
public AbstractBindingListener()
-
-
Method Details
-
bindingBecameBound
Notification that aBinding
has been bound.- Specified by:
bindingBecameBound
in interfaceBindingListener
- Parameters:
binding
- theBinding
-
bindingBecameUnbound
Notification that aBinding
has been unbound.- Specified by:
bindingBecameUnbound
in interfaceBindingListener
- Parameters:
binding
- theBinding
-
syncFailed
Notification that theBinding
attempted to sync the source and target, but the sync failed.- Specified by:
syncFailed
in interfaceBindingListener
- Parameters:
binding
- theBinding
failure
- the reason the sync failed
-
synced
Notification that the source and target of aBinding
have been made in sync.- Specified by:
synced
in interfaceBindingListener
- Parameters:
binding
- theBinding
-
sourceChanged
Notification that the source property of aBinding
has fired aPropertyStateEvent
for theBinding's
source object.This implementation calls
sourceEdited
if the provided event returnstrue
fromgetValueChanged
.- Specified by:
sourceChanged
in interfaceBindingListener
- Parameters:
binding
- theBinding
-
targetChanged
Notification that the target property of aBinding
has fired aPropertyStateEvent
for theBinding's
target object.This implementation calls
targetEdited
if the provided event returnstrue
fromgetValueChanged
.- Specified by:
targetChanged
in interfaceBindingListener
- Parameters:
binding
- theBinding
-
sourceEdited
Deprecated.This method has been replaced bysourceChanged(Binding, 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 aBinding
has fired aPropertyStateEvent
indicating that its value or readability has changed for theBinding's
source object. Called by the defaultAbstractBindingListener's
implementation ofsourceChanged
.- Parameters:
binding
- theBinding
-
targetEdited
Deprecated.This method has been replaced bytargetChanged(Binding, 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 aBinding
has fired aPropertyStateEvent
indicating that its value or readability has changed for theBinding's
target object. Called by the defaultAbstractBindingListener's
implementation oftargetChanged
.- Parameters:
binding
- theBinding
-
sourceChanged(Binding, PropertyStateEvent)
and it will go away soon.