Class CtrlActionListener

java.lang.Object
  |
  +--CtrlActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class CtrlActionListener
extends java.lang.Object
implements java.awt.event.ActionListener


Constructor Summary
CtrlActionListener(SimAdministrator _oSimAdministrator, CtrlReferee _oReferee)
          The Constructor, sets values
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent oEvent)
          Implements the import java.awt.event.ActionListener interface
 int chooseTeam()
          the user chooses a team
 java.lang.String toString()
          Returns this object as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CtrlActionListener

public CtrlActionListener(SimAdministrator _oSimAdministrator,
                          CtrlReferee _oReferee)
The Constructor, sets values

Parameters:
_oSimAdministrator - the simulator administrator
_oReferee - the match referee object
Since:
1.0
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent oEvent)
Implements the import java.awt.event.ActionListener interface

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
oEvent - the (action)event which occurs
Returns:
void
Since:
1.0

chooseTeam

public int chooseTeam()
the user chooses a team

Returns:
int Team number
Since:
1.0

toString

public java.lang.String toString()
Returns this object as a String

Overrides:
toString in class java.lang.Object
Returns:
String The object represented as a String
Since:
1.0