org.eodisp.ui.mm.controllers
Class MmFederatesController

java.lang.Object
  extended by org.eodisp.ui.common.base.EodispController
      extended by org.eodisp.ui.mm.controllers.MmFederatesController

public class MmFederatesController
extends EodispController

Version:
$Id:$
Author:
eglimi

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
MmFederatesController()
           
 
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 onAddInfo(java.awt.event.ActionEvent e)
           
 void onDeregisterFederate(java.awt.event.ActionEvent e)
           
 void onManagePermissions(java.awt.event.ActionEvent e)
           
 void onRegisterFederate(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

MmFederatesController

public MmFederatesController()
Method Detail

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.

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

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.

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

onRegisterFederate

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

onDeregisterFederate

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

onManagePermissions

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

onAddInfo

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

initialize

protected void initialize()
Description copied from class: EodispController
Initializes the controller. This should created the model connected to this controller as well as all frames and views.

Overrides:
initialize in class EodispController