Package PamController

Interface PAMControllerGUI

All Superinterfaces:
PamViewInterface
All Known Implementing Classes:
GuiFrameManager, NullGuiController, PamGuiManagerFX

public interface PAMControllerGUI extends PamViewInterface
Basic interface for the primary UI and UI manager showing the PAMGuard GUI.
Author:
Jamie Macaulay
  • Method Details Link icon

    • addView Link icon

      void addView(PamViewInterface newView)
      Add a PAMView Interface. This mirrors many of the functions in PAMControllerGUI
    • destroyModel Link icon

      void destroyModel()
      Called to destroy model
    • notifyModelChanged Link icon

      void notifyModelChanged(int changeType)
      Notification flag that the model has changed
      Parameters:
      changeType -
    • notifyLoadProgress Link icon

      void notifyLoadProgress(PamTaskUpdate progress)
      Notify the GUI that some loading is taking place
      Parameters:
      progress - - the progress.
    • getInitialSettings Link icon

      PamSettings getInitialSettings()
      Called on startup to grab pamsettings/database from somewhere.
      Returns:
      the pamsettings/database.
    • init Link icon

      void init()
      Called immediately after the creation of the GUI in the PAMController.
    • initPrimaryView Link icon

      PamViewInterface initPrimaryView(PamController pamController, PamModel pamModelInterface)
      Called when the controller is ready for the fire view.
      Parameters:
      pamController -
      pamModelInterface -
      Returns:
      init and retuirn the first view
    • hasCallBack Link icon

      boolean hasCallBack()
      The GUI may have a callback into the PamController once it has all been set up. If this is the case then on init() PAMController stops and relies on the GUI code to call the relevant setupPAMGuard folder once the GUI thread is happy everything is being set up properly.
      Returns:
    • getModuleName Link icon

      String getModuleName(Object parentFrame, PamModuleInfo moduleInfo)
      Get the name for a controlled unit from user input.
      Parameters:
      parentFrame - - an object which can be the parent frame for the dialog.
      moduleInfo - - the type of controlled unit.
      Returns:
      the name of the module.