edu.northwestern.at.wordhoard.swing.calculator.menus
Class BaseMenu.GenericActionListener

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.calculator.menus.BaseMenu.GenericActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
BaseMenu

protected class BaseMenu.GenericActionListener
extends java.lang.Object
implements java.awt.event.ActionListener

Generic action listener that invokes action methods using reflection.


Field Summary
protected  java.lang.String actionMethodName
          Action method name.
 
Constructor Summary
BaseMenu.GenericActionListener(java.lang.reflect.Method actionMethod)
          Create generic action listener.
BaseMenu.GenericActionListener(java.lang.String actionMethodName)
          Create generic action listener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Perform action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionMethodName

protected java.lang.String actionMethodName
Action method name.

Constructor Detail

BaseMenu.GenericActionListener

BaseMenu.GenericActionListener(java.lang.String actionMethodName)
Create generic action listener.

Parameters:
actionMethodName - The action method name.

BaseMenu.GenericActionListener

BaseMenu.GenericActionListener(java.lang.reflect.Method actionMethod)
Create generic action listener.

Parameters:
actionMethod - The action method.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Perform action.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - Event to perform.