|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.event.ObservableSortedSetChangeSupport<E>
E - sorted set element typepublic class ObservableSortedSetChangeSupport<E>
A support class that can be used via delegation to provide
SortedSetChangeListener and VetoableSortedSetChangeListener
management.
| Constructor Summary | |
|---|---|
protected |
ObservableSortedSetChangeSupport()
Create a new support class meant to be subclassed. |
|
ObservableSortedSetChangeSupport(ObservableSortedSet<E> source)
Create a new support class that fires sorted set change and vetoable sorted set change events with the specified source as the source of the events. |
| Method Summary | |
|---|---|
void |
addSortedSetChangeListener(SortedSetChangeListener<E> l)
Add the specified sorted set change listener. |
void |
addVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
Add the specified vetoable sorted set change listener. |
void |
fireSortedSetChanged()
Fire a change event to all registered SortedSetChangeListeners. |
void |
fireSortedSetChanged(SortedSetChangeEvent<E> e)
Fire the specified change event to all registered SortedSetChangeListeners. |
void |
fireSortedSetWillChange()
Fire a will change event to all registered VetoableSortedSetChangeListeners. |
void |
fireSortedSetWillChange(VetoableSortedSetChangeEvent<E> e)
Fire the specified will change event to all registered VetoableSortedSetChangeListeners. |
protected EventListenerList |
getEventListenerList()
Return the EventListenerList backing this
observable sorted set support class. |
int |
getSortedSetChangeListenerCount()
Return the number of SortedSetChangeListeners registered
to this observable sorted set support class. |
SortedSetChangeListener<E>[] |
getSortedSetChangeListeners()
Return an array of all SortedSetChangeListeners, or
an empty array if none are registered. |
int |
getVetoableSortedSetChangeListenerCount()
Return the number of VetoableSortedSetChangeListeners
registered to this observable sorted set support class. |
VetoableSortedSetChangeListener<E>[] |
getVetoableSortedSetChangeListeners()
Return an array of all VetoableSortedSetChangeListeners,
or an empty array if none are registered. |
void |
removeSortedSetChangeListener(SortedSetChangeListener<E> l)
Remove the specified sorted set change listener. |
void |
removeVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
Remove the specified vetoable sorted set change listener. |
protected void |
setSource(ObservableSortedSet<E> source)
Set the source of sorted set change and vetoable sorted 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 ObservableSortedSetChangeSupport()
public ObservableSortedSetChangeSupport(ObservableSortedSet<E> source)
source - the event source| Method Detail |
|---|
protected void setSource(ObservableSortedSet<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 sorted set support class.
EventListenerList backing this
observable sorted set support class.public final void addSortedSetChangeListener(SortedSetChangeListener<E> l)
l - sorted set change listener to addpublic final void removeSortedSetChangeListener(SortedSetChangeListener<E> l)
l - sorted set change listener to removepublic final void addVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
l - vetoable sorted set change listener to addpublic final void removeVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
l - vetoable sorted set change listener to removepublic final SortedSetChangeListener<E>[] getSortedSetChangeListeners()
SortedSetChangeListeners, or
an empty array if none are registered.
SortedSetChangeListeners, or
an empty array if none are registeredpublic final int getSortedSetChangeListenerCount()
SortedSetChangeListeners registered
to this observable sorted set support class.
SortedSetChangeListeners registered
to this observable sorted set support classpublic final VetoableSortedSetChangeListener<E>[] getVetoableSortedSetChangeListeners()
VetoableSortedSetChangeListeners,
or an empty array if none are registered.
VetoableSortedSetChangeListeners,
or an empty array if none are registeredpublic final int getVetoableSortedSetChangeListenerCount()
VetoableSortedSetChangeListeners
registered to this observable sorted set support class.
VetoableSortedSetChangeListeners
registered to this observable sorted set support class
public void fireSortedSetWillChange()
throws SortedSetChangeVetoException
VetoableSortedSetChangeListeners.
SortedSetChangeVetoException - if any of the listeners veto the change
public void fireSortedSetWillChange(VetoableSortedSetChangeEvent<E> e)
throws SortedSetChangeVetoException
VetoableSortedSetChangeListeners.
e - will change event
SortedSetChangeVetoException - if any of the listeners veto the changepublic void fireSortedSetChanged()
SortedSetChangeListeners.
public void fireSortedSetChanged(SortedSetChangeEvent<E> e)
SortedSetChangeListeners.
e - change event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||