org.eodisp.ui.mm.controllers
Class MmAppController

java.lang.Object
  extended by org.eodisp.ui.common.base.EodispApplicationController
      extended by org.eodisp.ui.mm.controllers.MmAppController

public class MmAppController
extends EodispApplicationController

This is the application controller for the EODiSP model manager application. It is the main controller, which has control over the creation of other controllers. It is therfore the controller of the application which must exist in order to run the application.

Specific tasks which this controller is responsible for are:

The MmAppController extends the more generic EodispApplicationController and is only useful to handle the specific part for the model manager application. All generic tasks are handled and documented in the EodispApplicationController class.

Author:
eglimi

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Fields inherited from class org.eodisp.ui.common.base.EodispApplicationController
rootWindow, viewMap
 
Constructor Summary
MmAppController()
          Default constructor.
 
Method Summary
protected  void createControllers()
          This constructs all frames included in the application.
protected  EodispMainFrame createMainFrame()
          Creates the main frame of the application.
 void initialize()
          Initialization of the application controller.
 void onAbout(java.awt.event.ActionEvent e)
           
 void onConnectRepos(java.awt.event.ActionEvent e)
           
 void onExitApp(java.awt.event.ActionEvent e)
           
 void onHelp(java.awt.event.ActionEvent e)
           
 void onImportFederate(java.awt.event.ActionEvent e)
           
 void onPrefs(java.awt.event.ActionEvent e)
           
 void onRegisterApp(java.awt.event.ActionEvent e)
           
 void onReloadRepos(java.awt.event.ActionEvent e)
           
 void onSaveAll(java.awt.event.ActionEvent e)
           
 void onUnregisterApp(java.awt.event.ActionEvent e)
           
 void onUpdateRegistration(java.awt.event.ActionEvent e)
           
 void registerActionHandler()
          Register this class as a target handler for certain actions used within the EODiSP simulation manager application.
 
Methods inherited from class org.eodisp.ui.common.base.EodispApplicationController
attachController, canExit, createInitialLayout, createRootWindow, detachAllControllers, detachController, getChangedViewNames, getMainFrame, getRootWindow, handleExit, hasAppChanges, saveAllChanges, saveLayout, showDynamicView, updateAllActions, updateAllModels, updateAllViewStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Log4J logger for this class

Constructor Detail

MmAppController

public MmAppController()
Default constructor.

Method Detail

initialize

public void initialize()
Initialization of the application controller. This initialization sequence can be override by subclasses.

Overrides:
initialize in class EodispApplicationController

registerActionHandler

public void registerActionHandler()
Description copied from class: EodispApplicationController
Register this class as a target handler for certain actions used within the EODiSP simulation manager application.

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.

Specified by:
registerActionHandler in class EodispApplicationController

onSaveAll

public void onSaveAll(java.awt.event.ActionEvent e)

onExitApp

public void onExitApp(java.awt.event.ActionEvent e)

onAbout

public void onAbout(java.awt.event.ActionEvent e)

onHelp

public void onHelp(java.awt.event.ActionEvent e)

onConnectRepos

public void onConnectRepos(java.awt.event.ActionEvent e)

onReloadRepos

public void onReloadRepos(java.awt.event.ActionEvent e)

onRegisterApp

public void onRegisterApp(java.awt.event.ActionEvent e)

onUpdateRegistration

public void onUpdateRegistration(java.awt.event.ActionEvent e)

onUnregisterApp

public void onUnregisterApp(java.awt.event.ActionEvent e)

onImportFederate

public void onImportFederate(java.awt.event.ActionEvent e)

onPrefs

public void onPrefs(java.awt.event.ActionEvent e)

createControllers

protected void createControllers()
This constructs all frames included in the application. It must be implemented by the specific application main controller.

Specified by:
createControllers in class EodispApplicationController

createMainFrame

protected EodispMainFrame createMainFrame()
Creates the main frame of the application. This method must be implemented by a concrete application controller for each application.

Specified by:
createMainFrame in class EodispApplicationController
Returns:
The main frame of this application.