|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.ui.common.base.EodispController
public abstract class EodispController
The EodispController is the base class for all controllers (except the application controller) for this application. All generic (i.e. not application specific) behaviour of a controller should go here.
Every specific controller in the EODiSP framework should sub-class this class.
Constructor Summary | |
---|---|
EodispController()
Default constructor. |
Method Summary | |
---|---|
void |
attachView(EodispView view)
Adds a newly created view to the list of views for this application. |
abstract EodispView |
createDynamicView(int id)
The controllers that implements this method and is responsible for creating the View with the given ID should create and return it. |
protected abstract void |
createStaticViews()
Creates all static views which this controller handles. |
void |
detachView(EodispView view)
Detaches one specific view from the application. |
java.util.Collection<? extends EodispView> |
getViews()
Returns all views which are handled by this controller. |
protected void |
initialize()
Initializes the controller. |
abstract boolean |
isControllerForView(int id)
Returns whether this controller is responsible for creating the view with the given ID. |
protected abstract void |
registerActionHandler()
Register this controller as a target handler for certain actions used within the EODiSP simulation manager application. |
protected void |
updateOwnedModels()
|
protected void |
updateOwnedViewStates()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EodispController()
Method Detail |
---|
protected abstract void registerActionHandler()
For the registration, the EODiSP delegation mechanism is used (see
EodispDelegate
. Such an instance can be registered in the action
itself, causing the method to be called whenever the action is performed.
protected abstract void createStaticViews()
public abstract boolean isControllerForView(int id)
id
- The static ID of the view in question.
public abstract EodispView createDynamicView(int id)
The view will be managed automatically after that.
id
- The static Id of the view which should be created.
public java.util.Collection<? extends EodispView> getViews()
EodispView
's.
It returns an empty collection if no views are currently handled
by this controller.
An empty collection does not indicate that this controller does not handle any views, since it might handle dynamically created views.
public void attachView(EodispView view)
frame
- The frame that has been created for this application.public void detachView(EodispView view)
frame
- The frame to remove from the list of attached frames.protected void initialize()
protected void updateOwnedViewStates()
protected void updateOwnedModels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |