|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.collection.ObservableListWrapper<T>
public class ObservableListWrapper<T>
| Field Summary | |
|---|---|
protected java.util.ArrayList<CollectionListener<T>> |
listeners
the observers of this collection |
| Constructor Summary | |
|---|---|
ObservableListWrapper(java.util.List<T> list)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
T element)
|
boolean |
add(T o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
addCollectionListener(CollectionListener<T> l)
Adds a CollectionListener to the collection |
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection<?> c)
|
boolean |
equals(java.lang.Object obj)
|
protected void |
fireCollectionEvent(CollectionEvent<T> e)
Fires a CollectionEvent to all listeners. |
T |
get(int index)
|
java.lang.Object |
getObservedCollection()
To access the collection that is being observed. |
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
static void |
main(java.lang.String[] args)
|
T |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeCollectionListener(CollectionListener<T> l)
Removes a CollectionListener to the collection |
boolean |
retainAll(java.util.Collection c)
|
T |
set(int index,
T element)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<CollectionListener<T>> listeners
| Constructor Detail |
|---|
public ObservableListWrapper(java.util.List<T> list)
| Method Detail |
|---|
public void addCollectionListener(CollectionListener<T> l)
ObservableCollection
addCollectionListener in interface ObservableCollection<T>l - public void removeCollectionListener(CollectionListener<T> l)
ObservableCollection
removeCollectionListener in interface ObservableCollection<T>l - protected void fireCollectionEvent(CollectionEvent<T> e)
e - the CollectionEventpublic java.lang.Object getObservedCollection()
getObservedCollection in interface ObservableCollection<T>
public void add(int index,
T element)
add in interface java.util.List<T>index - element - public boolean add(T o)
add in interface java.util.Collection<T>add in interface java.util.List<T>o -
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.List<T>index - c -
public boolean addAll(java.util.Collection c)
addAll in interface java.util.Collection<T>addAll in interface java.util.List<T>c -
public void clear()
clear in interface java.util.Collection<T>clear in interface java.util.List<T>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>contains in interface java.util.List<T>o -
public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>containsAll in interface java.util.List<T>c -
public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<T>equals in interface java.util.List<T>equals in class java.lang.Objectpublic T get(int index)
get in interface java.util.List<T>index -
public int hashCode()
hashCode in interface java.util.Collection<T>hashCode in interface java.util.List<T>hashCode in class java.lang.Objectpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>o -
public boolean isEmpty()
isEmpty in interface java.util.Collection<T>isEmpty in interface java.util.List<T>public java.util.Iterator iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.List<T>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>o -
public java.util.ListIterator listIterator()
listIterator in interface java.util.List<T>public java.util.ListIterator listIterator(int index)
listIterator in interface java.util.List<T>index -
public T remove(int index)
remove in interface java.util.List<T>index -
public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>remove in interface java.util.List<T>o -
public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collection<T>removeAll in interface java.util.List<T>c -
public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collection<T>retainAll in interface java.util.List<T>c -
public T set(int index,
T element)
set in interface java.util.List<T>index - element -
public int size()
size in interface java.util.Collection<T>size in interface java.util.List<T>
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.List<T>fromIndex - toIndex -
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>toArray in interface java.util.List<T>public java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collection<T>toArray in interface java.util.List<T>a -
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||