ucar.jpeg.jj2000.disp
Class ExitHandler

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by ucar.jpeg.jj2000.disp.ExitHandler
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, EventListener

public class ExitHandler
extends WindowAdapter

This class implements the WindowHandler for the ImageFrames


Constructor Summary
ExitHandler(Decoder dec)
          Class constructor.
 
Method Summary
 void windowClosing(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
 

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(WindowEvent evt)
Close the window and exit the application

Specified by:
windowClosing in interface WindowListener
Overrides:
windowClosing in class WindowAdapter


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.