java.util.EventListener
, BindingListener
public abstract class AbstractBindingListener extends java.lang.Object implements BindingListener
BindingListener
that simplifies writing
BindingListeners
by allowing you to extend this class and re-implement
only the methods you care about.Constructor | Description |
---|---|
AbstractBindingListener() |
Modifier and Type | Method | Description |
---|---|---|
void |
bindingBecameBound(Binding binding) |
Notification that a
Binding has been bound. |
void |
bindingBecameUnbound(Binding binding) |
Notification that a
Binding has been unbound. |
void |
sourceChanged(Binding binding,
PropertyStateEvent event) |
Notification that the source property of a
Binding has fired
a PropertyStateEvent for the Binding's source object. |
void |
sourceEdited(Binding binding) |
Deprecated.
This method has been replaced by
sourceChanged(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. |
void |
synced(Binding binding) |
Notification that the source and target of a
Binding have
been made in sync. |
void |
syncFailed(Binding binding,
Binding.SyncFailure failure) |
Notification that the
Binding attempted to sync the source and
target, but the sync failed. |
void |
targetChanged(Binding binding,
PropertyStateEvent event) |
Notification that the target property of a
Binding has fired
a PropertyStateEvent for the Binding's target object. |
void |
targetEdited(Binding binding) |
Deprecated.
This method has been replaced by
targetChanged(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. |
public void bindingBecameBound(Binding binding)
Binding
has been bound.bindingBecameBound
in interface BindingListener
binding
- the Binding
public void bindingBecameUnbound(Binding binding)
Binding
has been unbound.bindingBecameUnbound
in interface BindingListener
binding
- the Binding
public void syncFailed(Binding binding, Binding.SyncFailure failure)
Binding
attempted to sync the source and
target, but the sync failed.syncFailed
in interface BindingListener
binding
- the Binding
failure
- the reason the sync failedpublic void synced(Binding binding)
Binding
have
been made in sync.synced
in interface BindingListener
binding
- the Binding
public void sourceChanged(Binding binding, PropertyStateEvent event)
Binding
has fired
a PropertyStateEvent
for the Binding's
source object.
This implementation calls sourceEdited
if the provided event returns
true
from getValueChanged
.
sourceChanged
in interface BindingListener
binding
- the Binding
public void targetChanged(Binding binding, PropertyStateEvent event)
Binding
has fired
a PropertyStateEvent
for the Binding's
target object.
This implementation calls targetEdited
if the provided event returns
true
from getValueChanged
.
targetChanged
in interface BindingListener
binding
- the Binding
@Deprecated public void sourceEdited(Binding binding)
sourceChanged(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.Binding
has fired
a PropertyStateEvent
indicating that its value or readability
has changed for the Binding's
source object. Called by the default
AbstractBindingListener's
implementation of sourceChanged
.binding
- the Binding
@Deprecated public void targetEdited(Binding binding)
targetChanged(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.Binding
has fired
a PropertyStateEvent
indicating that its value or readability
has changed for the Binding's
target object. Called by the default
AbstractBindingListener's
implementation of targetChanged
.binding
- the Binding