Lines Matching defs:listener
62 * Creates a proxy listener for the specified property.
65 * @param listener the listener to process events
66 * @return a proxy listener
68 protected abstract L newProxy(String name, L listener);
71 * Adds a listener to the list of listeners for the specified property.
72 * This listener is called as many times as it was added.
75 * @param listener the listener to process events
77 public final synchronized void add(String name, L listener) {
87 clone[size] = listener;
95 * Removes a listener from the list of listeners for the specified property.
96 * If the listener was added more than once to the same event source,
97 * this listener will be notified one less time after being removed.
100 * @param listener the listener to process events
102 public final synchronized void remove(String name, L listener) {
107 if (listener.equals(array[i])) {
174 for (L listener : listeners) {
175 list.add(listener);
181 for (L listener : entry.getValue()) {
182 list.add(newProxy(name, listener));
207 * at least one listener to be notified.
210 * @return {@code true} if at least one listener exists or
235 * Extracts a real listener from the proxy listener.
238 * @return a real listener
240 public abstract L extract(L listener);