Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.util
Class EventObject  view EventObject download EventObject.java

java.lang.Object
  extended byjava.util.EventObject
All Implemented Interfaces:
java.io.Serializable

public class EventObject
extends java.lang.Object
implements java.io.Serializable

Represents Events fired by Objects.

Since:
1.1

Field Summary
private static long serialVersionUID
          Compatible with JDK 1.1+.
protected  java.lang.Object source
          The source object; in other words, the object which this event takes place on.
 
Constructor Summary
EventObject(java.lang.Object source)
          Constructs an EventObject with the specified source.
 
Method Summary
 java.lang.Object getSource()
          Returns the source of the event.
 java.lang.String toString()
          Converts the event to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.1+.

See Also:
Constant Field Values

source

protected transient java.lang.Object source
The source object; in other words, the object which this event takes place on.

Constructor Detail

EventObject

public EventObject(java.lang.Object source)
Constructs an EventObject with the specified source.

Method Detail

getSource

public java.lang.Object getSource()
Returns the source of the event.


toString

public java.lang.String toString()
Converts the event to a String. The format is not specified, but by observation, the JDK uses: getClass().getName() + "[source=" + source + "]";.