org.eodisp.ui.sm.controllers
Class SMTreeController

java.lang.Object
  extended by org.eodisp.ui.common.base.EodispController
      extended by org.eodisp.ui.sm.controllers.SMTreeController

public class SMTreeController
extends EodispController

Author:
eglimi

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
SMTreeController()
          Default constructor.
 
Method Summary
 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  void createStaticViews()
          Creates all static views which this controller handles.
protected  void initialize()
          Initializes the controller.
 boolean isControllerForView(int id)
          Returns whether this controller is responsible for creating the view with the given ID.
 void onAddFederateExecution(java.awt.event.ActionEvent e)
           
 void onAddFederationExecution(java.awt.event.ActionEvent e)
           
 void onAddInitData(java.awt.event.ActionEvent e)
           
 void onDeleteSelection(java.awt.event.ActionEvent e)
           
 void onExperimentKill(java.awt.event.ActionEvent e)
           
 void onExperimentPause(java.awt.event.ActionEvent e)
           
 void onExperimentPrepare(java.awt.event.ActionEvent e)
           
 void onExperimentReset(java.awt.event.ActionEvent e)
           
 void onExperimentResume(java.awt.event.ActionEvent e)
           
 void onExperimentStart(java.awt.event.ActionEvent e)
           
 void onNextStep(java.awt.event.ActionEvent e)
           
 void onShowInfo(java.awt.event.ActionEvent e)
           
protected  void registerActionHandler()
          Register this controller as a target handler for certain actions used within the EODiSP simulation manager application.
 
Methods inherited from class org.eodisp.ui.common.base.EodispController
attachView, detachView, getViews, updateOwnedModels, updateOwnedViewStates
 
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

SMTreeController

public SMTreeController()
Default constructor.

Method Detail

initialize

protected void initialize()
Initializes the controller. This should created the model connected to this controller as well as all frames and views.

Overrides:
initialize in class EodispController

registerActionHandler

protected void registerActionHandler()
Register this controller 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 EodispController

onAddFederationExecution

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

onAddFederateExecution

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

onAddInitData

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

onDeleteSelection

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

onShowInfo

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

onExperimentPrepare

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

onExperimentStart

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

onExperimentKill

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

onExperimentReset

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

onExperimentPause

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

onExperimentResume

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

onNextStep

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

createStaticViews

protected void createStaticViews()
Creates all static views which this controller handles. Static views are those that are created at application startup and destroyed at sthutdown.

Specified by:
createStaticViews in class EodispController

createDynamicView

public 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.

The view will be managed automatically after that.

Specified by:
createDynamicView in class EodispController
Parameters:
id - The static Id of the view which should be created.
Returns:
The new view or null, if the view could not be created.

isControllerForView

public boolean isControllerForView(int id)
Returns whether this controller is responsible for creating the view with the given ID.

Specified by:
isControllerForView in class EodispController
Parameters:
id - The static ID of the view in question.
Returns:
True, if the controller is responsible for this view, otherwise false.