ch.tatool.app
Class GuiController

java.lang.Object
  extended by ch.tatool.app.GuiController

public class GuiController
extends Object

This class acts as the gui and data manager for the Tatool. It contains the glue code between the different windows to keep one from each other separated and centrally managed. The controller also manages default module objects to be loaded, but NOT the default account loading (as this is managed outside the account/module data structure.

Author:
Michael Ruflin

Field Summary
static String LOGIN_FRAME
           
static String MODULE_MANAGER_FRAME
           
static String MODULE_OPEN_FRAME
           
static String MODULE_OVERVIEW_FRAME
           
 
Constructor Summary
GuiController()
           
 
Method Summary
 void displayLoginFrame()
           
 void displayModuleManagerFrame()
           
 void displayModuleOverviewFrame()
           
 ExecutionService getExecutionService()
           
 LoginFrame getLoginFrame()
           
 Module getModule()
           
 ModuleManagerFrame getModuleManagerFrame()
           
 ModuleOverviewFrame getModuleOverviewFrame()
           
 ModuleService getModuleService()
           
 UserAccount getUserAccount()
           
 UserAccountService getUserAccountService()
           
 void init()
          Called by spring after all properties have been set.
 void setEnabled(boolean enabled)
          Enable the controller.
 void setExecutionService(ExecutionService executionService)
           
 void setLoginFrame(LoginFrame loginFrame)
           
 void setModule(Module module)
           
 void setModuleManagerFrame(ModuleManagerFrame moduleManagerFrame)
           
 void setModuleOverviewFrame(ModuleOverviewFrame moduleOverviewFrame)
           
 void setModuleService(ModuleService moduleService)
           
 void setUserAccount(UserAccount userAccount)
           
 void setUserAccountService(UserAccountService userAccountService)
           
 void shutdown()
           
 void startGUI()
          Starts the controller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN_FRAME

public static final String LOGIN_FRAME
See Also:
Constant Field Values

MODULE_MANAGER_FRAME

public static final String MODULE_MANAGER_FRAME
See Also:
Constant Field Values

MODULE_OPEN_FRAME

public static final String MODULE_OPEN_FRAME
See Also:
Constant Field Values

MODULE_OVERVIEW_FRAME

public static final String MODULE_OVERVIEW_FRAME
See Also:
Constant Field Values
Constructor Detail

GuiController

public GuiController()
Method Detail

init

public void init()
Called by spring after all properties have been set.


setEnabled

public void setEnabled(boolean enabled)
Enable the controller. If enabled, the controller will react to module and account changes by adapting the UI accordingly.


startGUI

public void startGUI()
Starts the controller


displayModuleOverviewFrame

public void displayModuleOverviewFrame()

displayModuleManagerFrame

public void displayModuleManagerFrame()

displayLoginFrame

public void displayLoginFrame()

setModule

public void setModule(Module module)

setUserAccount

public void setUserAccount(UserAccount userAccount)

shutdown

public void shutdown()

getUserAccount

public UserAccount getUserAccount()

getModule

public Module getModule()

getLoginFrame

public LoginFrame getLoginFrame()

setLoginFrame

public void setLoginFrame(LoginFrame loginFrame)

getModuleOverviewFrame

public ModuleOverviewFrame getModuleOverviewFrame()

setModuleOverviewFrame

public void setModuleOverviewFrame(ModuleOverviewFrame moduleOverviewFrame)

getUserAccountService

public UserAccountService getUserAccountService()

setUserAccountService

public void setUserAccountService(UserAccountService userAccountService)

getModuleService

public ModuleService getModuleService()

setModuleService

public void setModuleService(ModuleService moduleService)

getExecutionService

public ExecutionService getExecutionService()

setExecutionService

public void setExecutionService(ExecutionService executionService)

getModuleManagerFrame

public ModuleManagerFrame getModuleManagerFrame()

setModuleManagerFrame

public void setModuleManagerFrame(ModuleManagerFrame moduleManagerFrame)


Copyright © 2012. All Rights Reserved.