EventObject

public class EventObject
extends Object implements Serializable

java.lang.Object
   ↳ java.util.EventObject
ConnectionEvent

An Event object that provides information about the source of a connection-related event. 

HandshakeCompletedEvent This event indicates that an SSL handshake completed on a given SSL connection. 
NodeChangeEvent An event emitted by a Preferences node to indicate that a child of that node has been added or removed. 
PreferenceChangeEvent An event emitted by a Preferences node to indicate that a preference has been added, removed or has had its value changed. 
PropertyChangeEvent A "PropertyChange" event gets delivered whenever a bean changes a "bound" or "constrained" property. 
RowSetEvent An Event object generated when an event occurs to a RowSet object. 
SSLSessionBindingEvent This event is propagated to a SSLSessionBindingListener. 
StatementEvent A StatementEvent is sent to all StatementEventListeners which were registered with a PooledConnection
IndexedPropertyChangeEvent An "IndexedPropertyChange" event gets delivered whenever a component that conforms to the JavaBeans™ specification (a "bean") changes a bound indexed property. 


The root class from which all event state objects shall be derived.

All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.

Summary

Fields

protected Object source

The object on which the Event initially occurred.

Public constructors

EventObject(Object source)

Constructs a prototypical Event.

Public methods

Object getSource()

The object on which the Event initially occurred.

String toString()

Returns a String representation of this EventObject.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Fields

source

Added in API level 1
protected Object source

The object on which the Event initially occurred.

Public constructors

EventObject

Added in API level 1
public EventObject (Object source)

Constructs a prototypical Event.

Parameters
source Object: the object on which the Event initially occurred

Throws
IllegalArgumentException if source is null

Public methods

getSource

Added in API level 1
public Object getSource ()

The object on which the Event initially occurred.

Returns
Object the object on which the Event initially occurred

toString

Added in API level 1
public String toString ()

Returns a String representation of this EventObject.

Returns
String a String representation of this EventObject