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