896 |
} |
} |
897 |
|
|
898 |
/** |
/** |
899 |
* Returns an array of all the objects currently registered as FooListeners |
* Returns all registered {@link EventListener}s of the given |
900 |
* upon this Container. FooListeners are registered using the addFooListener |
* <code>listenerType</code>. |
|
* method. |
|
|
* |
|
|
* @exception ClassCastException If listenerType doesn't specify a class or |
|
|
* interface that implements @see java.util.EventListener. |
|
901 |
* |
* |
902 |
|
* @param listenerType the class of listeners to filter (<code>null</code> |
903 |
|
* not permitted). |
904 |
|
* |
905 |
|
* @return An array of registered listeners. |
906 |
|
* |
907 |
|
* @throws ClassCastException if <code>listenerType</code> does not implement |
908 |
|
* the {@link EventListener} interface. |
909 |
|
* @throws NullPointerException if <code>listenerType</code> is |
910 |
|
* <code>null</code>. |
911 |
|
* |
912 |
|
* @see #getContainerListeners() |
913 |
|
* |
914 |
* @since 1.3 |
* @since 1.3 |
915 |
*/ |
*/ |
916 |
public EventListener[] getListeners(Class listenerType) |
public EventListener[] getListeners(Class listenerType) |