java.lang.Object | |
↳ | fm.audiobox.core.models.collections.ModelEvent<E> |
This is the wrapper object sent to the observers.
It contains information about what happened, the item that triggered the event and the item the event impacted (i.e. the list).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ADD | An item is added to the collection. | |||||||||
int | CLEAR | The collection is cleared. | |||||||||
int | REMOVE | An item is removed from the collection. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public E | source | The item that triggered the event. | |||||||||
public EventedModelList | target | The object where the event is originated. | |||||||||
public int | what | The type of the event (see ADD , REMOVE and CLEAR ). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ModelEvent(int what, E source, EventedModelList target, Model notifiers)
Instantiates a new Event.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
trigger()
Notifies parents observers
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
An item is added to the collection.
The collection is cleared.
An item is removed from the collection.
The item that triggered the event.
Notifies parents observers