A C E F G H M N S U V

A

about() - Method in class framework.AppWindow
Called when the user selects Help/About.
actionPerformed(ActionEvent) - Method in class framework.FileMenuController
Handles all commands coming from the file menu.
actionPerformed(ActionEvent) - Method in class framework.HelpMenuController
Indirectly called by all items in the Help menu.
addView(AppView) - Method in class framework.AppWindow
Adds a view to the views set.
AppError - Exception in framework
Base class for all application errors.
AppError(String) - Constructor for exception framework.AppError
Initializes the error message.
AppError() - Constructor for exception framework.AppError
Initializes the error message to "Application Error".
AppView - Class in framework
The base class for all views.
AppView(Model) - Constructor for class framework.AppView
Initializes model.
AppView() - Constructor for class framework.AppView
This does not initialize the model.
AppWindow - Class in framework
Base class for the application's main window.
AppWindow(Model) - Constructor for class framework.AppWindow
Initializes look&feel, title, model, & menus
appWindow - Variable in class framework.Controller
The AppWindow that this controller is attached to.

C

Controller - Class in framework
Base class for many controllers.
Controller(AppWindow) - Constructor for class framework.Controller
Initializes appWindow.
currentDirectory - Variable in class framework.FileMenuController
Used to remember where we were the last time a file dialog box was opened.

E

error(String) - Static method in class framework.FrameworkUtils
A simple utility for handling errors.

F

fileMenu - Variable in class framework.AppWindow
 
FileMenuController - Class in framework
The controller for all file menu items
FileMenuController(AppWindow) - Constructor for class framework.FileMenuController
Initializes the gateway.
FileSystemGateway - Class in framework
Responsible for saving the model to a file and for reading the model from a file.
FileSystemGateway() - Constructor for class framework.FileSystemGateway
 
fname - Variable in class framework.Model
Name of file where model is stored.
FRAME_HEIGHT - Static variable in class framework.AppWindow
Change as desired or call Window.pack()
FRAME_WIDTH - Static variable in class framework.AppWindow
Change as desired or call Window.pack()
framework - package framework
The Application Framework What is an application framework?
FrameworkUtils - Class in framework
Utilities for unrelated tasks.
FrameworkUtils() - Constructor for class framework.FrameworkUtils
 

G

gateway - Variable in class framework.FileMenuController
Gateway for doing the actual saves and reads
getFileName(boolean) - Method in class framework.FileMenuController
Prompts the user for the file name if necessary.
getFname() - Method in class framework.Model
Gets the name of the file where model is or will be stored.
getModel() - Method in class framework.AppWindow
Used by controllers and views to fetch the current model.
getModel(String) - Method in class framework.FileSystemGateway
Reads a model from a specified file.
getType(String) - Static method in class framework.FrameworkUtils
A simple parser for converting strings into types.
getUnsavedChanges() - Method in class framework.Model
True if there are unsaved changes in the model.

H

handleAbout() - Method in class framework.HelpMenuController
Called when the user selects Help/About.
handleHelp() - Method in class framework.HelpMenuController
Called when the user selects Help/Help.
handleNew() - Method in class framework.FileMenuController
Called when the user selects File/New.
handleOpen() - Method in class framework.FileMenuController
Called when the user selects File/Open
handleQuit() - Method in class framework.FileMenuController
Called when the user selects File/Quit.
handleSave() - Method in class framework.FileMenuController
Called when the user selects File/Save.
handleSaveAs() - Method in class framework.FileMenuController
Called when the user selects File/SaveAs
help() - Method in class framework.AppWindow
Called when the user selects Help/Help.
helpMenu - Variable in class framework.AppWindow
 
HelpMenuController - Class in framework
Controller that handles all items in the Help menu.
HelpMenuController(AppWindow) - Constructor for class framework.HelpMenuController
Initializes appWindow.

M

makeMenu(String, String[], Controller) - Static method in class framework.FrameworkUtils
This method constructs a menu containing the specified items.
menuBar - Variable in class framework.AppWindow
Subclasses can add more menus to this menu bar
menuCanceled(MenuEvent) - Method in class framework.MenuListenerAdapter
 
menuDeselected(MenuEvent) - Method in class framework.MenuListenerAdapter
 
MenuListenerAdapter - Class in framework
This is an adapter class that provides empty methods for handling more general menu events.
MenuListenerAdapter() - Constructor for class framework.MenuListenerAdapter
 
menuSelected(MenuEvent) - Method in class framework.MenuListenerAdapter
 
model - Variable in class framework.AppView
The model that this view displays
model - Variable in class framework.AppWindow
The application model
Model - Class in framework
Base class for all application models.
Model() - Constructor for class framework.Model
 

N

notifyViews() - Method in class framework.Model
Notifies all registered views to call their update methods.

S

saveChanges() - Method in class framework.FileMenuController
Prompts user to save changes if necessary
saveModel(Model) - Method in class framework.FileSystemGateway
Same as saveModelAs(m, m.getFname());
saveModelAs(Model, String) - Method in class framework.FileSystemGateway
Saves a model to a specified file.
setFname(String) - Method in class framework.Model
Sets or changes the name of the file where the model will be stored.
setModel(Model) - Method in class framework.AppView
Sets the model to a new model.
setModel(Model) - Method in class framework.AppWindow
Sets the current model to a new model and notifies all views
setUnsavedChanges(boolean) - Method in class framework.Model
Called in model extensions after each edit or modification and called by gateway after each save operation.

U

unsavedChanges - Variable in class framework.Model
True if there are unsaved changes.
update(Observable, Object) - Method in class framework.AppView
This method is indirectly called by Model.notifyViews.

V

views - Variable in class framework.AppWindow
Subclasses of AppView should be added to this set.

A C E F G H M N S U V