OSDN Git Service

* All files: Updated copyright information.
[pf3gnuchains/gcc-fork.git] / libjava / java / util / EventObject.java
1 // EventObject.java - Represent events fired by objects.
2
3 /* Copyright (C) 1998, 1999  Free Software Foundation
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10  
11 package java.util;
12
13 /**
14  * @author Tom Tromey <tromey@cygnus.com>
15  * @date December 12, 1998
16  */
17 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
18  * "The Java Language Specification", ISBN 0-201-63451-1
19  * Status:  Believed complete, but not fully correct.
20  */
21
22 public class EventObject implements java.io.Serializable
23 {
24   public EventObject (Object source)
25     {
26       this.source = source;
27     }
28
29   public Object getSource ()
30     {
31       return source;
32     }
33
34   public String toString ()
35     {
36       // FIXME.
37       return getSource().toString();
38     }
39
40   // Source of the event.
41   protected transient Object source;
42 }