2000-04-09 12:13:27 +08:00
|
|
|
/* Copyright (C) 1999, 2000 Free Software Foundation
|
1999-05-05 19:05:57 +08:00
|
|
|
|
|
|
|
This file is part of libjava.
|
|
|
|
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
package java.awt.event;
|
2000-04-09 12:13:27 +08:00
|
|
|
import java.awt.*;
|
1999-05-05 19:05:57 +08:00
|
|
|
|
2000-04-09 12:13:27 +08:00
|
|
|
/* Status: Believed complete and correct to JDK 1.2. */
|
1999-05-05 19:05:57 +08:00
|
|
|
|
|
|
|
public class WindowEvent extends ComponentEvent
|
|
|
|
{
|
2000-04-09 12:13:27 +08:00
|
|
|
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 ()
|
1999-05-05 19:05:57 +08:00
|
|
|
{
|
2000-08-09 21:01:44 +08:00
|
|
|
String r = "";
|
2000-07-12 11:32:07 +08:00
|
|
|
switch (id)
|
|
|
|
{
|
|
|
|
case WINDOW_ACTIVATED:
|
|
|
|
r = "WINDOW_ACTIVATED";
|
|
|
|
break;
|
|
|
|
case WINDOW_CLOSED:
|
|
|
|
r = "WINDOW_CLOSED";
|
|
|
|
break;
|
|
|
|
case WINDOW_CLOSING:
|
|
|
|
r = "WINDOW_CLOSING";
|
|
|
|
break;
|
|
|
|
case WINDOW_DEACTIVATED:
|
|
|
|
r = "WINDOW_DEACTIVATED";
|
|
|
|
break;
|
|
|
|
case WINDOW_DEICONIFIED:
|
|
|
|
r = "WINDOW_DEICONIFIED";
|
|
|
|
break;
|
|
|
|
case WINDOW_ICONIFIED:
|
|
|
|
r = "WINDOW_ICONIFIED";
|
|
|
|
break;
|
|
|
|
case WINDOW_OPENED:
|
|
|
|
r = "WINDOW_OPENED";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return r;
|
1999-05-05 19:05:57 +08:00
|
|
|
}
|
|
|
|
}
|