|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.collection.ObservableListWrapper
public class ObservableListWrapper
| Field Summary | |
|---|---|
protected java.util.ArrayList |
listeners
the observers of this collection |
| Constructor Summary | |
|---|---|
ObservableListWrapper(java.util.List list)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
addCollectionListener(CollectionListener 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 e)
Fires a CollectionEvent to all listeners. |
java.lang.Object |
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)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeCollectionListener(CollectionListener l)
Removes a CollectionListener to the collection |
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object 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 listeners
| Constructor Detail |
|---|
public ObservableListWrapper(java.util.List list)
| Method Detail |
|---|
public void addCollectionListener(CollectionListener l)
ObservableCollection
addCollectionListener in interface ObservableCollectionl - public void removeCollectionListener(CollectionListener l)
ObservableCollection
removeCollectionListener in interface ObservableCollectionl - protected void fireCollectionEvent(CollectionEvent e)
e - the CollectionEventpublic java.lang.Object getObservedCollection()
getObservedCollection in interface ObservableCollection
public void add(int index,
java.lang.Object element)
add in interface java.util.Listindex - element - public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listo -
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.Listindex - c -
public boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.Listc -
public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listo -
public boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Listc -
public boolean equals(java.lang.Object obj)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.lang.Objectpublic java.lang.Object get(int index)
get in interface java.util.Listindex -
public int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.lang.Objectpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.Listo -
public boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Listpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.Listo -
public java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.Listindex -
public java.lang.Object remove(int index)
remove in interface java.util.Listindex -
public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listo -
public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Listc -
public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.Listc -
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listindex - element -
public int size()
size in interface java.util.Collectionsize in interface java.util.List
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListfromIndex - toIndex -
public java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Listpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.Lista -
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 | |||||||||