java.util
Class EventObject

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

public class EventObject
extends java.lang.Object
implements Serializable

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

See Also:
EventListener, Serialized Form

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

Constructor Detail

EventObject

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

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

getSource

public java.lang.Object getSource()
Answers the event source.

Returns:
the object which fired the event

toString

public java.lang.String toString()
Answers the string representation of this EventObject.

Returns:
the string representation of this EventObject