//*******************************************************************
//
//   Mimic_Action_Listener.java      In Text      Definitions only
//
//   Authors:  Lewis and Loftus
//
//   Classes:  Mimic_Action_Listener
//
//*******************************************************************

import java.awt.event.*;

//-------------------------------------------------------------------
//
//  Class Mimic_Action_Listener handles the action events for the
//  Mimic applet.
//
//  Constructors:
//
//     public Mimic_Action_Listener (Mimic listening_applet)
//
//  Methods:
//
//     public void actionPerformed (ActionEvent event)
//
//-------------------------------------------------------------------

class Mimic_Action_Listener implements ActionListener {

   private Mimic applet;

   //===========================================================
   //  Sets up the listener by storing a reference to the
   //  applet.
   //===========================================================
   public Mimic_Action_Listener (Mimic listening_applet) {
      applet = listening_applet;
   }  // constructor Mimic_Action_Listener

   //===========================================================
   //  Updates the label when an Action event occurs.
   //===========================================================
   public void actionPerformed (ActionEvent event) {
      applet.update_label();
   }  // method actionPerformed

}  // class Mimic_Action_Listener

