summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-23 07:15:40 +0100
committerSven Gothel <[email protected]>2010-12-23 07:15:40 +0100
commite35038cc3c01b6ad8beb559986102c68fde614b6 (patch)
treeeba219736825127a241ac6ef16659f61b32ebe02
parent3f92d13a9f886b044f8f1c49ff22476e30ba408d (diff)
Add NEWT WindowListener.windowDestroyed() e7778124162aef7004e040dded5de1eaf5e1ece4
-rwxr-xr-xsrc/demos/es1/RedSquare.java6
-rwxr-xr-xsrc/demos/es1/angeles/Main.java1
-rwxr-xr-xsrc/demos/es1/cubefbo/Main.java1
-rwxr-xr-xsrc/demos/es2/RedSquare.java8
-rw-r--r--src/demos/newt/NEWTTest1.java3
-rw-r--r--src/demos/newt/TaskManagerTest1.java3
-rw-r--r--src/demos/newt/TaskManagerTest2.java3
-rwxr-xr-xsrc/demos/readbuffer/Main.java1
8 files changed, 18 insertions, 8 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index a0faf9b..1049ee7 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -40,13 +40,10 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
public void windowRepaint(WindowUpdateEvent e) {
}
-
public void windowResized(WindowEvent e) {
}
-
public void windowMoved(WindowEvent e) {
}
-
public void windowDestroyNotify(WindowEvent e) {
System.out.println("WINDOW-DESTROY NOTIFY "+Thread.currentThread()+" QUIT "+e);
quit=true;
@@ -54,6 +51,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
glAnimator.stop();
}
}
+ public void windowDestroyed(WindowEvent e) {
+ System.out.println("WINDOW-DESTROYED "+Thread.currentThread());
+ }
public void windowGainedFocus(WindowEvent e) { }
public void windowLostFocus(WindowEvent e) { }
diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java
index 495ecc1..743f961 100755
--- a/src/demos/es1/angeles/Main.java
+++ b/src/demos/es1/angeles/Main.java
@@ -19,6 +19,7 @@ public class Main implements WindowListener, MouseListener {
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() > 1) {
diff --git a/src/demos/es1/cubefbo/Main.java b/src/demos/es1/cubefbo/Main.java
index 55261fd..cd26556 100755
--- a/src/demos/es1/cubefbo/Main.java
+++ b/src/demos/es1/cubefbo/Main.java
@@ -19,6 +19,7 @@ public class Main implements WindowListener, MouseListener {
public void windowDestroyNotify(WindowEvent e) {
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
System.out.println("mouseevent: "+e);
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 54c44eb..1d0bcad 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -32,19 +32,17 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
}
public void windowRepaint(WindowUpdateEvent e) { }
-
public void windowResized(WindowEvent e) { }
-
public void windowMoved(WindowEvent e) { }
-
public void windowGainedFocus(WindowEvent e) { }
-
public void windowLostFocus(WindowEvent e) { }
-
public void windowDestroyNotify(WindowEvent e) {
System.out.println("WINDOW-DESTROY NOTIFY "+Thread.currentThread()+" QUIT "+e);
quit = true;
}
+ public void windowDestroyed(WindowEvent e) {
+ System.out.println("WINDOW-DESTROYED "+Thread.currentThread());
+ }
public void keyPressed(KeyEvent e) {
System.out.println("KEY-PRESSED "+Thread.currentThread()+" UNHANDLED "+e);
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index 23bc914..3bcd260 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -37,6 +37,9 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
// stop running ..
running = false;
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
boolean running = true;
public void keyPressed(KeyEvent e) {
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index ff8ae00..cc71f63 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -51,6 +51,9 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
eventMgr.stop();
System.err.println("Window Event Listener DestroyNotify send stop request - DONE");
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
public void keyPressed(KeyEvent e) {
System.err.println("keyPressed "+e);
}
diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java
index 03fff2d..19a01e3 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -34,6 +34,9 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
TaskToolWM.unregisterWindowEvent((Window)e.getSource());
System.err.println("Window Event Listener DestroyNotify send stop request - DONE");
}
+ public void windowDestroyed(WindowEvent e) {
+ System.err.println("windowDestroyed "+e);
+ }
public void keyPressed(KeyEvent e) {
System.err.println("keyPressed "+e);
diff --git a/src/demos/readbuffer/Main.java b/src/demos/readbuffer/Main.java
index 1593817..426bdd7 100755
--- a/src/demos/readbuffer/Main.java
+++ b/src/demos/readbuffer/Main.java
@@ -27,6 +27,7 @@ public class Main implements WindowListener, MouseListener, SurfaceUpdatedListen
System.err.println("********** quit **************");
quit = true;
}
+ public void windowDestroyed(WindowEvent e) { }
public void mouseClicked(MouseEvent e) {
System.out.println("mouseevent: "+e);