Class JOIButtonListener

  extended byJOIButtonListener
All Implemented Interfaces:
ActionListener, EventListener

public class JOIButtonListener
extends Object
implements ActionListener

A simple listener for responding to button presses. It knows the Panel on which the button lives, and responds to button events by sending a changeMessage() to that Panel.


Constructor Summary
JOIButtonListener(JOIPanel panel)
          Construct the ButtonListener.
Method Summary
 void actionPerformed(ActionEvent e)
          Defines the ActionListener behavior that must be implemented.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JOIButtonListener(JOIPanel panel)
Construct the ButtonListener.

panel - the Panel on which this Button will act.
Method Detail


public void actionPerformed(ActionEvent e)
Defines the ActionListener behavior that must be implemented. When a user pushes the Button that we're listening to, send a changeMessage() message to the Panel.

Specified by:
actionPerformed in interface ActionListener
e - the "event" when the button is pressed.