Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  
EventObject
  public
  
  
  
  class
  EventObject
  
    extends Object
  
  
  
  
  
      implements
      
        Serializable
      
  
  
  
    
      
        
          Known direct subclasses
          
  
  
    
  
  
    
      
        | 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. 
          
    
         | 
       
      
    
   
   
         
       | 
    
  
  
  
  
    
      
        
          Known indirect subclasses
          
  
  
    
  
  
    
      
        | 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 methods | 
  
  
  
    
        
        
        
        
        
        Object
     | 
  
    
      
      getSource()
      
      
        The object on which the Event initially occurred.
        
    
 
      
     | 
  
  
  
  
  
    
        
        
        
        
        
        String
     | 
  
    
      
      toString()
      
      
        Returns a String representation of this EventObject.
        
    
 
      
     | 
  
  
Inherited methods | 
  
    From class
      
        
          java.lang.Object
        
      
    
    
      
  
  
  
    
        
        
        
        
        
        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
    
protected Object source
    
    
    
  The object on which the Event initially occurred.
    
 
Public constructors
    EventObject
    
public EventObject (Object source)
    
    
    
  Constructs a prototypical Event.
    
    | Parameters | 
      
        source | 
        
          Object: the object on which the Event initially occurred | 
      
    
      
  
 
Public methods
    getSource
    
public Object getSource ()
    
    
    
  The object on which the Event initially occurred.
    
      | Returns | 
      
        Object | 
        the object on which the Event initially occurred | 
      
    
 
    toString
    
public String toString ()
    
    
    
  Returns a String representation of this EventObject.
    
      | Returns | 
      
        String | 
        a String representation of this EventObject | 
      
    
 
 
 
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]