T
- the Type held in the listpublic class ObservableList<T>
extends java.lang.Object
Constructor and Description |
---|
ObservableList() |
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
Add a T to the list
|
Observable<T> |
addedEvent()
A T was added - arg1 will hold the T concerned
This event does not fire when the entire list is changed
|
void |
clearList(boolean raiseRemovedEvents)
Clear the list - mRemovedEvent can be optionally fired for each T removed
|
java.util.ArrayList<T> |
list() |
void |
modified(T item)
Register that the given T from the list has been modified
|
Observable<T> |
modifiedEvent()
A T was updated - arg1 will hold the T concerned
This event does not fire when the entire list is changed
|
void |
remove(T item)
Remove a T from the list
|
Observable<T> |
removedEvent()
A T was removed - arg1 will hold the T concerned
This event does not fire when the entire list is changed
|
void |
setList(java.util.ArrayList<T> list) |
public java.util.ArrayList<T> list()
public void setList(java.util.ArrayList<T> list)
public Observable<T> addedEvent()
public Observable<T> removedEvent()
public Observable<T> modifiedEvent()
public void clearList(boolean raiseRemovedEvents)
raiseRemovedEvents
- when true removedEvent() fires for each item removedpublic void add(T item)
item
- the T to addpublic void remove(T item)
item
- the T to removepublic void modified(T item)
item
- the T that has been updated