|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.essex.common.gui.impl.DefaultApplicationControllerImpl
public abstract class DefaultApplicationControllerImpl
Date: 15-Jul-2002
| Field Summary | |
|---|---|
protected ApplicationFrame |
applicationFrame
|
| Constructor Summary | |
|---|---|
DefaultApplicationControllerImpl()
|
|
| Method Summary | |
|---|---|
void |
addActionHandler(java.lang.String name,
ActionHandler actionHandler)
Register an ActionHandler for this viewer. |
void |
destroy()
Destroy the service |
ActionHandler |
getActionHandler(java.lang.String name)
|
ApplicationFrame |
getApplicationFrame()
|
protected abstract java.lang.String |
getCurrentFilePreferenceName()
|
protected ApplicationFrameParameters |
getDefaultParameters(java.lang.String title)
|
EditHandler |
getEditHandler()
|
FileHandler |
getFileHandler()
|
protected abstract java.lang.String |
getFileListPreferenceName()
|
OptionsHandler |
getOptionsHandler()
|
void |
initialise()
Initialise the service |
java.lang.String[] |
listActionHandlers()
|
void |
removeActionHandler(java.lang.String name)
UnRegister an ActionHandler for this viewer. |
void |
restoreSessionFiles(java.lang.String fileListKey,
java.lang.String currentFileKey,
FileOpImpl fileOp)
Restore a users session files. |
protected void |
saveOpenFiles(java.util.List<ApplicationFile> openFiles,
java.lang.Object messageIfNotSaved)
|
protected void |
saveSessionFiles(java.util.List<ApplicationFile> openFiles,
java.util.prefs.Preferences preferences,
java.lang.String fileListKey,
java.lang.String currentFileKey)
If any file has not been saved it will not be appended to the file list |
void |
setEditHandler(EditHandler editHandler)
|
void |
setFileHandler(FileHandler fileHandler)
|
void |
setOptionsHandler(OptionsHandler optionsHandler)
|
protected abstract boolean |
shouldRestoreSession()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.essex.common.gui.DefaultApplicationController |
|---|
getFileOp, restoreSession |
| Methods inherited from interface uk.ac.essex.common.exception.ExceptionHandler |
|---|
handleException, handleThrowable |
| Field Detail |
|---|
protected ApplicationFrame applicationFrame
| Constructor Detail |
|---|
public DefaultApplicationControllerImpl()
| Method Detail |
|---|
protected abstract java.lang.String getCurrentFilePreferenceName()
protected abstract java.lang.String getFileListPreferenceName()
protected abstract boolean shouldRestoreSession()
public void restoreSessionFiles(java.lang.String fileListKey,
java.lang.String currentFileKey,
FileOpImpl fileOp)
fileListKey - - The preference key containing the list of open filescurrentFileKey - - The file that should be set to be currentfileOp - - The file op to handle loading the files
public 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..
addActionHandler in interface DefaultApplicationControllername - - The name to associate the handler withactionHandler - - The handler to addpublic void removeActionHandler(java.lang.String name)
ActionHandler for this viewer.
removeActionHandler in interface DefaultApplicationControllername - - The name of the handleraddActionHandler(java.lang.String, uk.ac.essex.common.action.ActionHandler)public java.lang.String[] listActionHandlers()
listActionHandlers in interface DefaultApplicationControllerpublic ActionHandler getActionHandler(java.lang.String name)
getActionHandler in interface DefaultApplicationControllername -
public ApplicationFrame getApplicationFrame()
getApplicationFrame in interface DefaultApplicationControllerpublic FileHandler getFileHandler()
getFileHandler in interface DefaultApplicationControllerpublic void setFileHandler(FileHandler fileHandler)
setFileHandler in interface DefaultApplicationControllerpublic OptionsHandler getOptionsHandler()
getOptionsHandler in interface DefaultApplicationControllerpublic void setOptionsHandler(OptionsHandler optionsHandler)
setOptionsHandler in interface DefaultApplicationControllerpublic EditHandler getEditHandler()
getEditHandler in interface DefaultApplicationControllerpublic void setEditHandler(EditHandler editHandler)
setEditHandler in interface DefaultApplicationController
public void initialise()
throws InitialisationException
Service
initialise in interface DefaultApplicationControllerinitialise in interface ServiceInitialisationException
public void destroy()
throws DestructionException,
ShutdownCancelledException
destroy in interface DefaultApplicationControllerdestroy in interface ServiceDestructionException
ShutdownCancelledExceptionprotected ApplicationFrameParameters getDefaultParameters(java.lang.String title)
title -
protected void saveOpenFiles(java.util.List<ApplicationFile> openFiles,
java.lang.Object messageIfNotSaved)
throws ShutdownCancelledException
openFiles - messageIfNotSaved -
ShutdownCancelledException
protected void saveSessionFiles(java.util.List<ApplicationFile> openFiles,
java.util.prefs.Preferences preferences,
java.lang.String fileListKey,
java.lang.String currentFileKey)
openFiles - - The list of files currently openpreferences -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||