public class ModelEvent<E>
extends java.lang.Object
It contains information about what happened, the item that triggered the event and the item the event impacted (i.e. the list).
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD
An item is added to the collection.
|
static int |
CLEAR
The collection is cleared.
|
static int |
REMOVE
An item is removed from the collection.
|
E |
source
The item that triggered the event.
|
EventedModelList |
target
The object where the event is originated.
|
int |
what
|
| Constructor and Description |
|---|
ModelEvent(int what,
E source,
EventedModelList target,
Model notifiers)
Instantiates a new Event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
trigger()
Notifies parents observers
|
public static final int ADD
public static final int REMOVE
public static final int CLEAR
public int what
public E source
public EventedModelList target
public ModelEvent(int what,
E source,
EventedModelList target,
Model notifiers)