E - collection element typepublic class ObservableCollectionImpl<E> extends AbstractObservableCollection<E>
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 and Description |
|---|
ObservableCollectionImpl(Collection<E> collection)
Create a new observable decorator for the specified
collection.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
add, addAll, addCollectionChangeListener, addVetoableCollectionChangeListener, clear, fireCollectionChanged, fireCollectionChanged, fireCollectionWillChange, fireCollectionWillChange, getCollectionChangeListenerCount, getCollectionChangeListeners, getObservableCollectionChangeSupport, getVetoableCollectionChangeListenerCount, getVetoableCollectionChangeListeners, iterator, remove, removeAll, removeCollectionChangeListener, removeVetoableCollectionChangeListener, retainAllcontains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArrayclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, size, toArray, toArraypublic ObservableCollectionImpl(Collection<E> collection)
collection - collection to decorate, must not be nullprotected 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 parameterprotected 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 parameterprotected 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 parameterprotected 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 parameterprotected 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 parameterprotected 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>Copyright (c) 2003-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).