public abstract class AbstractModel
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractModel()
Creates a new AbstractModel, sans controller.
|
protected |
AbstractModel(AbstractController controller)
Creates a new AbstractModel.
|
Modifier and Type | Method and Description |
---|---|
AbstractController |
getController()
Gets the controller associated with this model.
|
abstract void |
handleAppEvent(AppEvent evt)
Allows the model to handle AppEvents.
|
void |
setController(AbstractController controller)
Sets the controller for this model.
|
protected AbstractModel()
protected AbstractModel(AbstractController controller)
controller
- The controller associated with this model.public void setController(AbstractController controller)
controller
- The controller to be associated with this model.public AbstractController getController()
public abstract void handleAppEvent(AppEvent evt)
evt
- The AppEvent to handle.