Lines Matching defs:listenerClass
49 * @param listenerClass the type of the listeners to be managed by this object
51 * @throws NullPointerException if <code>listenerClass</code> is
53 * @throws ClassCastException if <code>listenerClass</code> is not
56 public EventListenerAggregate(Class listenerClass) {
57 if (listenerClass == null) {
61 if (!EventListener.class.isAssignableFrom(listenerClass)) {
62 throw new ClassCastException("listener class " + listenerClass +
66 listenerList = (EventListener[])Array.newInstance(listenerClass, 0);
79 * an instatce of <code>listenerClass</code> specified
83 Class listenerClass = getListenerClass();
85 if (!listenerClass.isInstance(listener)) { // null is not an instance of any class
87 "an instance of listener class " + listenerClass);
90 EventListener[] tmp = (EventListener[])Array.newInstance(listenerClass, listenerList.length + 1);
106 * an instatce of <code>listenerClass</code> specified
110 Class listenerClass = getListenerClass();
112 if (!listenerClass.isInstance(listener)) { // null is not an instance of any class
114 "an instance of listener class " + listenerClass);
119 EventListener[] tmp = (EventListener[])Array.newInstance(listenerClass,
135 * The runtime type of the returned array is "array of <code>listenerClass</code>"
136 * (<code>listenerClass</code> has been specified as a parameter to
150 * The runtime type of the returned array is "array of <code>listenerClass</code>"
151 * (<code>listenerClass</code> has been specified as a parameter to