Class Tracksail.ExitActionListener

java.lang.Object
  extended byTracksail.ExitActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
Tracksail

class Tracksail.ExitActionListener
extends java.lang.Object
implements java.awt.event.ActionListener

Handles clicking the 'Exit' button.


Constructor Summary
(package private) Tracksail.ExitActionListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          If we're in the lobby room, exit the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tracksail.ExitActionListener

Tracksail.ExitActionListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
If we're in the lobby room, exit the program.

If we're in a race, exit from the race to the lobby room.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent event