aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/event/WindowEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/event/WindowEvent.java')
-rw-r--r--libjava/java/awt/event/WindowEvent.java29
1 files changed, 25 insertions, 4 deletions
diff --git a/libjava/java/awt/event/WindowEvent.java b/libjava/java/awt/event/WindowEvent.java
index ac04921..7e00f0e 100644
--- a/libjava/java/awt/event/WindowEvent.java
+++ b/libjava/java/awt/event/WindowEvent.java
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 1999, 2000 Free Software Foundation
This file is part of libjava.
@@ -7,13 +7,34 @@ Libjava License. Please consult the file "LIBJAVA_LICENSE" for
details. */
package java.awt.event;
+import java.awt.*;
-/* A very incomplete placeholder. */
+/* Status: Believed complete and correct to JDK 1.2. */
public class WindowEvent extends ComponentEvent
{
- public WindowEvent (Object source, int id)
+ public static final int WINDOW_ACTIVATED = 205;
+ public static final int WINDOW_CLOSED = 202;
+ public static final int WINDOW_CLOSING = 201;
+ public static final int WINDOW_DEACTIVATED = 206;
+ public static final int WINDOW_DEICONIFIED = 204;
+ public static final int WINDOW_FIRST = 200;
+ public static final int WINDOW_ICONIFIED = 203;
+ public static final int WINDOW_LAST = 206;
+ public static final int WINDOW_OPENED = 200;
+
+ public WindowEvent (Window source, int id)
+ {
+ super (source, id);
+ }
+
+ public Window getWindow ()
+ {
+ return (Window) source;
+ }
+
+ public String paramString ()
{
- super(source, id);
+ return super.paramString ();
}
}