|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.desktopDeployment.WindowRegistry
public class WindowRegistry
Keeps track of which files are currently open. WindowRegistry keeps track of window name - dialog associations, and helps determine the name of new windows that haven't been populated with a file.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Constructor Summary | |
---|---|
WindowRegistry()
|
Method Summary | |
---|---|
void |
activateWindow(java.lang.String windowName)
make target window the active window, bringing it to the front of a stack of windows. |
void |
deregisterWindow(Project35Dialog dialog)
removes dialog from the active list of windows; used when a file is closed |
java.util.ArrayList |
getActiveWindows()
|
Project35Dialog |
getWindowForFile(java.io.File file)
|
boolean |
isFirstWindow()
|
void |
registerWindowWithExistingFile(Project35Dialog dialog)
|
void |
registerWindowWithNewFile(Project35Dialog dialog)
creates a name of the format: "Untitled + n" where n is the nth dialog created during the session. |
void |
setFirstWindow(boolean isFirstWindow)
|
void |
updateWindow(Project35Dialog dialog)
used to update the window menus in files when the name of the file in the target dialog changes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowRegistry()
Method Detail |
---|
public void activateWindow(java.lang.String windowName)
windowName
- identifier for an open Project35Dialog windowpublic void deregisterWindow(Project35Dialog dialog)
dialog
- the dialog to be deregisteredpublic void registerWindowWithExistingFile(Project35Dialog dialog)
public void setFirstWindow(boolean isFirstWindow)
isFirstWindow
- true if the first window has been createdpublic void registerWindowWithNewFile(Project35Dialog dialog)
public void updateWindow(Project35Dialog dialog)
dialog
- the target dialogpublic java.util.ArrayList getActiveWindows()
public Project35Dialog getWindowForFile(java.io.File file)
file
- the data file viewed in some dialog
public boolean isFirstWindow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |