Lines Matching refs:listener
37 EventLog listener = new EventLog();
38 support.addPropertyChangeListener(listener);
42 assertEquals(Arrays.<PropertyChangeEvent>asList(nullToNull), listener.log);
48 EventLog listener = new EventLog();
49 support.addPropertyChangeListener(listener);
53 assertEquals(Arrays.<PropertyChangeEvent>asList(), listener.log);
177 PropertyChangeListener listener = new PropertyChangeListener() {
180 support.addPropertyChangeListener("a", listener);
185 assertTrue(p1 != listener); // weird but consistent with the RI
187 assertEquals(listener, p1.getListener());
193 PropertyChangeListener listener = new PropertyChangeListener() {
196 PropertyChangeListenerProxy proxy = new PropertyChangeListenerProxy("a", listener);
206 assertEquals(listener, p1.getListener());
251 for (PropertyChangeListener listener : listeners) {
252 result.add(describe(listener));
258 private String describe(EventListener listener) {
259 if (listener instanceof PropertyChangeListenerProxy) {
260 PropertyChangeListenerProxy proxy = (PropertyChangeListenerProxy) listener;
263 return listener.toString();