-
- /**
- * Adds the specified action listener to receive action events from this
- * {@link SearchBar}.
- *
- * @param listener the action listener to be added
- */
- public synchronized void addActionListener(ActionListener listener) {
- sourceTab.addActionListener(listener);
- authorTab.addActionListener(listener);
- tagsTab.addActionListener(listener);
- }
-
- /**
- * Removes the specified action listener so that it no longer receives action
- * events from this {@link SearchBar}.
- *
- * @param listener the action listener to be removed
- */
- public synchronized void removeActionListener(ActionListener listener) {
- sourceTab.removeActionListener(listener);
- authorTab.removeActionListener(listener);
- tagsTab.removeActionListener(listener);
- }