Modifier and Type | Class and Description |
---|---|
static interface |
ModelEvent.Listener
A listener for ModelEvents.
|
static class |
ModelEvent.Type
Types of ModelEvents
|
Constructor and Description |
---|
ModelEvent(ModelEvent.Type type,
Model model,
Kernel kernel)
Constructs a new ModelEvent with associated properties.
|
public ModelEvent(ModelEvent.Type type, Model model, Kernel kernel)
type
- the Type of the new eventmodel
- the Model for which the event occurredkernel
- the Kernel related to the eventpublic ModelEvent.Type getType()
public Model getModel()
public Kernel getKernel()