/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Install a recent the searches popup menu returned by * {@link #createPopupMenu(JXSearchField)} on <code>searchField</code>. * Also registers an {@link ActionListener} on <code>searchField</code> * and adds the search string to the list of recent searches whenever a * {@link ActionEvent} is received. * * Uses {@link NativeSearchFieldSupport} to achieve compatibility with the native * search field support provided by the Mac Look And Feel since Mac OS 10.5. * * @param searchField * the search field to install a recent searches popup menu on */ public void install(JTextField searchField) { searchField.addActionListener(this); NativeSearchFieldSupport.setFindPopupMenu(searchField, createPopupMenu(searchField)); }
/** * Sets the popup menu that will be displayed when the popup button is * clicked. If a find popup menu is set and * {@link #isUseSeperatePopupButton()} returns <code>false</code>, the * popup button will be displayed instead of the find button. Otherwise the * popup button will be displayed in addition to the find button. * * The find popup menu is managed using {@link NativeSearchFieldSupport} to * achieve compatibility with the native search field support provided by * the Mac Look And Feel since Mac OS 10.5. * * If a recent searches save key has been set and therefore a recent * searches popup menu is installed, this method does nothing. You must * first remove the recent searches save key, by calling * {@link #setRecentSearchesSaveKey(String)} with a <code>null</code> * parameter. * * @see #setRecentSearchesSaveKey(String) * @see RecentSearches * @param findPopupMenu * the popup menu, which will be displayed when the popup button * is clicked */ public void setFindPopupMenu(JPopupMenu findPopupMenu) { if (isManagingRecentSearches()) { return; } NativeSearchFieldSupport.setFindPopupMenu(this, findPopupMenu); }
/** * Sets the popup menu that will be displayed when the popup button is * clicked. If a find popup menu is set and * {@link #isUseSeperatePopupButton()} returns <code>false</code>, the * popup button will be displayed instead of the find button. Otherwise the * popup button will be displayed in addition to the find button. * * The find popup menu is managed using {@link NativeSearchFieldSupport} to * achieve compatibility with the native search field support provided by * the Mac Look And Feel since Mac OS 10.5. * * If a recent searches save key has been set and therefore a recent * searches popup menu is installed, this method does nothing. You must * first remove the recent searches save key, by calling * {@link #setRecentSearchesSaveKey(String)} with a <code>null</code> * parameter. * * @see #setRecentSearchesSaveKey(String) * @see RecentSearches * @param findPopupMenu * the popup menu, which will be displayed when the popup button * is clicked */ public void setFindPopupMenu(JPopupMenu findPopupMenu) { if (isManagingRecentSearches()) { return; } NativeSearchFieldSupport.setFindPopupMenu(this, findPopupMenu); }
/** * Sets the popup menu that will be displayed when the popup button is * clicked. If a find popup menu is set and * {@link #isUseSeperatePopupButton()} returns <code>false</code>, the * popup button will be displayed instead of the find button. Otherwise the * popup button will be displayed in addition to the find button. * * The find popup menu is managed using {@link NativeSearchFieldSupport} to * achieve compatibility with the native search field support provided by * the Mac Look And Feel since Mac OS 10.5. * * If a recent searches save key has been set and therefore a recent * searches popup menu is installed, this method does nothing. You must * first remove the recent searches save key, by calling * {@link #setRecentSearchesSaveKey(String)} with a <code>null</code> * parameter. * * @see #setRecentSearchesSaveKey(String) * @see RecentSearches * @param findPopupMenu * the popup menu, which will be displayed when the popup button * is clicked */ public void setFindPopupMenu(JPopupMenu findPopupMenu) { if (isManagingRecentSearches()) { return; } NativeSearchFieldSupport.setFindPopupMenu(this, findPopupMenu); }
/** * Sets the popup menu that will be displayed when the popup button is * clicked. If a find popup menu is set and * {@link #isUseSeperatePopupButton()} returns <code>false</code>, the * popup button will be displayed instead of the find button. Otherwise the * popup button will be displayed in addition to the find button. * * The find popup menu is managed using {@link NativeSearchFieldSupport} to * achieve compatibility with the native search field support provided by * the Mac Look And Feel since Mac OS 10.5. * * If a recent searches save key has been set and therefore a recent * searches popup menu is installed, this method does nothing. You must * first remove the recent searches save key, by calling * {@link #setRecentSearchesSaveKey(String)} with a <code>null</code> * parameter. * * @see #setRecentSearchesSaveKey(String) * @see RecentSearches * @param findPopupMenu * the popup menu, which will be displayed when the popup button * is clicked */ public void setFindPopupMenu(JPopupMenu findPopupMenu) { if (isManagingRecentSearches()) { return; } NativeSearchFieldSupport.setFindPopupMenu(this, findPopupMenu); }
NativeSearchFieldSupport.setFindPopupMenu(lbl, NativeSearchFieldSupport .getFindPopupMenu(txtField));
NativeSearchFieldSupport.setFindPopupMenu(lbl, NativeSearchFieldSupport .getFindPopupMenu(txtField));
NativeSearchFieldSupport.setFindPopupMenu(lbl, NativeSearchFieldSupport .getFindPopupMenu(txtField));
NativeSearchFieldSupport.setFindPopupMenu(lbl, NativeSearchFieldSupport .getFindPopupMenu(txtField));