Class PlaceSelection.SearchAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.download.PlaceSelection.SearchAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,DocumentListener
- Enclosing class:
- PlaceSelection
class PlaceSelection.SearchAction extends AbstractAction implements DocumentListener
Action to perform initial search, and (if query is unchanged) load more results.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
isSearchMore
(package private) String
lastSearchExpression
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description SearchAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
void
changedUpdate(DocumentEvent e)
void
insertUpdate(DocumentEvent e)
void
removeUpdate(DocumentEvent e)
protected void
updateState()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
lastSearchExpression
String lastSearchExpression
-
isSearchMore
boolean isSearchMore
-
-
Constructor Detail
-
SearchAction
SearchAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
updateState
protected final void updateState()
-
changedUpdate
public void changedUpdate(DocumentEvent e)
- Specified by:
changedUpdate
in interfaceDocumentListener
-
insertUpdate
public void insertUpdate(DocumentEvent e)
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
public void removeUpdate(DocumentEvent e)
- Specified by:
removeUpdate
in interfaceDocumentListener
-
-