1 |
/* EventObject.java -- Represent events fired by objects |
/* EventObject.java -- represents an event on an object |
2 |
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
90 |
/** |
/** |
91 |
* Converts the event to a String. The format is not specified, but by |
* Converts the event to a String. The format is not specified, but by |
92 |
* observation, the JDK uses: |
* observation, the JDK uses: |
93 |
* <code>getClass() + "[source=" + source + "]";</code>. |
* <code>getClass().getName() + "[source=" + source + "]";</code>. |
94 |
* |
* |
95 |
* @return String representation of the Event |
* @return String representation of the Event |
96 |
*/ |
*/ |
97 |
public String toString() |
public String toString() |
98 |
{ |
{ |
99 |
return getClass() + "[source=" + source + "]"; |
return getClass().getName() + "[source=" + source + "]"; |
100 |
} |
} |
101 |
} |
} // class EventObject |