|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DefaultApplicationController
This represents the controller in an MVC architecture
Date: Apr 5, 2002
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 |
---|
FileOp getFileOp()
void addActionHandler(java.lang.String name, ActionHandler actionHandler)
ActionHandler
for this viewer. This could be an action handler
that manages all file actions, all help actions etc..
name
- - The name to associate the handler withactionHandler
- - The handler to addvoid removeActionHandler(java.lang.String name)
ActionHandler
for this application.
name
- - The name of the handleraddActionHandler(java.lang.String, uk.ac.essex.common.action.ActionHandler)
java.lang.String[] listActionHandlers()
ActionHandler getActionHandler(java.lang.String name)
name
-
ApplicationFrame getApplicationFrame()
void initialise() throws InitialisationException
Service
initialise
in interface Service
InitialisationException
void destroy() throws DestructionException, ShutdownCancelledException
destroy
in interface Service
DestructionException
ShutdownCancelledException
void restoreSession()
FileHandler getFileHandler()
void setFileHandler(FileHandler fileHandler)
OptionsHandler getOptionsHandler()
void setOptionsHandler(OptionsHandler optionsHandler)
EditHandler getEditHandler()
void setEditHandler(EditHandler editHandler)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |