|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.beansbinding.BindingGroup
public class BindingGroup
BindingGroup
allows you to create a group of Bindings
and operate on and/or track state changes to the Bindings
as
a group.
Constructor Summary | |
---|---|
BindingGroup()
Creates an empty BindingGroup . |
Method Summary | |
---|---|
void |
addBinding(Binding binding)
Adds a Binding to this group. |
void |
addBindingListener(BindingListener listener)
Adds a BindingListener to be notified of all BindingListener
notifications fired by any Binding in the group. |
void |
bind()
Calls bind on all unbound bindings in the group. |
Binding |
getBinding(java.lang.String name)
Returns the Binding in this group with the given name,
or null if this group doesn't contain a Binding
with the given name. |
BindingListener[] |
getBindingListeners()
Returns the list of BindingListeners registered on this
group. |
java.util.List<Binding> |
getBindings()
Returns a list of all Bindings in this group. |
void |
removeBinding(Binding binding)
Removes a Binding from this group. |
void |
removeBindingListener(BindingListener listener)
Removes a BindingListener from the group. |
void |
unbind()
Calls unbind on all bound bindings in the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BindingGroup()
BindingGroup
.
Method Detail |
---|
public final void addBinding(Binding binding)
Binding
to this group.
binding
- the Binding
to add
java.lang.IllegalArgumentException
- if the binding is null, is a managed binding,
if the group already contains this binding, or if the group already
contains a binding with the same (non-null
) namepublic final void removeBinding(Binding binding)
Binding
from this group.
binding
- the Binding
to remove
java.lang.IllegalArgumentException
- if the binding is null or
if the group doesn't contain this bindingpublic final Binding getBinding(java.lang.String name)
Binding
in this group with the given name,
or null
if this group doesn't contain a Binding
with the given name.
name
- the name of the Binding
to fetch
Binding
in this group with the given name,
or null
java.lang.IllegalArgumentException
- if name
is null
public final java.util.List<Binding> getBindings()
Bindings
in this group. Order is undefined.
Returns an empty list if the group contains no Bindings
.
Bindings
in this group.public void bind()
bind
on all unbound bindings in the group.
public void unbind()
unbind
on all bound bindings in the group.
public final void addBindingListener(BindingListener listener)
BindingListener
to be notified of all BindingListener
notifications fired by any Binding
in the group. Does nothing if
the listener is null
. If a listener is added more than once,
notifications are sent to that listener once for every time that it has
been added. The ordering of listener notification is unspecified.
listener
- the listener to addpublic final void removeBindingListener(BindingListener listener)
BindingListener
from the group. Does
nothing if the listener is null
or is not one of those registered.
If the listener being removed was registered more than once, only one
occurrence of the listener is removed from the list of listeners.
The ordering of listener notification is unspecified.
listener
- the listener to removeaddBindingListener(org.jdesktop.beansbinding.BindingListener)
public final BindingListener[] getBindingListeners()
BindingListeners
registered on this
group. Order is undefined. Returns an empty array if there are
no listeners.
BindingListeners
registered on this groupaddBindingListener(org.jdesktop.beansbinding.BindingListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |