Build 1.0_r1(from source)

java.util
Class EventObject

java.lang.Object
  extended by java.util.EventObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionEvent, HandshakeCompletedEvent, NodeChangeEvent, PreferenceChangeEvent, RowSetEvent, SSLSessionBindingEvent

public class EventObject
extends Object
implements Serializable

EventObjects represent events. Typically applications subclass this class to add event specific information.

See Also:
EventListener, Serialized Form

Field Summary
protected  Object source
          The event source.
 
Constructor Summary
EventObject(Object source)
          Constructs a new instance of this class.
 
Method Summary
 Object getSource()
          Returns the event source.
 String toString()
          Returns the string representation of this EventObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected transient Object source
The event source.

Constructor Detail

EventObject

public EventObject(Object source)
Constructs a new instance of this class.

Parameters:
source - the object which fired the event
Method Detail

getSource

public Object getSource()
Returns the event source.

Returns:
the object which fired the event

toString

public String toString()
Returns the string representation of this EventObject.

Overrides:
toString in class Object
Returns:
the string representation of this EventObject

Build 1.0_r1(from source)

Please submit a feedback, bug or feature