fi.hut.tml.xsmiles.gui.ftv
Class MenuHandler

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.ftv.MenuHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

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

This handler handles events from ColorMenus. At the moment it a klugy tailored handler for only the red & yellow menu. Have to come up with something more elegant.

Version:
0.1
Author:
Juha Vierinen

Constructor Summary
MenuHandler(java.lang.String color, FtvGUI gui)
          Kludgy contructor wants the color to know what to do with incoming actionEvents.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          The part that handles incoming events from the menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuHandler

public MenuHandler(java.lang.String color,
                   FtvGUI gui)
Kludgy contructor wants the color to know what to do with incoming actionEvents.

Parameters:
color - The color of the menu.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
The part that handles incoming events from the menu.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - An actionEvent bundled with an String item of the menu fired.


X-Smiles 1.2