java.util.EventObject
java.lang.Object
java.awt.AWTEvent
java.io.Serializable
New as of JDK 1.1
The EventObject class is the superclass of all other classes that represent events in the Java 1.1 event model. The class is named EventObject to avoid confusion with java.awt.Event, which was used to represent events in the old Java 1.0 event model.
public class java.util.EventObject extends java.lang.Object implements java.io.Serializable { // Variables protected transient Object source; // Constructors public EventObject(Object source); // Instance Methods public Object getSource(); public String toString(); }
The object that generated this EventObject.
The object that generated this EventObject.
This constructor creates an EventObject whose source is the given object.
The object that generated this EventObject.
This method returns the object that is the source of this EventObject.
A string that represents this EventObject.
Object.toString()
This method returns a string representation of this EventObject.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals() |
Object |
finalize() |
Object |
getClass() |
Object |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
AWTEvent, Event, Serializable