saveopen.translation
Class SaveOpenDemoMenuHandler

java.lang.Object
  |
  +--saveopen.translation.SaveOpenDemoMenuHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SaveOpenDemoMenuHandler
extends java.lang.Object
implements java.awt.event.ActionListener


Field Summary
protected  SaveOpenDemoFrame theSource
          This is the Frame from which we listen accept "Save", "Open" and "Quit" commands.
protected  javax.swing.JFrame theTarget
          This is the most recent Frame from which an ActionEvent has been heard, excluding theSource.
 
Constructor Summary
SaveOpenDemoMenuHandler(SaveOpenDemoFrame source)
          Creates an instance of SaveOpenDemoMenuHandler, and registers it to receive ActionEvents from source.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Our implementation of the ActionListener interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theSource

protected SaveOpenDemoFrame theSource
This is the Frame from which we listen accept "Save", "Open" and "Quit" commands. Commands from other windows are heard but not obeyed.

theTarget

protected javax.swing.JFrame theTarget
This is the most recent Frame from which an ActionEvent has been heard, excluding theSource.
Constructor Detail

SaveOpenDemoMenuHandler

public SaveOpenDemoMenuHandler(SaveOpenDemoFrame source)
Creates an instance of SaveOpenDemoMenuHandler, and registers it to receive ActionEvents from source.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Our implementation of the ActionListener interface.
Specified by:
actionPerformed in interface java.awt.event.ActionListener