Package PamView
Class NullGuiController
java.lang.Object
PamView.NullGuiController
- All Implemented Interfaces:
 PAMControllerGUI,PamViewInterface
Null GUI controller which will get used with the -nogui options.
- Author:
 - dg50
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddControlledUnit(PamControlledUnit controlledUnit) Called whenever a pamcontrolled unit is added ot the model.voidaddView(PamViewInterface newView) Add a PAMView Interface.voidCalled to destroy modelvoidenableGUIControl(boolean enable) Enable and disable the entire GUI.intCalled on startup to grab pamsettings/database from somewhere.getModuleName(Object parentFrame, PamModuleInfo moduleInfo) Get the name for a controlled unit from user input.booleanThe GUI may have a callback into the PamController once it has all been set up.voidinit()Called immediately after the creation of the GUI in the PAMController.initPrimaryView(PamController pamController, PamModel pamModelInterface) Called when the controller is ready for the fire view.voidmodelChanged(int changeType) voidnotifyLoadProgress(PamTaskUpdate progress) Notify the GUI that some loading is taking placevoidnotifyModelChanged(int changeType) Notification flag that the model has changedvoidpamEnded()voidvoidremoveControlledUnit(PamControlledUnit controlledUnit) Called whenever a controlled unit is removed.voidvoidShow the GUI for a specific controlled unit 
- 
Constructor Details
- 
NullGuiController
 
 - 
 - 
Method Details
- 
pamStarted
public void pamStarted()- Specified by:
 pamStartedin interfacePamViewInterface
 - 
pamEnded
public void pamEnded()- Specified by:
 pamEndedin interfacePamViewInterface
 - 
modelChanged
public void modelChanged(int changeType) - Specified by:
 modelChangedin interfacePamViewInterface
 - 
addControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a pamcontrolled unit is added ot the model.- Specified by:
 addControlledUnitin interfacePamViewInterface- Parameters:
 controlledUnit- - the added controlled unit.
 - 
showControlledUnit
Description copied from interface:PamViewInterfaceShow the GUI for a specific controlled unit- Specified by:
 showControlledUnitin interfacePamViewInterface- Parameters:
 unit- -the controlled unit to show.
 - 
removeControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a controlled unit is removed.- Specified by:
 removeControlledUnitin interfacePamViewInterface- Parameters:
 controlledUnit-
 - 
setTitle
- Specified by:
 setTitlein interfacePamViewInterface
 - 
getFrameNumber
public int getFrameNumber()- Specified by:
 getFrameNumberin interfacePamViewInterface- Returns:
 - Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
 
 - 
getGuiFrame
- Specified by:
 getGuiFramein interfacePamViewInterface
 - 
enableGUIControl
public void enableGUIControl(boolean enable) Description copied from interface:PamViewInterfaceEnable and disable the entire GUI.- Specified by:
 enableGUIControlin interfacePamViewInterface- Parameters:
 enable- - true to enable the GUI/
 - 
addView
Description copied from interface:PAMControllerGUIAdd a PAMView Interface. This mirrors many of the functions in PAMControllerGUI- Specified by:
 addViewin interfacePAMControllerGUI
 - 
destroyModel
public void destroyModel()Description copied from interface:PAMControllerGUICalled to destroy model- Specified by:
 destroyModelin interfacePAMControllerGUI
 - 
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from interface:PAMControllerGUINotification flag that the model has changed- Specified by:
 notifyModelChangedin interfacePAMControllerGUI- Parameters:
 changeType-
 - 
notifyLoadProgress
Description copied from interface:PAMControllerGUINotify the GUI that some loading is taking place- Specified by:
 notifyLoadProgressin interfacePAMControllerGUI- Parameters:
 progress- - the progress.
 - 
getInitialSettings
Description copied from interface:PAMControllerGUICalled on startup to grab pamsettings/database from somewhere.- Specified by:
 getInitialSettingsin interfacePAMControllerGUI- Returns:
 - the pamsettings/database.
 
 - 
init
public void init()Description copied from interface:PAMControllerGUICalled immediately after the creation of the GUI in the PAMController.- Specified by:
 initin interfacePAMControllerGUI
 - 
initPrimaryView
Description copied from interface:PAMControllerGUICalled when the controller is ready for the fire view.- Specified by:
 initPrimaryViewin interfacePAMControllerGUI- Parameters:
 pamController-pamModelInterface-- Returns:
 - init and retuirn the first view
 
 - 
hasCallBack
public boolean hasCallBack()Description copied from interface:PAMControllerGUIThe 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.- Specified by:
 hasCallBackin interfacePAMControllerGUI- Returns:
 
 - 
getModuleName
Description copied from interface:PAMControllerGUIGet the name for a controlled unit from user input.- Specified by:
 getModuleNamein interfacePAMControllerGUI- 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.
 
 
 -