Chat.v1_1
Class ChatClientWindow.ChatListener

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--Chat.v1_1.ChatClientWindow.ChatListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowListener
Enclosing class:
ChatClientWindow

public class ChatClientWindow.ChatListener
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

ChatListener is an internal listener class which handles both WindowEvents and ActionEvents generated in the ChatClientWindow class.


Field Summary
private  ChatClientWindow cw
           
 
Constructor Summary
ChatClientWindow.ChatListener(ChatClientWindow cw)
          Creates a new ChatListener.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Handles the event when the user pushes the send button or selects one of the menuitems.
 void windowClosing(java.awt.event.WindowEvent we)
          Handles the event when user closes the window.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cw

private ChatClientWindow cw
Constructor Detail

ChatClientWindow.ChatListener

public ChatClientWindow.ChatListener(ChatClientWindow cw)
Creates a new ChatListener.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Handles the event when the user pushes the send button or selects one of the menuitems.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Handles the event when user closes the window.
Overrides:
windowClosing in class java.awt.event.WindowAdapter