|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.AbstractQueueDecorator<E>
org.dishevelled.observable.AbstractObservableQueue<E>
org.dishevelled.observable.impl.ObservableQueueImpl<E>
E - queue element typepublic class ObservableQueueImpl<E>
Observable queue decorator that fires empty
vetoable queue change events in preXxx methods and
empty queue change events in postXxx methods.
Observable queue listeners may query the source of the events to determine
what may or may not have changed due to the event.
| Constructor Summary | |
|---|---|
ObservableQueueImpl(Queue<E> queue)
Create a new observable decorator for the specified queue. |
|
| Method Summary | |
|---|---|
protected void |
postAdd(E e)
Notify subclasses the add method has just been
called on the wrapped queue with the specified parameter. |
protected void |
postAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method has just been
called on the wrapped queue with the specified parameter. |
protected void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped queue. |
protected void |
postIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped queue's iterator. |
protected void |
postOffer(E e)
Notify subclasses the offer method has just been
called on the wrapped queue with the specified parameter. |
protected void |
postPoll()
Notify subclasses the poll method has just been
called on the wrapped queue. |
protected void |
postRemove(Object o)
Notify subclasses the remove method has just been
called on the wrapped queue with the specified parameter. |
protected void |
postRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method has just been
called on the wrapped queue with the specified parameter. |
protected void |
postRetainAll(Collection<?> coll)
Notify subclasses the retainAll method has just been
called on the wrapped queue with the specified parameter. |
protected boolean |
preAdd(E e)
Notify subclasses the add method is about to
be called on the wrapped queue with the specified parameter. |
protected boolean |
preAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method is about to
be called on the wrapped queue with the specified parameter. |
protected boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped queue. |
protected boolean |
preIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped queue's iterator. |
protected boolean |
preOffer(E e)
Notify subclasses the offer method is about to
be called on the wrapped queue with the specified parameter. |
protected boolean |
prePoll()
Notify subclasses the poll method is about to
be called on the wrapped queue. |
protected boolean |
preRemove(Object o)
Notify subclasses the remove method is about to
be called on the wrapped queue with the specified parameter. |
protected boolean |
preRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method is about to
be called on the wrapped queue with the specified parameter. |
protected boolean |
preRetainAll(Collection<?> coll)
Notify subclasses the retainAll method is about to
be called on the wrapped queue with the specified parameter. |
| Methods inherited from class org.dishevelled.observable.AbstractQueueDecorator |
|---|
contains, containsAll, element, equals, getQueue, hashCode, isEmpty, peek, remove, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Queue |
|---|
element, peek, remove |
| Methods inherited from interface java.util.Collection |
|---|
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
| Constructor Detail |
|---|
public ObservableQueueImpl(Queue<E> queue)
queue - queue to decorate, must not be null| Method Detail |
|---|
protected boolean preAdd(E e)
add method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preAdd in class AbstractObservableQueue<E>e - add method parameter
protected void postAdd(E e)
add method has just been
called on the wrapped queue with the specified parameter.
postAdd in class AbstractObservableQueue<E>e - add method parameterprotected boolean preAddAll(Collection<? extends E> coll)
addAll method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preAddAll in class AbstractObservableQueue<E>coll - addAll method parameter
protected void postAddAll(Collection<? extends E> coll)
addAll method has just been
called on the wrapped queue with the specified parameter.
postAddAll in class AbstractObservableQueue<E>coll - addAll method parameterprotected boolean preClear()
clear method is about to
be called on the wrapped queue.
Return true to proceed with the change.
preClear in class AbstractObservableQueue<E>protected void postClear()
clear method has just been
called on the wrapped queue.
postClear in class AbstractObservableQueue<E>protected boolean preRemove(Object o)
remove method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preRemove in class AbstractObservableQueue<E>o - remove method parameter
protected void postRemove(Object o)
remove method has just been
called on the wrapped queue with the specified parameter.
postRemove in class AbstractObservableQueue<E>o - remove method parameterprotected boolean preRemoveAll(Collection<?> coll)
removeAll method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preRemoveAll in class AbstractObservableQueue<E>coll - removeAll method parameter
protected void postRemoveAll(Collection<?> coll)
removeAll method has just been
called on the wrapped queue with the specified parameter.
postRemoveAll in class AbstractObservableQueue<E>coll - removeAll method parameterprotected boolean preRetainAll(Collection<?> coll)
retainAll method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preRetainAll in class AbstractObservableQueue<E>coll - retainAll method parameter
protected void postRetainAll(Collection<?> coll)
retainAll method has just been
called on the wrapped queue with the specified parameter.
postRetainAll in class AbstractObservableQueue<E>coll - retainAll method parameterprotected boolean preIteratorRemove()
remove method is about to
be called on the wrapped queue's iterator.
Return true to proceed with the change.
preIteratorRemove in class AbstractObservableQueue<E>protected void postIteratorRemove()
remove method has just been
called on the wrapped queue's iterator.
postIteratorRemove in class AbstractObservableQueue<E>protected boolean preOffer(E e)
offer method is about to
be called on the wrapped queue with the specified parameter.
Return true to proceed with the change.
preOffer in class AbstractObservableQueue<E>e - offer method parameter
protected void postOffer(E e)
offer method has just been
called on the wrapped queue with the specified parameter.
postOffer in class AbstractObservableQueue<E>e - offer method parameterprotected boolean prePoll()
poll method is about to
be called on the wrapped queue.
Return true to proceed with the change.
prePoll in class AbstractObservableQueue<E>protected void postPoll()
poll method has just been
called on the wrapped queue.
postPoll in class AbstractObservableQueue<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||