/** * Remove the recent searches popup from <code>searchField</code> when * installed and stop listening for {@link ActionEvent}s fired by the * search field. * * @param searchField * uninstall recent searches popup menu */ public void uninstall(JXSearchField searchField) { searchField.removeActionListener(this); if (searchField.getFindPopupMenu() instanceof RecentSearchesPopup) { removeChangeListener((ChangeListener) searchField.getFindPopupMenu()); searchField.setFindPopupMenu(null); } }
/** * Remove the recent searches popup from <code>searchField</code> when * installed and stop listening for {@link ActionEvent}s fired by the * search field. * * @param searchField * uninstall recent searches popup menu */ public void uninstall(JXSearchField searchField) { searchField.removeActionListener(this); if (searchField.getFindPopupMenu() instanceof RecentSearchesPopup) { removeChangeListener((ChangeListener) searchField.getFindPopupMenu()); searchField.setFindPopupMenu(null); } }
/** * Remove the recent searches popup from <code>searchField</code> when * installed and stop listening for {@link ActionEvent}s fired by the * search field. * * @param searchField * uninstall recent searches popup menu */ public void uninstall(JXSearchField searchField) { searchField.removeActionListener(this); if (searchField.getFindPopupMenu() instanceof RecentSearchesPopup) { removeChangeListener((ChangeListener) searchField.getFindPopupMenu()); searchField.setFindPopupMenu(null); } }
/** * Remove the recent searches popup from <code>searchField</code> when * installed and stop listening for {@link ActionEvent}s fired by the * search field. * * @param searchField * uninstall recent searches popup menu */ public void uninstall(JXSearchField searchField) { searchField.removeActionListener(this); if (searchField.getFindPopupMenu() instanceof RecentSearchesPopup) { removeChangeListener((ChangeListener) searchField.getFindPopupMenu()); searchField.setFindPopupMenu(null); } }