uk.ac.essex.common.gui
Interface DefaultApplicationController

All Superinterfaces:
ApplicationController, Service
All Known Implementing Classes:
DefaultApplicationControllerImpl

public interface DefaultApplicationController
extends ApplicationController

This represents the controller in an MVC architecture
Date: Apr 5, 2002

See Also:
You should have received a copy of Lesser GNU public license with this code. If not please visit this site

Method Summary
 void addActionHandler(java.lang.String name, ActionHandler actionHandler)
          Register an ActionHandler for this viewer.
 void destroy()
          Called to shut the Application down, this allows it to save open files etc.
 ActionHandler getActionHandler(java.lang.String name)
           
 ApplicationFrame getApplicationFrame()
           
 EditHandler getEditHandler()
           
 FileHandler getFileHandler()
           
 FileOp getFileOp()
           
 OptionsHandler getOptionsHandler()
           
 void initialise()
          Initialise the service
 java.lang.String[] listActionHandlers()
           
 void removeActionHandler(java.lang.String name)
          UnRegister an ActionHandler for this application.
 void restoreSession()
          This loads the GUI into the users prefered state, for example loading open files etc..
 void setEditHandler(EditHandler editHandler)
           
 void setFileHandler(FileHandler fileHandler)
           
 void setOptionsHandler(OptionsHandler optionsHandler)
           
 

Method Detail

getFileOp

FileOp getFileOp()
Returns:

addActionHandler

void addActionHandler(java.lang.String name,
                      ActionHandler actionHandler)
Register an ActionHandler for this viewer. This could be an action handler that manages all file actions, all help actions etc..

Parameters:
name - - The name to associate the handler with
actionHandler - - The handler to add

removeActionHandler

void removeActionHandler(java.lang.String name)
UnRegister an ActionHandler for this application.

Parameters:
name - - The name of the handler
See Also:
addActionHandler(java.lang.String, uk.ac.essex.common.action.ActionHandler)

listActionHandlers

java.lang.String[] listActionHandlers()
Returns:

getActionHandler

ActionHandler getActionHandler(java.lang.String name)
Parameters:
name -
Returns:

getApplicationFrame

ApplicationFrame getApplicationFrame()
Returns:

initialise

void initialise()
                throws InitialisationException
Description copied from interface: Service
Initialise the service

Specified by:
initialise in interface Service
Throws:
InitialisationException

destroy

void destroy()
             throws DestructionException,
                    ShutdownCancelledException
Called to shut the Application down, this allows it to save open files etc.

Specified by:
destroy in interface Service
Throws:
DestructionException
ShutdownCancelledException

restoreSession

void restoreSession()
This loads the GUI into the users prefered state, for example loading open files etc..


getFileHandler

FileHandler getFileHandler()

setFileHandler

void setFileHandler(FileHandler fileHandler)

getOptionsHandler

OptionsHandler getOptionsHandler()

setOptionsHandler

void setOptionsHandler(OptionsHandler optionsHandler)

getEditHandler

EditHandler getEditHandler()

setEditHandler

void setEditHandler(EditHandler editHandler)