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