|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eodisp.ui.common.base.EodispApplicationController
org.eodisp.ui.sm.controllers.SMAppController
public class SMAppController
This is the application controller for the EODiSP simulation 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 SimulationManagerAppController extends the more generic
EodispApplicationController and is only useful to handle the
specific part for the simulation manager application. All generic tasks are
handled and documented in the EodispApplicationController
class.
| 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 | |
|---|---|
SMAppController()
Default constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
canExit()
Checks in all currently active frames if there is a model which has been changed and therefore needs to save before exiting. |
protected void |
createControllers()
This constructs all frames included in the application. |
protected void |
createInitialLayout()
This method can be used by sub-classes to create an initial layout. |
protected EodispMainFrame |
createMainFrame()
Creates the main frame of the application. |
org.eclipse.emf.ecore.sdo.EDataObject |
getCurrentExperiment()
|
void |
initialize()
Initialization of the application controller. |
void |
onAbout(java.awt.event.ActionEvent e)
|
void |
onConnectRepos(java.awt.event.ActionEvent e)
|
void |
onDeleteExperiment(java.awt.event.ActionEvent e)
|
void |
onExitApp(java.awt.event.ActionEvent e)
|
void |
onHelp(java.awt.event.ActionEvent e)
|
void |
onNewExperiment(java.awt.event.ActionEvent e)
|
void |
onOpenExperiment(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, 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 |
|---|
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public SMAppController()
| Method Detail |
|---|
public void initialize()
initialize in class EodispApplicationControllerpublic void registerActionHandler()
EodispApplicationController
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.
registerActionHandler in class EodispApplicationControllerpublic void onSaveAll(java.awt.event.ActionEvent e)
public void onExitApp(java.awt.event.ActionEvent e)
public void onAbout(java.awt.event.ActionEvent e)
public void onHelp(java.awt.event.ActionEvent e)
public void onConnectRepos(java.awt.event.ActionEvent e)
public void onReloadRepos(java.awt.event.ActionEvent e)
public void onRegisterApp(java.awt.event.ActionEvent e)
public void onUpdateRegistration(java.awt.event.ActionEvent e)
public void onUnregisterApp(java.awt.event.ActionEvent e)
public void onOpenExperiment(java.awt.event.ActionEvent e)
public void onNewExperiment(java.awt.event.ActionEvent e)
public void onDeleteExperiment(java.awt.event.ActionEvent e)
public void onPrefs(java.awt.event.ActionEvent e)
protected void createControllers()
createControllers in class EodispApplicationControllerprotected EodispMainFrame createMainFrame()
createMainFrame in class EodispApplicationControllerprotected void createInitialLayout()
You do not need to call super().
createInitialLayout in class EodispApplicationControllerpublic org.eclipse.emf.ecore.sdo.EDataObject getCurrentExperiment()
protected boolean canExit()
The method checks if the view and a model exists.
canExit in class EodispApplicationController
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||