From 2f63a43fd6ff9964251c43e248c51bc821f3ecbd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 28 Jan 2013 16:15:50 +0100 Subject: Add WindowClosingProtocol impact detail on WindowListener.windowDestroyNotify(..) --- src/newt/classes/com/jogamp/newt/event/WindowListener.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/newt/classes/com') diff --git a/src/newt/classes/com/jogamp/newt/event/WindowListener.java b/src/newt/classes/com/jogamp/newt/event/WindowListener.java index e841a06cf..011e1f654 100644 --- a/src/newt/classes/com/jogamp/newt/event/WindowListener.java +++ b/src/newt/classes/com/jogamp/newt/event/WindowListener.java @@ -34,6 +34,8 @@ package com.jogamp.newt.event; +import javax.media.nativewindow.WindowClosingProtocol; + public interface WindowListener extends NEWTEventListener { /** Window is resized, your application shall respect the new window dimension. A repaint is recommended. */ public void windowResized(WindowEvent e); @@ -41,7 +43,14 @@ public interface WindowListener extends NEWTEventListener { /** Window has been moved. */ public void windowMoved(WindowEvent e); - /** Window will be destroyed. Release of resources is recommended. */ + /** + * Window destruction has been requested. + *

+ * Depending on the {@link WindowClosingProtocol#getDefaultCloseOperation() default close operation}, + * the window maybe destroyed or not. + *

+ * In case the window will be destroyed (see above), release of resources is recommended. + **/ public void windowDestroyNotify(WindowEvent e); /** Window has been destroyed.*/ -- cgit v1.2.3