summaryrefslogtreecommitdiff
path: root/javax/swing/JComponent.java
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2005-11-23 15:39:11 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2005-11-23 15:39:11 +0000
commit57ad1ca205c658009bd2db5e949fc916358d2c69 (patch)
treee49258d2fc983c4cd449d51104d5547a25a78281 /javax/swing/JComponent.java
parent78236b62ebf604f10ed76dc5f9f746fc1f5f6cd4 (diff)
downloadclasspath-57ad1ca205c658009bd2db5e949fc916358d2c69.tar.gz
2005-11-23 David Gilbert <david.gilbert@object-refinery.com>
* javax/swing/JComponent.java (getListeners): Updated API docs.
Diffstat (limited to 'javax/swing/JComponent.java')
-rw-r--r--javax/swing/JComponent.java21
1 files changed, 15 insertions, 6 deletions
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index 482241ada..fda9ae70c 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -801,14 +801,23 @@ public abstract class JComponent extends Container implements Serializable
}
/**
- * Return all registered listeners of a particular type.
- *
- * @param listenerType The type of listener to return
- *
- * @return All listeners in the {@link #listenerList} which
- * are of the specified type
+ * Returns all registered {@link 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 {@link EventListener} interface.
+ * @throws NullPointerException if <code>listenerType</code> is
+ * <code>null</code>.
+ *
+ * @see #getAncestorListeners()
* @see #listenerList
+ *
+ * @since 1.3
*/
public EventListener[] getListeners(Class listenerType)
{