|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.event.ObservableSetChangeSupport<E>
E - set element typepublic class ObservableSetChangeSupport<E>
A support class that can be used via delegation to provide
SetChangeListener and VetoableSetChangeListener
management.
| Constructor Summary | |
|---|---|
protected |
ObservableSetChangeSupport()
Create a new support class meant to be subclassed. |
|
ObservableSetChangeSupport(ObservableSet<E> source)
Create a new support class that fires set change and vetoable set change events with the specified source as the source of the events. |
| Method Summary | |
|---|---|
void |
addSetChangeListener(SetChangeListener<E> l)
Add the specified set change listener. |
void |
addVetoableSetChangeListener(VetoableSetChangeListener<E> l)
Add the specified vetoable set change listener. |
void |
fireSetChanged()
Fire a change event to all registered SetChangeListeners. |
void |
fireSetChanged(SetChangeEvent<E> e)
Fire the specified change event to all registered SetChangeListeners. |
void |
fireSetWillChange()
Fire a will change event to all registered VetoableSetChangeListeners. |
void |
fireSetWillChange(VetoableSetChangeEvent<E> e)
Fire the specified will change event to all registered VetoableSetChangeListeners. |
protected EventListenerList |
getEventListenerList()
Return the EventListenerList backing this
observable set support class. |
int |
getSetChangeListenerCount()
Return the number of SetChangeListeners registered
to this observable set support class. |
SetChangeListener<E>[] |
getSetChangeListeners()
Return an array of all SetChangeListeners, or
an empty array if none are registered. |
int |
getVetoableSetChangeListenerCount()
Return the number of VetoableSetChangeListeners
registered to this observable set support class. |
VetoableSetChangeListener<E>[] |
getVetoableSetChangeListeners()
Return an array of all VetoableSetChangeListeners,
or an empty array if none are registered. |
void |
removeSetChangeListener(SetChangeListener<E> l)
Remove the specified set change listener. |
void |
removeVetoableSetChangeListener(VetoableSetChangeListener<E> l)
Remove the specified vetoable set change listener. |
protected void |
setSource(ObservableSet<E> source)
Set the source of set change and vetoable set change events to source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ObservableSetChangeSupport()
public ObservableSetChangeSupport(ObservableSet<E> source)
source - the event source| Method Detail |
|---|
protected void setSource(ObservableSet<E> source)
source. Subclasses should call this method before
any of the fireX methods.
source - the event sourceprotected final EventListenerList getEventListenerList()
EventListenerList backing this
observable set support class.
EventListenerList backing this
observable set support class.public final void addSetChangeListener(SetChangeListener<E> l)
l - set change listener to addpublic final void removeSetChangeListener(SetChangeListener<E> l)
l - set change listener to removepublic final void addVetoableSetChangeListener(VetoableSetChangeListener<E> l)
l - vetoable set change listener to addpublic final void removeVetoableSetChangeListener(VetoableSetChangeListener<E> l)
l - vetoable set change listener to removepublic final SetChangeListener<E>[] getSetChangeListeners()
SetChangeListeners, or
an empty array if none are registered.
SetChangeListeners, or
an empty array if none are registeredpublic final int getSetChangeListenerCount()
SetChangeListeners registered
to this observable set support class.
SetChangeListeners registered
to this observable set support classpublic final VetoableSetChangeListener<E>[] getVetoableSetChangeListeners()
VetoableSetChangeListeners,
or an empty array if none are registered.
VetoableSetChangeListeners,
or an empty array if none are registeredpublic final int getVetoableSetChangeListenerCount()
VetoableSetChangeListeners
registered to this observable set support class.
VetoableSetChangeListeners
registered to this observable set support class
public void fireSetWillChange()
throws SetChangeVetoException
VetoableSetChangeListeners.
SetChangeVetoException - if any of the listeners veto the change
public void fireSetWillChange(VetoableSetChangeEvent<E> e)
throws SetChangeVetoException
VetoableSetChangeListeners.
e - will change event
SetChangeVetoException - if any of the listeners veto the changepublic void fireSetChanged()
SetChangeListeners.
public void fireSetChanged(SetChangeEvent<E> e)
SetChangeListeners.
e - change event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||