application
Class HandlerMenu

java.lang.Object
  extended by 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


Nested Class Summary
 class HandlerMenu.CrsFileFilter
          Inner class to filter filemames
 class HandlerMenu.CsvFileFilter
          Inner class to filter filenames
 
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
 

Constructor Detail

HandlerMenu

public HandlerMenu(javax.swing.JFrame parentWindow)
Method Detail

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