FileDocCategorySizeDatePackage
EventObject.javaAPI DocAndroid 1.5 API2167Wed May 06 22:41:04 BST 2009java.util

EventObject

public class EventObject extends Object implements Serializable
{@code EventObject}s represent events. Typically applications subclass this class to add event specific information.
see
EventListener
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
protected transient Object
source
The event source.
Constructors Summary
public EventObject(Object source)
Constructs a new instance of this class.

param
source the object which fired the event.
since
Android 1.0


                                       
       
        if (source != null) {
            this.source = source;
        } else {
            throw new IllegalArgumentException();
        }
    
Methods Summary
public java.lang.ObjectgetSource()
Returns the event source.

return
the object which fired the event.
since
Android 1.0

        return source;
    
public java.lang.StringtoString()
Returns the string representation of this {@code EventObject}.

return
the string representation of this {@code EventObject}.
since
Android 1.0

        return getClass().getName() + "[source=" + source + ']"; //$NON-NLS-1$