classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: JComponent.getListeners()


From: David Gilbert
Subject: [cp-patches] FYI: JComponent.getListeners()
Date: Wed, 23 Nov 2005 15:47:25 +0000
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051026)

I updated the API docs for this method:

2005-11-23  David Gilbert  <address@hidden>

        * javax/swing/JComponent.java
        (getListeners): Updated API docs.

Regards,

Dave
Index: javax/swing/JComponent.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v
retrieving revision 1.89
diff -u -r1.89 JComponent.java
--- javax/swing/JComponent.java 18 Nov 2005 00:27:08 -0000      1.89
+++ javax/swing/JComponent.java 23 Nov 2005 15:37:06 -0000
@@ -801,14 +801,23 @@
   }
 
   /**
-   * Return all registered listeners of a particular type.
-   *
-   * @param listenerType The type of listener to return
-   *
-   * @return All listeners in the address@hidden #listenerList} which 
-   * are of the specified type
+   * Returns all registered address@hidden EventListener}s of the given 
+   * <code>listenerType</code>.
    *
+   * @param listenerType the class of listeners to filter (<code>null</code> 
+   *                     not permitted).
+   *                     
+   * @return An array of registered listeners.
+   * 
+   * @throws ClassCastException if <code>listenerType</code> does not implement
+   *                            the address@hidden EventListener} interface.
+   * @throws NullPointerException if <code>listenerType</code> is 
+   *                              <code>null</code>.
+   *                            
+   * @see #getAncestorListeners()
    * @see #listenerList
+   * 
+   * @since 1.3
    */
   public EventListener[] getListeners(Class listenerType)
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]