jj2000.disp
Class ExitHandler

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--jj2000.disp.ExitHandler
All Implemented Interfaces:
java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener

public class ExitHandler
extends java.awt.event.WindowAdapter

This class implements the WindowHandler for the ImageFrames


Field Summary
private  Decoder dec
          The decoder instance
 
Constructor Summary
ExitHandler(Decoder dec)
          Class constructor.
 
Method Summary
 void windowClosing(java.awt.event.WindowEvent evt)
          Close the window and exit the application
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dec

private Decoder dec
The decoder instance

Constructor Detail

ExitHandler

public ExitHandler(Decoder dec)
Class constructor. Keep a reference to the decoder to properly exit when windowClosing method is called.

Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Close the window and exit the application

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter