Lines Matching defs:listener
52 public void addNotificationListener(NotificationListener listener,
56 if (listener == null) {
60 /* Adding a new listener takes O(n) time where n is the number
71 efficient solution would be to clone the listener list
76 newList.add(new ListenerInfo(listener, filter, handback));
81 public void removeNotificationListener(NotificationListener listener)
92 if (li.listener == listener)
101 public void removeNotificationListener(NotificationListener listener,
114 if (li.listener == listener) {
127 /* We found this listener, but not with the given filter
156 li.listener.handleNotification(notification, li.handback);
159 throw new AssertionError("Error in invoking listener");
172 public NotificationListener listener;
176 public ListenerInfo(NotificationListener listener,
179 this.listener = listener;
188 * is set to a new object when a listener is added or removed,