Compiere 3.1

org.compiere.apps
Class AWindowListener

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by org.compiere.apps.AWindowListener
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, EventListener

public class AWindowListener
extends WindowAdapter

Convenience Class to tunnel Events. Forwards Window Events like windowClosed to the WindowState listener. Usually, a WindowStateListener gets only state events (minimized,..) This allows implementing a single method (windowStateChanged) to receive potentially all window events.

Implemented: e.getID() == WindowEvent.WINDOW_CLOSED

Version:
$Id: AWindowListener.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
AWindowListener(Window win, WindowStateListener l)
          Constructor
 
Method Summary
 void windowClosed(WindowEvent e)
          Invoked when a window has been closed.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosing, 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

AWindowListener

public AWindowListener(Window win,
                       WindowStateListener l)
Constructor

Parameters:
win - Window
l - Listener
Method Detail

windowClosed

public void windowClosed(WindowEvent e)
Invoked when a window has been closed. Forwarded.

Specified by:
windowClosed in interface WindowListener
Overrides:
windowClosed in class WindowAdapter
Parameters:
e - event to be forwarded

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.