Class DefaultCloseHandler
java.lang.Object
java.awt.event.WindowAdapter
org.pentaho.reporting.engine.classic.demo.util.DefaultCloseHandler
- All Implemented Interfaces:
WindowFocusListener
,WindowListener
,WindowStateListener
,EventListener
A Window close handler that either closes the frame, or if the frame is not embedded, shuts down the VM.
- Author:
- Thomas Morgner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
windowClosing
(WindowEvent event) Handles the window closing event.Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
-
Constructor Details
-
DefaultCloseHandler
public DefaultCloseHandler()
-
-
Method Details
-
windowClosing
Handles the window closing event.- Specified by:
windowClosing
in interfaceWindowListener
- Overrides:
windowClosing
in classWindowAdapter
- Parameters:
event
- the window event.
-