Class Tracksail.SayItActionListener

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

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

Handles events that are generated when the player clicks the 'say' button or hits enter with focus in the chat input text area.


Constructor Summary
(package private) Tracksail.SayItActionListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Reads the message written in the text field and sends it to other players through the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tracksail.SayItActionListener

Tracksail.SayItActionListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Reads the message written in the text field and sends it to other players through the server.

If we're in the lobby room, the messages go to the lobby room. If we are in a race, the texts go to that particular race.

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