Watcher.v2_1
Class WatcherWindow.WatcherListener

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--Watcher.v2_1.WatcherWindow.WatcherListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowListener
Enclosing class:
WatcherWindow

public class WatcherWindow.WatcherListener
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

WatcherListener is an internal listener class which handles both WindowEvents and ActionEvents generated in the WatcherWindow class.


Field Summary
private  int FULL_DEBUGGING
           
private  int MUCH_DEBUGGING
           
private  int NO_DEBUGGING
           
private  int SOME_DEBUGGING
           
 
Constructor Summary
WatcherWindow.WatcherListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Handles the event generated when the user selects one of the menuitems.
private  void closeWatcher()
          If the reference to Watcher is not null, it notifies it that the user wants to close the application.
 void windowClosing(java.awt.event.WindowEvent we)
          Handles the event when the user wants to close the window and hence exit the application.
 
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

NO_DEBUGGING

private final int NO_DEBUGGING

SOME_DEBUGGING

private final int SOME_DEBUGGING

MUCH_DEBUGGING

private final int MUCH_DEBUGGING

FULL_DEBUGGING

private final int FULL_DEBUGGING
Constructor Detail

WatcherWindow.WatcherListener

public WatcherWindow.WatcherListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Handles the event generated when the user selects one of the menuitems. It either shows the selected JTab, enables or disables the DebugView, selects subscription type or exits the application.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - The ActionEvent.

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Handles the event when the user wants to close the window and hence exit the application. It calls closeWatcher().
Overrides:
windowClosing in class java.awt.event.WindowAdapter

closeWatcher

private void closeWatcher()
If the reference to Watcher is not null, it notifies it that the user wants to close the application. Either way it closes the window.