KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > AWTEvent


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: AWTEvent.java,v $
11    Revision 1.6 2003/12/15 15:54:25 bobintetley
12    Additional core methods
13
14    Revision 1.5 2003/12/14 09:13:38 bobintetley
15    Added CVS log to source headers
16
17 */

18
19
20 package swingwt.awt;
21
22 public class AWTEvent extends java.util.EventObject JavaDoc implements java.io.Serializable JavaDoc {
23     
24     protected int eventID = 0;
25     protected boolean consumed = false;
26     
27     public AWTEvent(Object JavaDoc source) {
28         super(source);
29     }
30     public AWTEvent(Object JavaDoc source, int id) {
31         super(source);
32         eventID = id;
33     }
34     
35     public int getID() {
36         return eventID;
37     }
38     
39     public void setSource(Object JavaDoc newSource) {
40         this.source = newSource;
41     }
42     
43     public boolean isConsumed() {
44         return consumed;
45     }
46     
47     public void consume() {
48         consumed = true;
49     }
50     
51 }
52
Popular Tags