* All files: Updated copyright to reflect Cygnus purchase.
[official-gcc.git] / libjava / java / util / EventObject.java
blob2f338c9a6906b72b4177d6106084196bd054ffae
1 // EventObject.java - Represent events fired by objects.
3 /* Copyright (C) 1998, 1999 Red Hat, Inc.
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 details. */
11 package java.util;
13 /**
14 * @author Tom Tromey <tromey@cygnus.com>
15 * @date December 12, 1998
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.
22 public class EventObject implements java.io.Serializable
24 public EventObject (Object source)
26 this.source = source;
29 public Object getSource ()
31 return source;
34 public String toString ()
36 // FIXME.
37 return getSource().toString();
40 // Source of the event.
41 protected transient Object source;