Lines Matching refs:listener
76 * // create a action listener to listen for default action executed on the tray icon
77 * {@link java.awt.event.ActionListener} listener = new {@link java.awt.event.ActionListener ActionListener}() {
87 * defaultItem.addActionListener(listener);
93 * trayIcon.{@link TrayIcon#addActionListener(java.awt.event.ActionListener) addActionListener}(listener);
205 * both the action listener and the popup menu. See the {@link
399 * The {@code listener} listens to property changes only in this context.
401 * If {@code listener} is {@code null}, no exception is thrown
405 * @param listener the property change listener to be added
411 PropertyChangeListener listener)
413 if (listener == null) {
416 getCurrentChangeSupport().addPropertyChangeListener(propertyName, listener);
420 * Removes a {@code PropertyChangeListener} from the listener list
425 * If {@code propertyName} or {@code listener} is {@code null} or invalid,
429 * @param listener the PropertyChangeListener to be removed
435 PropertyChangeListener listener)
437 if (listener == null) {
440 getCurrentChangeSupport().removePropertyChangeListener(propertyName, listener);