Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util

Class EventObject

java.lang.Object
|
+--java.util.EventObject

All Implemented Interfaces:

Serializable


public class EventObject

extends Object

implements Serializable

Represents Events fired by Objects.

Since:Author:See Also:

Field Summary

transient java.lang.Objectsource

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.ObjectgetSource()

Returns the source of the event.
java.lang.StringtoString()

Converts the event to a String.

Field Details

source

protected transient Object source

The source object; in other words, the object which this event takes place on.


Constructor Details

EventObject

public EventObject(java.lang.Object source)

Constructs an EventObject with the specified source.

Parameters:

Throws:


Method Details

getSource

public Object getSource()

Returns the source of the event.

Returns:


toString

public String toString()

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

Returns: