|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.essex.common.gui.ViewerImpl
public class ViewerImpl
Date: 15-Jul-2002
| Field Summary | |
|---|---|
protected ApplicationFrame |
applicationFrame
|
protected EditHandler |
editHandler
|
protected FileHandler |
fileHandler
|
protected HelpHandler |
helpHandler
|
protected OptionsHandler |
optionsHandler
|
| Constructor Summary | |
|---|---|
ViewerImpl()
|
|
| Method Summary | |
|---|---|
ApplicationFrame |
getApplicationFrame()
|
EditHandler |
getEditHandler()
|
FileHandler |
getFileHandler()
|
HelpHandler |
getHelpHandler()
|
OptionsHandler |
getOptionsHandler()
|
void |
restoreSession()
This loads the GUI into the users prefered state |
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 // TODO: Save position of file windows (x,y) |
protected boolean |
shouldRestoreSession(java.lang.String restoreSessionKey)
|
void |
shutDown()
Called to shut the Viewer down, this allows it to save open files etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FileHandler fileHandler
protected EditHandler editHandler
protected HelpHandler helpHandler
protected OptionsHandler optionsHandler
protected ApplicationFrame applicationFrame
| Constructor Detail |
|---|
public ViewerImpl()
| Method Detail |
|---|
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 filespublic FileHandler getFileHandler()
getFileHandler in interface Viewerpublic EditHandler getEditHandler()
getEditHandler in interface Viewerpublic HelpHandler getHelpHandler()
getHelpHandler in interface Viewerpublic OptionsHandler getOptionsHandler()
getOptionsHandler in interface Viewerpublic ApplicationFrame getApplicationFrame()
getApplicationFrame in interface Viewer
public void shutDown()
throws ShutdownCancelledException
shutDown in interface ViewerShutdownCancelledExceptionpublic void restoreSession()
restoreSession in interface Viewer
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 - protected boolean shouldRestoreSession(java.lang.String restoreSessionKey)
restoreSessionKey - - The preference key for whether to restore the users session
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||