/** * Sets {@link #searchField}s text to the {@link ActionEvent}s action * command and call {@link JXSearchField#postActionEvent()} to fire an * {@link ActionEvent}, if <code>e</code>s source is not the clear * menu item. If the source is the clear menu item, all recent searches * will be removed. */ @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { recentSearches.removeAll(); } else { searchField.setText(e.getActionCommand()); searchField.postActionEvent(); } }
/** * Sets {@link #searchField}s text to the {@link ActionEvent}s action * command and call {@link JXSearchField#postActionEvent()} to fire an * {@link ActionEvent}, if <code>e</code>s source is not the clear * menu item. If the source is the clear menu item, all recent searches * will be removed. */ @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { recentSearches.removeAll(); } else { searchField.setText(e.getActionCommand()); searchField.postActionEvent(); } }
/** * Sets {@link #searchField}s text to the {@link ActionEvent}s action * command and call {@link JXSearchField#postActionEvent()} to fire an * {@link ActionEvent}, if <code>e</code>s source is not the clear * menu item. If the source is the clear menu item, all recent searches * will be removed. */ @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { recentSearches.removeAll(); } else { searchField.setText(e.getActionCommand()); searchField.postActionEvent(); } }
/** * Sets {@link #searchField}s text to the {@link ActionEvent}s action * command and call {@link JXSearchField#postActionEvent()} to fire an * {@link ActionEvent}, if <code>e</code>s source is not the clear * menu item. If the source is the clear menu item, all recent searches * will be removed. */ @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == clear) { recentSearches.removeAll(); } else { searchField.setText(e.getActionCommand()); searchField.postActionEvent(); } }