|
||||||||||
| 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>
org.dishevelled.observable.impl.ObservableSortedSetImpl<E>
E - sorted set element typepublic class ObservableSortedSetImpl<E>
Observable sorted set decorator that fires empty
vetoable sorted set change events in preXxx methods and
empty sorted set change events in postXxx methods.
Observable sorted set listeners may query the source of the events to determine
what may or may not have changed due to the event.
| Constructor Summary | |
|---|---|
ObservableSortedSetImpl(SortedSet<E> sortedSet)
Create a new observable decorator for the specified sorted set. |
|
| Method Summary | |
|---|---|
protected void |
postAdd(E e)
Notify subclasses the add method has just been
called on the wrapped sorted set with the specified parameter. |
protected 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 void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped sorted set. |
protected void |
postIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped sorted set's iterator. |
protected void |
postRemove(Object o)
Notify subclasses the remove method has just been
called on the wrapped sorted set with the specified parameter. |
protected void |
postRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method has just been
called on the wrapped sorted set with the specified parameter. |
protected void |
postRetainAll(Collection<?> coll)
Notify subclasses the retainAll method has just been
called on the wrapped sorted set with the specified parameter. |
protected boolean |
preAdd(E e)
Notify subclasses the add method is about to
be called on the wrapped sorted set with the specified parameter. |
protected 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 boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped sorted set. |
protected boolean |
preIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped sorted set's iterator. |
protected boolean |
preRemove(Object o)
Notify subclasses the remove method is about to
be called on the wrapped sorted set with the specified parameter. |
protected boolean |
preRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method is about to
be called on the wrapped sorted set with the specified parameter. |
protected boolean |
preRetainAll(Collection<?> coll)
Notify subclasses the retainAll method is about to
be called on the wrapped sorted set with the specified parameter. |
| 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 |
|---|
public ObservableSortedSetImpl(SortedSet<E> sortedSet)
sortedSet - sorted set to decorate, must not be null| Method Detail |
|---|
protected 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.
preAdd in class AbstractObservableSortedSet<E>e - add method parameter
protected void postAdd(E e)
add method has just been
called on the wrapped sorted set with the specified parameter.
postAdd in class AbstractObservableSortedSet<E>e - add method parameterprotected 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.
preAddAll in class AbstractObservableSortedSet<E>coll - addAll method parameter
protected void postAddAll(Collection<? extends E> coll)
addAll method has just been
called on the wrapped sorted set with the specified parameter.
postAddAll in class AbstractObservableSortedSet<E>coll - addAll method parameterprotected boolean preClear()
clear method is about to
be called on the wrapped sorted set.
Return true to proceed with the change.
preClear in class AbstractObservableSortedSet<E>protected void postClear()
clear method has just been
called on the wrapped sorted set.
postClear in class AbstractObservableSortedSet<E>protected 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.
preRemove in class AbstractObservableSortedSet<E>o - remove method parameter
protected void postRemove(Object o)
remove method has just been
called on the wrapped sorted set with the specified parameter.
postRemove in class AbstractObservableSortedSet<E>o - remove method parameterprotected 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.
preRemoveAll in class AbstractObservableSortedSet<E>coll - removeAll method parameter
protected void postRemoveAll(Collection<?> coll)
removeAll method has just been
called on the wrapped sorted set with the specified parameter.
postRemoveAll in class AbstractObservableSortedSet<E>coll - removeAll method parameterprotected 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.
preRetainAll in class AbstractObservableSortedSet<E>coll - retainAll method parameter
protected void postRetainAll(Collection<?> coll)
retainAll method has just been
called on the wrapped sorted set with the specified parameter.
postRetainAll in class AbstractObservableSortedSet<E>coll - retainAll method parameterprotected boolean preIteratorRemove()
remove method is about to
be called on the wrapped sorted set's iterator.
Return true to proceed with the change.
preIteratorRemove in class AbstractObservableSortedSet<E>protected void postIteratorRemove()
remove method has just been
called on the wrapped sorted set's iterator.
postIteratorRemove in class AbstractObservableSortedSet<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||