Class JOIButtonListener

java.lang.Object
  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.

Version:
10

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

JOIButtonListener

public JOIButtonListener(JOIPanel panel)
Construct the ButtonListener.

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

actionPerformed

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
Parameters:
e - the "event" when the button is pressed.