Class MyActionListener

java.lang.Object
  extended by MyActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

 class MyActionListener
extends java.lang.Object
implements java.awt.event.ActionListener

MyActionListener is a class that handles events happened on windows of the Plus Number game. It deals with actions on buttons or a menu bar on the windows.

Version:
1.0.0
Author:
Michiru Nishikawa

Field Summary
private  PlusNumber myOwner
          PlusNumber object that creates and has this action listener.
 
Constructor Summary
MyActionListener()
          Default constructor that initialises an attribute by caling a non-default constructor.
MyActionListener(PlusNumber myOwner)
          Constructor initialising an attribute.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Manage an event happened when a button is pressed or a menu item is selected on the Plus Number game windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myOwner

private PlusNumber myOwner
PlusNumber object that creates and has this action listener.

Constructor Detail

MyActionListener

public MyActionListener(PlusNumber myOwner)
Constructor initialising an attribute.

Parameters:
myOwner - a parent PlusNumber object.

MyActionListener

public MyActionListener()
Default constructor that initialises an attribute by caling a non-default constructor.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Manage an event happened when a button is pressed or a menu item is selected on the Plus Number game windows.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - an event happened either on buttons or menu items.