application
Class HandlerMenu
java.lang.Object
application.HandlerMenu
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
public class HandlerMenu
- extends java.lang.Object
- implements java.awt.event.ActionListener
Handles all the events from the menus fro the Classroom Scheduler Application
Constructor Summary |
HandlerMenu(javax.swing.JFrame parentWindow)
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected boolean |
checkForSave()
|
protected void |
loadDocument(java.io.File inputFile)
Loads a document from file |
protected void |
saveDocument(java.lang.String directory,
java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandlerMenu
public HandlerMenu(javax.swing.JFrame parentWindow)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
saveDocument
protected void saveDocument(java.lang.String directory,
java.lang.String fileName)
- Parameters:
directory
- fileName
-
checkForSave
protected boolean checkForSave()
- Parameters:
fileName
-
loadDocument
protected void loadDocument(java.io.File inputFile)
- Loads a document from file