net.jbeans.ui.window
Class WindowCloseAdapter

java.lang.Object
  extended bynet.jbeans.ui.window.WindowCloseAdapter
All Implemented Interfaces:
java.util.EventListener, java.awt.event.WindowListener

public class WindowCloseAdapter
extends java.lang.Object
implements java.awt.event.WindowListener

Helper class to handle window close events on a target window.

Version:
$Revision: 1.1.1.1 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
WindowListener

Field Summary
static int DO_NOTHING_ON_CLOSE
           
static int EXIT_ON_CLOSE
           
static int FIRST
           
static int HIDE_ON_CLOSE
           
static int JUST_CLOSE
           
static int LAST
           
 
Constructor Summary
WindowCloseAdapter(java.awt.Window w, int mode)
          Create an adaptor to listen for window close events on the given window.
 
Method Summary
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST

public static final int FIRST
See Also:
Constant Field Values

DO_NOTHING_ON_CLOSE

public static final int DO_NOTHING_ON_CLOSE
See Also:
Constant Field Values

EXIT_ON_CLOSE

public static final int EXIT_ON_CLOSE
See Also:
Constant Field Values

HIDE_ON_CLOSE

public static final int HIDE_ON_CLOSE
See Also:
Constant Field Values

JUST_CLOSE

public static final int JUST_CLOSE
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values
Constructor Detail

WindowCloseAdapter

public WindowCloseAdapter(java.awt.Window w,
                          int mode)
Create an adaptor to listen for window close events on the given window.

Parameters:
w - the target window.
Method Detail

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener


Copyright © 2003 JBean project. All Rights Reserved.