|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable portaview.model.ObservableCollection
Generic collection class that can be observed. One needs to use this class if there is a collection of items that they want to observe when added or removed from this collection.
Constructor Summary | |
ObservableCollection()
|
Method Summary | |
void |
add(java.lang.Object obj)
Adds an object to this collection. |
void |
addAll(ObservableCollection col)
Add all the element in col to this collecion. |
void |
clear()
Clear the collection. |
java.util.Iterator |
iterator()
Returns the iterator for this collection. |
void |
notifyChange()
Can be called externally to change notify the observers of the observables. |
void |
notifyChildrenObservers()
Notify the children's observers. |
void |
remove(java.lang.Object obj)
Removes an object and notify the observing observers. |
int |
size()
Returns the size of this collection. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObservableCollection()
Method Detail |
public java.util.Iterator iterator()
public void clear()
public void notifyChange()
public void notifyChildrenObservers()
public void addAll(ObservableCollection col)
col
- collection to add to this collection.public int size()
public void remove(java.lang.Object obj)
obj
- object within this collection to remove.public void add(java.lang.Object obj)
obj
- object to add.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |