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