Class JOIButtonListener
java.lang.Object
JOIButtonListener
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOIButtonListener
public JOIButtonListener(JOIPanel panel)
- Construct the ButtonListener.
- Parameters:
panel
- the Panel on which this Button will act.
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.