|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.AbstractSortedSetDecorator<E>
org.dishevelled.observable.AbstractObservableSortedSet<E>
E - sorted set element typepublic abstract class AbstractObservableSortedSet<E>
Abstract implementation of an observable sorted set
that decorates an instance of SortedSet.
| Constructor Summary | |
|---|---|
protected |
AbstractObservableSortedSet(SortedSet<E> sortedSet)
Create a new abstract observable sorted set that decorates the specified sorted set. |
| Method Summary | |
|---|---|
boolean |
add(E e)
|
boolean |
addAll(Collection<? extends E> coll)
|
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 |
clear()
|
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 ObservableSortedSetChangeSupport<E> |
getObservableSortedSetChangeSupport()
Return the ObservableSortedSetChangeSupport
class backing this abstract observable sorted set. |
int |
getSortedSetChangeListenerCount()
Return the number of SortedSetChangeListeners registered
to this observable sorted set. |
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. |
VetoableSortedSetChangeListener<E>[] |
getVetoableSortedSetChangeListeners()
Return an array of all VetoableSortedSetChangeListeners,
or an empty array if none are registered. |
Iterator<E> |
iterator()
|
protected abstract void |
postAdd(E e)
Notify subclasses the add method has just been
called on the wrapped sorted set with the specified parameter. |
protected abstract void |
postAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method has just been
called on the wrapped sorted set with the specified parameter. |
protected abstract void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped sorted set. |
protected abstract void |
postIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped sorted set's iterator. |
protected abstract void |
postRemove(Object o)
Notify subclasses the remove method has just been
called on the wrapped sorted set with the specified parameter. |
protected abstract void |
postRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method has just been
called on the wrapped sorted set with the specified parameter. |
protected abstract void |
postRetainAll(Collection<?> coll)
Notify subclasses the retainAll method has just been
called on the wrapped sorted set with the specified parameter. |
protected abstract boolean |
preAdd(E e)
Notify subclasses the add method is about to
be called on the wrapped sorted set with the specified parameter. |
protected abstract boolean |
preAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method is about to
be called on the wrapped sorted set with the specified parameter. |
protected abstract boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped sorted set. |
protected abstract boolean |
preIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped sorted set's iterator. |
protected abstract boolean |
preRemove(Object o)
Notify subclasses the remove method is about to
be called on the wrapped sorted set with the specified parameter. |
protected abstract boolean |
preRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method is about to
be called on the wrapped sorted set with the specified parameter. |
protected abstract boolean |
preRetainAll(Collection<?> coll)
Notify subclasses the retainAll method is about to
be called on the wrapped sorted set with the specified parameter. |
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> coll)
|
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. |
boolean |
retainAll(Collection<?> coll)
|
| Methods inherited from class org.dishevelled.observable.AbstractSortedSetDecorator |
|---|
comparator, contains, containsAll, equals, first, getSortedSet, hashCode, headSet, isEmpty, last, size, subSet, tailSet, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.SortedSet |
|---|
comparator, first, headSet, last, subSet, tailSet |
| Methods inherited from interface java.util.Set |
|---|
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
| Constructor Detail |
|---|
protected AbstractObservableSortedSet(SortedSet<E> sortedSet)
sortedSet - sorted set to decorate| Method Detail |
|---|
protected final ObservableSortedSetChangeSupport<E> getObservableSortedSetChangeSupport()
ObservableSortedSetChangeSupport
class backing this abstract observable sorted set.
ObservableSortedSetChangeSupport
class backing this abstract observable sorted setpublic final void addSortedSetChangeListener(SortedSetChangeListener<E> l)
addSortedSetChangeListener in interface ObservableSortedSet<E>l - sorted set change listener to addpublic final void removeSortedSetChangeListener(SortedSetChangeListener<E> l)
removeSortedSetChangeListener in interface ObservableSortedSet<E>l - sorted set change listener to removepublic final void addVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
addVetoableSortedSetChangeListener in interface ObservableSortedSet<E>l - vetoable sorted set change listener to addpublic final void removeVetoableSortedSetChangeListener(VetoableSortedSetChangeListener<E> l)
removeVetoableSortedSetChangeListener in interface ObservableSortedSet<E>l - vetoable sorted set change listener to removepublic final SortedSetChangeListener<E>[] getSortedSetChangeListeners()
SortedSetChangeListeners, or
an empty array if none are registered.
getSortedSetChangeListeners in interface ObservableSortedSet<E>SortedSetChangeListeners, or
an empty array if none are registeredpublic final int getSortedSetChangeListenerCount()
SortedSetChangeListeners registered
to this observable sorted set.
getSortedSetChangeListenerCount in interface ObservableSortedSet<E>SortedSetChangeListeners registered
to this observable sorted setpublic final VetoableSortedSetChangeListener<E>[] getVetoableSortedSetChangeListeners()
VetoableSortedSetChangeListeners,
or an empty array if none are registered.
getVetoableSortedSetChangeListeners in interface ObservableSortedSet<E>VetoableSortedSetChangeListeners,
or an empty array if none are registeredpublic final int getVetoableSortedSetChangeListenerCount()
VetoableSortedSetChangeListeners
registered to this observable sorted set.
getVetoableSortedSetChangeListenerCount in interface ObservableSortedSet<E>VetoableSortedSetChangeListeners
registered to this observable sorted set
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 eventprotected abstract boolean preAdd(E e)
add method is about to
be called on the wrapped sorted set with the specified parameter.
Return true to proceed with the change.
e - add method parameter
protected abstract void postAdd(E e)
add method has just been
called on the wrapped sorted set with the specified parameter.
e - add method parameterprotected abstract boolean preAddAll(Collection<? extends E> coll)
addAll method is about to
be called on the wrapped sorted set with the specified parameter.
Return true to proceed with the change.
coll - addAll method parameter
protected abstract void postAddAll(Collection<? extends E> coll)
addAll method has just been
called on the wrapped sorted set with the specified parameter.
coll - addAll method parameterprotected abstract boolean preClear()
clear method is about to
be called on the wrapped sorted set.
Return true to proceed with the change.
protected abstract void postClear()
clear method has just been
called on the wrapped sorted set.
protected abstract boolean preRemove(Object o)
remove method is about to
be called on the wrapped sorted set with the specified parameter.
Return true to proceed with the change.
o - remove method parameter
protected abstract void postRemove(Object o)
remove method has just been
called on the wrapped sorted set with the specified parameter.
o - remove method parameterprotected abstract boolean preRemoveAll(Collection<?> coll)
removeAll method is about to
be called on the wrapped sorted set with the specified parameter.
Return true to proceed with the change.
coll - removeAll method parameter
protected abstract void postRemoveAll(Collection<?> coll)
removeAll method has just been
called on the wrapped sorted set with the specified parameter.
coll - removeAll method parameterprotected abstract boolean preRetainAll(Collection<?> coll)
retainAll method is about to
be called on the wrapped sorted set with the specified parameter.
Return true to proceed with the change.
coll - retainAll method parameter
protected abstract void postRetainAll(Collection<?> coll)
retainAll method has just been
called on the wrapped sorted set with the specified parameter.
coll - retainAll method parameterprotected abstract boolean preIteratorRemove()
remove method is about to
be called on the wrapped sorted set's iterator.
Return true to proceed with the change.
protected abstract void postIteratorRemove()
remove method has just been
called on the wrapped sorted set's iterator.
public boolean add(E e)
add in interface Collection<E>add in interface Set<E>add in class AbstractSortedSetDecorator<E>public boolean addAll(Collection<? extends E> coll)
addAll in interface Collection<E>addAll in interface Set<E>addAll in class AbstractSortedSetDecorator<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>clear in class AbstractSortedSetDecorator<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>iterator in class AbstractSortedSetDecorator<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>remove in class AbstractSortedSetDecorator<E>public boolean removeAll(Collection<?> coll)
removeAll in interface Collection<E>removeAll in interface Set<E>removeAll in class AbstractSortedSetDecorator<E>public boolean retainAll(Collection<?> coll)
retainAll in interface Collection<E>retainAll in interface Set<E>retainAll in class AbstractSortedSetDecorator<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||