|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.AbstractListDecorator<E>
org.dishevelled.observable.AbstractObservableList<E>
org.dishevelled.observable.impl.ObservableListImpl<E>
E - list element typepublic class ObservableListImpl<E>
Observable list decorator that fires empty
vetoable list change events in preXxx methods and
empty list change events in postXxx methods.
Observable list listeners may query the source of the events to determine
what may or may not have changed due to the event.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.dishevelled.observable.AbstractObservableList |
|---|
AbstractObservableList.ObservableSubList |
| Constructor Summary | |
|---|---|
ObservableListImpl(List<E> list)
Create a new observable decorator for the specified list. |
|
| Method Summary | |
|---|---|
protected void |
postAdd(E e)
Notify subclasses the add method has just been
called on the wrapped list with the specified parameter. |
protected void |
postAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method has just been
called on the wrapped list with the specified parameter. |
protected void |
postAddAllAtIndex(int index,
Collection<? extends E> coll)
Notify subclasses the addAll(int, Collection) method has just been
called on the wrapped list with the specified parameters. |
protected void |
postAddAtIndex(int index,
E e)
Notify subclasses the add(int, E) method has just been
called on the wrapped list with the specified parameters. |
protected void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped list. |
protected void |
postIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped list's iterator. |
protected void |
postListIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped list's list iterator. |
protected void |
postListIteratorSet()
Notify subclasses the set method has just been
called on the wrapped list's list iterator. |
protected void |
postRemove(Object o)
Notify subclasses the remove method has just been
called on the wrapped list with the specified parameter. |
protected void |
postRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method has just been
called on the wrapped list with the specified parameter. |
protected void |
postRemoveIndex(int index)
Notify subclasses the remove(int) method has just been
called on the wrapped list with the specified parameter. |
protected void |
postRetainAll(Collection<?> coll)
Notify subclasses the retainAll method has just been
called on the wrapped list with the specified parameter. |
protected void |
postSet(int index,
E e)
Notify subclasses the set method has just been
called on the wrapped list with the specified parameters. |
protected boolean |
preAdd(E e)
Notify subclasses the add method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preAddAllAtIndex(int index,
Collection<? extends E> coll)
Notify subclasses the addAll(int, Collection) method is about to
be called on the wrapped list with the specified parameters. |
protected boolean |
preAddAtIndex(int index,
E e)
Notify subclasses the add(int, E) method is about to
be called on the wrapped list with the specified parameters. |
protected boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped list. |
protected boolean |
preIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped list's iterator. |
protected boolean |
preListIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped list's list iterator. |
protected boolean |
preListIteratorSet()
Notify subclasses the set method is about to
be called on the wrapped list's list iterator. |
protected boolean |
preRemove(Object o)
Notify subclasses the remove method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preRemoveIndex(int index)
Notify subclasses the remove(int) method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preRetainAll(Collection<?> coll)
Notify subclasses the retainAll method is about to
be called on the wrapped list with the specified parameter. |
protected boolean |
preSet(int index,
E e)
Notify subclasses the set method is about to
be called on the wrapped list with the specified parameters. |
| Methods inherited from class org.dishevelled.observable.AbstractObservableList |
|---|
add, add, addAll, addAll, addListChangeListener, addVetoableListChangeListener, clear, fireListChanged, fireListChanged, fireListWillChange, fireListWillChange, getListChangeListenerCount, getListChangeListeners, getObservableListChangeSupport, getVetoableListChangeListenerCount, getVetoableListChangeListeners, iterator, listIterator, listIterator, remove, remove, removeAll, removeListChangeListener, removeVetoableListChangeListener, retainAll, set, subList |
| Methods inherited from class org.dishevelled.observable.AbstractListDecorator |
|---|
contains, containsAll, equals, get, getList, hashCode, indexOf, isEmpty, lastIndexOf, 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.List |
|---|
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, size, toArray, toArray |
| Constructor Detail |
|---|
public ObservableListImpl(List<E> list)
list - list to decorate, must not be null| Method Detail |
|---|
protected boolean preAdd(E e)
add method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preAdd in class AbstractObservableList<E>e - add method parameter
protected void postAdd(E e)
add method has just been
called on the wrapped list with the specified parameter.
postAdd in class AbstractObservableList<E>e - add method parameter
protected boolean preAddAtIndex(int index,
E e)
add(int, E) method is about to
be called on the wrapped list with the specified parameters.
Return true to proceed with the change.
preAddAtIndex in class AbstractObservableList<E>index - add(int, E) method index parametere - add(int, E) method e parameter
protected void postAddAtIndex(int index,
E e)
add(int, E) method has just been
called on the wrapped list with the specified parameters.
postAddAtIndex in class AbstractObservableList<E>index - add(int, E) method index parametere - add(int, E) method e parameterprotected boolean preAddAll(Collection<? extends E> coll)
addAll method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preAddAll in class AbstractObservableList<E>coll - addAll method parameter
protected void postAddAll(Collection<? extends E> coll)
addAll method has just been
called on the wrapped list with the specified parameter.
postAddAll in class AbstractObservableList<E>coll - addAll method parameter
protected boolean preAddAllAtIndex(int index,
Collection<? extends E> coll)
addAll(int, Collection) method is about to
be called on the wrapped list with the specified parameters.
Return true to proceed with the change.
preAddAllAtIndex in class AbstractObservableList<E>index - addAll(int, Collection) method index parametercoll - addAll(int, Collection) method coll parameter
protected void postAddAllAtIndex(int index,
Collection<? extends E> coll)
addAll(int, Collection) method has just been
called on the wrapped list with the specified parameters.
postAddAllAtIndex in class AbstractObservableList<E>index - addAll(int, Collection) method index parametercoll - addAll(int, Collection) method coll parameter
protected boolean preSet(int index,
E e)
set method is about to
be called on the wrapped list with the specified parameters.
Return true to proceed with the change.
preSet in class AbstractObservableList<E>index - set method index parametere - set method e parameter
protected void postSet(int index,
E e)
set method has just been
called on the wrapped list with the specified parameters.
postSet in class AbstractObservableList<E>index - set method index parametere - set method e parameterprotected boolean preClear()
clear method is about to
be called on the wrapped list.
Return true to proceed with the change.
preClear in class AbstractObservableList<E>protected void postClear()
clear method has just been
called on the wrapped list.
postClear in class AbstractObservableList<E>protected boolean preRemoveIndex(int index)
remove(int) method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preRemoveIndex in class AbstractObservableList<E>index - remove(int) method parameter
protected void postRemoveIndex(int index)
remove(int) method has just been
called on the wrapped list with the specified parameter.
postRemoveIndex in class AbstractObservableList<E>index - remove(int) method parameterprotected boolean preRemove(Object o)
remove method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preRemove in class AbstractObservableList<E>o - remove method parameter
protected void postRemove(Object o)
remove method has just been
called on the wrapped list with the specified parameter.
postRemove in class AbstractObservableList<E>o - remove method parameterprotected boolean preRemoveAll(Collection<?> coll)
removeAll method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preRemoveAll in class AbstractObservableList<E>coll - removeAll method parameter
protected void postRemoveAll(Collection<?> coll)
removeAll method has just been
called on the wrapped list with the specified parameter.
postRemoveAll in class AbstractObservableList<E>coll - removeAll method parameterprotected boolean preRetainAll(Collection<?> coll)
retainAll method is about to
be called on the wrapped list with the specified parameter.
Return true to proceed with the change.
preRetainAll in class AbstractObservableList<E>coll - retainAll method parameter
protected void postRetainAll(Collection<?> coll)
retainAll method has just been
called on the wrapped list with the specified parameter.
postRetainAll in class AbstractObservableList<E>coll - retainAll method parameterprotected boolean preIteratorRemove()
remove method is about to
be called on the wrapped list's iterator.
Return true to proceed with the change.
preIteratorRemove in class AbstractObservableList<E>protected void postIteratorRemove()
remove method has just been
called on the wrapped list's iterator.
postIteratorRemove in class AbstractObservableList<E>protected boolean preListIteratorRemove()
remove method is about to
be called on the wrapped list's list iterator.
Return true to proceed with the change.
preListIteratorRemove in class AbstractObservableList<E>protected void postListIteratorRemove()
remove method has just been
called on the wrapped list's list iterator.
postListIteratorRemove in class AbstractObservableList<E>protected boolean preListIteratorSet()
set method is about to
be called on the wrapped list's list iterator.
Return true to proceed with the change.
preListIteratorSet in class AbstractObservableList<E>protected void postListIteratorSet()
set method has just been
called on the wrapped list's list iterator.
postListIteratorSet in class AbstractObservableList<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||