mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 07:44:45 +08:00
b996061366
2000-08-09 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.am: Move beans and applet classes to awt_java_source_files. * Makefile.in: Rebuilt. * java/awt/Color.java (getTransparency): New method. * java/awt/Component.java: Various updates. * java/awt/Container.java (removeNotify): Call super.removeNotify() after dealing with children. * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport. * java/awt/Window.java: Various new methods and updates. * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID to int for switch. * java/awt/event/KeyEvent.java (paramString): Initialize `r'. * java/awt/event/WindowEvent.java (paramString): Ditto. * java/awt/geom/Dimension2D.java (clone): Wrap super call with try/catch block. * java/awt/geom/Point2D.java (clone): Ditto. * java/awt/geom/RectangularShape.java (clone): Ditto. * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha, isAlphaPremultiplied): Make package-private, not private. From-SVN: r35589
66 lines
1.5 KiB
Java
66 lines
1.5 KiB
Java
/* Copyright (C) 1999, 2000 Free Software Foundation
|
|
|
|
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;
|
|
import java.awt.*;
|
|
|
|
/* Status: Believed complete and correct to JDK 1.2. */
|
|
|
|
public class WindowEvent extends ComponentEvent
|
|
{
|
|
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 ()
|
|
{
|
|
String r = "";
|
|
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;
|
|
}
|
|
}
|