|
||||||||||
| 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>
E - list element typepublic abstract class AbstractObservableList<E>
Abstract implementation of an observable list
that decorates an instance of List.
| Nested Class Summary | |
|---|---|
protected class |
AbstractObservableList.ObservableSubList
Observable subList decorator. |
| Constructor Summary | |
|---|---|
protected |
AbstractObservableList(List<E> list)
Create a new abstract observable list that decorates the specified list. |
| Method Summary | |
|---|---|
boolean |
add(E e)
|
void |
add(int index,
E e)
|
boolean |
addAll(Collection<? extends E> coll)
|
boolean |
addAll(int index,
Collection<? extends E> coll)
|
void |
addListChangeListener(ListChangeListener<E> l)
Add the specified list change listener. |
void |
addVetoableListChangeListener(VetoableListChangeListener<E> l)
Add the specified vetoable list change listener. |
void |
clear()
|
void |
fireListChanged()
Fire a change event to all registered ListChangeListeners. |
void |
fireListChanged(ListChangeEvent<E> e)
Fire the specified change event to all registered ListChangeListeners. |
void |
fireListWillChange()
Fire a will change event to all registered VetoableListChangeListeners. |
void |
fireListWillChange(VetoableListChangeEvent<E> e)
Fire the specified will change event to all registered VetoableListChangeListeners. |
int |
getListChangeListenerCount()
Return the number of ListChangeListeners registered
to this observable list. |
ListChangeListener<E>[] |
getListChangeListeners()
Return an array of all ListChangeListeners, or
an empty array if none are registered. |
protected ObservableListChangeSupport<E> |
getObservableListChangeSupport()
Return the ObservableListChangeSupport
class backing this abstract observable list. |
int |
getVetoableListChangeListenerCount()
Return the number of VetoableListChangeListeners
registered to this observable list. |
VetoableListChangeListener<E>[] |
getVetoableListChangeListeners()
Return an array of all VetoableListChangeListeners,
or an empty array if none are registered. |
Iterator<E> |
iterator()
|
ListIterator<E> |
listIterator()
|
ListIterator<E> |
listIterator(int index)
|
protected abstract void |
postAdd(E e)
Notify subclasses the add method has just been
called on the wrapped list with the specified parameter. |
protected abstract void |
postAddAll(Collection<? extends E> coll)
Notify subclasses the addAll method has just been
called on the wrapped list with the specified parameter. |
protected abstract 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 abstract 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 abstract void |
postClear()
Notify subclasses the clear method has just been
called on the wrapped list. |
protected abstract void |
postIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped list's iterator. |
protected abstract void |
postListIteratorRemove()
Notify subclasses the remove method has just been
called on the wrapped list's list iterator. |
protected abstract void |
postListIteratorSet()
Notify subclasses the set method has just been
called on the wrapped list's list iterator. |
protected abstract void |
postRemove(Object o)
Notify subclasses the remove method has just been
called on the wrapped list with the specified parameter. |
protected abstract void |
postRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method has just been
called on the wrapped list with the specified parameter. |
protected abstract void |
postRemoveIndex(int index)
Notify subclasses the remove(int) method has just been
called on the wrapped list with the specified parameter. |
protected abstract void |
postRetainAll(Collection<?> coll)
Notify subclasses the retainAll method has just been
called on the wrapped list with the specified parameter. |
protected abstract void |
postSet(int index,
E e)
Notify subclasses the set method has just been
called on the wrapped list with the specified parameters. |
protected abstract boolean |
preAdd(E e)
Notify subclasses the add method is about to
be called on the wrapped list with the specified parameter. |
protected abstract 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 abstract 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 abstract 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 abstract boolean |
preClear()
Notify subclasses the clear method is about to
be called on the wrapped list. |
protected abstract boolean |
preIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped list's iterator. |
protected abstract boolean |
preListIteratorRemove()
Notify subclasses the remove method is about to
be called on the wrapped list's list iterator. |
protected abstract boolean |
preListIteratorSet()
Notify subclasses the set method is about to
be called on the wrapped list's list iterator. |
protected abstract boolean |
preRemove(Object o)
Notify subclasses the remove method is about to
be called on the wrapped list with the specified parameter. |
protected abstract boolean |
preRemoveAll(Collection<?> coll)
Notify subclasses the removeAll method is about to
be called on the wrapped list with the specified parameter. |
protected abstract boolean |
preRemoveIndex(int index)
Notify subclasses the remove(int) method is about to
be called on the wrapped list with the specified parameter. |
protected abstract boolean |
preRetainAll(Collection<?> coll)
Notify subclasses the retainAll method is about to
be called on the wrapped list with the specified parameter. |
protected abstract boolean |
preSet(int index,
E e)
Notify subclasses the set method is about to
be called on the wrapped list with the specified parameters. |
E |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> coll)
|
void |
removeListChangeListener(ListChangeListener<E> l)
Remove the specified list change listener. |
void |
removeVetoableListChangeListener(VetoableListChangeListener<E> l)
Remove the specified vetoable list change listener. |
boolean |
retainAll(Collection<?> coll)
|
E |
set(int index,
E e)
|
List<E> |
subList(int fromIndex,
int toIndex)
|
| 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 |
|---|
protected AbstractObservableList(List<E> list)
list - list to decorate| Method Detail |
|---|
protected final ObservableListChangeSupport<E> getObservableListChangeSupport()
ObservableListChangeSupport
class backing this abstract observable list.
ObservableListChangeSupport
class backing this abstract observable listpublic final void addListChangeListener(ListChangeListener<E> l)
addListChangeListener in interface ObservableList<E>l - list change listener to addpublic final void removeListChangeListener(ListChangeListener<E> l)
removeListChangeListener in interface ObservableList<E>l - list change listener to removepublic final void addVetoableListChangeListener(VetoableListChangeListener<E> l)
addVetoableListChangeListener in interface ObservableList<E>l - vetoable list change listener to addpublic final void removeVetoableListChangeListener(VetoableListChangeListener<E> l)
removeVetoableListChangeListener in interface ObservableList<E>l - vetoable list change listener to removepublic final ListChangeListener<E>[] getListChangeListeners()
ListChangeListeners, or
an empty array if none are registered.
getListChangeListeners in interface ObservableList<E>ListChangeListeners, or
an empty array if none are registeredpublic final int getListChangeListenerCount()
ListChangeListeners registered
to this observable list.
getListChangeListenerCount in interface ObservableList<E>ListChangeListeners registered
to this observable listpublic final VetoableListChangeListener<E>[] getVetoableListChangeListeners()
VetoableListChangeListeners,
or an empty array if none are registered.
getVetoableListChangeListeners in interface ObservableList<E>VetoableListChangeListeners,
or an empty array if none are registeredpublic final int getVetoableListChangeListenerCount()
VetoableListChangeListeners
registered to this observable list.
getVetoableListChangeListenerCount in interface ObservableList<E>VetoableListChangeListeners
registered to this observable list
public void fireListWillChange()
throws ListChangeVetoException
VetoableListChangeListeners.
ListChangeVetoException - if any of the listeners veto the change
public void fireListWillChange(VetoableListChangeEvent<E> e)
throws ListChangeVetoException
VetoableListChangeListeners.
e - will change event
ListChangeVetoException - if any of the listeners veto the changepublic void fireListChanged()
ListChangeListeners.
public void fireListChanged(ListChangeEvent<E> e)
ListChangeListeners.
e - change eventprotected abstract 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.
e - add method parameter
protected abstract void postAdd(E e)
add method has just been
called on the wrapped list with the specified parameter.
e - add method parameter
protected abstract 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.
index - add(int, E) method index parametere - add(int, E) method e parameter
protected abstract void postAddAtIndex(int index,
E e)
add(int, E) method has just been
called on the wrapped list with the specified parameters.
index - add(int, E) method index parametere - add(int, E) method e parameterprotected abstract 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.
coll - addAll method parameter
protected abstract void postAddAll(Collection<? extends E> coll)
addAll method has just been
called on the wrapped list with the specified parameter.
coll - addAll method parameter
protected abstract 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.
index - addAll(int, Collection) method index parametercoll - addAll(int, Collection) method coll parameter
protected abstract void postAddAllAtIndex(int index,
Collection<? extends E> coll)
addAll(int, Collection) method has just been
called on the wrapped list with the specified parameters.
index - addAll(int, Collection) method index parametercoll - addAll(int, Collection) method coll parameter
protected abstract 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.
index - set method index parametere - set method e parameter
protected abstract void postSet(int index,
E e)
set method has just been
called on the wrapped list with the specified parameters.
index - set method index parametere - set method e parameterprotected abstract boolean preClear()
clear method is about to
be called on the wrapped list.
Return true to proceed with the change.
protected abstract void postClear()
clear method has just been
called on the wrapped list.
protected abstract 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.
o - remove method parameter
protected abstract void postRemove(Object o)
remove method has just been
called on the wrapped list with the specified parameter.
o - remove method parameterprotected abstract 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.
index - remove(int) method parameter
protected abstract void postRemoveIndex(int index)
remove(int) method has just been
called on the wrapped list with the specified parameter.
index - remove(int) method parameterprotected abstract 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.
coll - removeAll method parameter
protected abstract void postRemoveAll(Collection<?> coll)
removeAll method has just been
called on the wrapped list with the specified parameter.
coll - removeAll method parameterprotected abstract 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.
coll - retainAll method parameter
protected abstract void postRetainAll(Collection<?> coll)
retainAll method has just been
called on the wrapped list with the specified parameter.
coll - retainAll method parameterprotected abstract boolean preIteratorRemove()
remove method is about to
be called on the wrapped list's iterator.
Return true to proceed with the change.
protected abstract void postIteratorRemove()
remove method has just been
called on the wrapped list's iterator.
protected abstract boolean preListIteratorRemove()
remove method is about to
be called on the wrapped list's list iterator.
Return true to proceed with the change.
protected abstract void postListIteratorRemove()
remove method has just been
called on the wrapped list's list iterator.
protected abstract boolean preListIteratorSet()
set method is about to
be called on the wrapped list's list iterator.
Return true to proceed with the change.
protected abstract void postListIteratorSet()
set method has just been
called on the wrapped list's list iterator.
public boolean add(E e)
add in interface Collection<E>add in interface List<E>add in class AbstractListDecorator<E>
public void add(int index,
E e)
add in interface List<E>add in class AbstractListDecorator<E>public boolean addAll(Collection<? extends E> coll)
addAll in interface Collection<E>addAll in interface List<E>addAll in class AbstractListDecorator<E>
public boolean addAll(int index,
Collection<? extends E> coll)
addAll in interface List<E>addAll in class AbstractListDecorator<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractListDecorator<E>public E remove(int index)
remove in interface List<E>remove in class AbstractListDecorator<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class AbstractListDecorator<E>public boolean removeAll(Collection<?> coll)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in class AbstractListDecorator<E>public boolean retainAll(Collection<?> coll)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in class AbstractListDecorator<E>
public E set(int index,
E e)
set in interface List<E>set in class AbstractListDecorator<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>iterator in class AbstractListDecorator<E>public ListIterator<E> listIterator()
listIterator in interface List<E>listIterator in class AbstractListDecorator<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>listIterator in class AbstractListDecorator<E>
public List<E> subList(int fromIndex,
int toIndex)
subList in interface List<E>subList in class AbstractListDecorator<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||