801 |
} |
} |
802 |
|
|
803 |
/** |
/** |
804 |
* Return all registered listeners of a particular type. |
* Returns all registered {@link EventListener}s of the given |
805 |
* |
* <code>listenerType</code>. |
|
* @param listenerType The type of listener to return |
|
|
* |
|
|
* @return All listeners in the {@link #listenerList} which |
|
|
* are of the specified type |
|
806 |
* |
* |
807 |
|
* @param listenerType the class of listeners to filter (<code>null</code> |
808 |
|
* not permitted). |
809 |
|
* |
810 |
|
* @return An array of registered listeners. |
811 |
|
* |
812 |
|
* @throws ClassCastException if <code>listenerType</code> does not implement |
813 |
|
* the {@link EventListener} interface. |
814 |
|
* @throws NullPointerException if <code>listenerType</code> is |
815 |
|
* <code>null</code>. |
816 |
|
* |
817 |
|
* @see #getAncestorListeners() |
818 |
* @see #listenerList |
* @see #listenerList |
819 |
|
* |
820 |
|
* @since 1.3 |
821 |
*/ |
*/ |
822 |
public EventListener[] getListeners(Class listenerType) |
public EventListener[] getListeners(Class listenerType) |
823 |
{ |
{ |