source: trunk/src/gcc/libjava/java/awt/event/WindowEvent.java@ 154

Last change on this file since 154 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1/* Copyright (C) 1999, 2000 Free Software Foundation
2
3 This file is part of libjava.
4
5This software is copyrighted work licensed under the terms of the
6Libjava License. Please consult the file "LIBJAVA_LICENSE" for
7details. */
8
9package java.awt.event;
10import java.awt.*;
11
12/* Status: Believed complete and correct to JDK 1.2. */
13
14public class WindowEvent extends ComponentEvent
15{
16 public static final int WINDOW_ACTIVATED = 205;
17 public static final int WINDOW_CLOSED = 202;
18 public static final int WINDOW_CLOSING = 201;
19 public static final int WINDOW_DEACTIVATED = 206;
20 public static final int WINDOW_DEICONIFIED = 204;
21 public static final int WINDOW_FIRST = 200;
22 public static final int WINDOW_ICONIFIED = 203;
23 public static final int WINDOW_LAST = 206;
24 public static final int WINDOW_OPENED = 200;
25
26 public WindowEvent (Window source, int id)
27 {
28 super (source, id);
29 }
30
31 public Window getWindow ()
32 {
33 return (Window) source;
34 }
35
36 public String paramString ()
37 {
38 String r = "";
39 switch (id)
40 {
41 case WINDOW_ACTIVATED:
42 r = "WINDOW_ACTIVATED";
43 break;
44 case WINDOW_CLOSED:
45 r = "WINDOW_CLOSED";
46 break;
47 case WINDOW_CLOSING:
48 r = "WINDOW_CLOSING";
49 break;
50 case WINDOW_DEACTIVATED:
51 r = "WINDOW_DEACTIVATED";
52 break;
53 case WINDOW_DEICONIFIED:
54 r = "WINDOW_DEICONIFIED";
55 break;
56 case WINDOW_ICONIFIED:
57 r = "WINDOW_ICONIFIED";
58 break;
59 case WINDOW_OPENED:
60 r = "WINDOW_OPENED";
61 break;
62 }
63 return r;
64 }
65}
Note: See TracBrowser for help on using the repository browser.