KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > event > InternalFrameEvent


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: InternalFrameEvent.java,v $
11    Revision 1.6 2003/12/14 09:13:38 bobintetley
12    Added CVS log to source headers
13
14 */

15
16
17 package swingwtx.swing.event;
18
19 import swingwtx.swing.*;
20 import swingwt.awt.*;
21
22 public class InternalFrameEvent extends AWTEvent implements java.io.Serializable JavaDoc {
23     
24     public static final int INTERNAL_FRAME_OPENED = 0;
25     public static final int INTERNAL_FRAME_CLOSING = 1;
26     public static final int INTERNAL_FRAME_CLOSED = 2;
27     public static final int INTERNAL_FRAME_ICONIFIED = 3;
28     public static final int INTERNAL_FRAME_DEICONIFIED = 4;
29     public static final int INTERNAL_FRAME_ACTIVATED = 5;
30     public static final int INTERNAL_FRAME_DEACTIVATED = 6;
31     public static final int INTERNAL_FRAME_GAINED_FOCUS = 7;
32     public static final int INTERNAL_FRAME_LOST_FOCUS = 8;
33     public static final int INTERNAL_FRAME_STATE_CHANGED = 9;
34     
35     public InternalFrameEvent(Object JavaDoc source, int id) {
36         super(source, id);
37     }
38     
39     public JInternalFrame getInternalFrame() {
40         return (JInternalFrame) this.getSource();
41     }
42     
43 }
44
Popular Tags