Class SelectionListDialog.SearchAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.SelectionListDialog.SearchAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,MainLayerManager.ActiveLayerChangeListener
- Enclosing class:
- SelectionListDialog
static class SelectionListDialog.SearchAction
extends AbstractAction
implements MainLayerManager.ActiveLayerChangeListener
Launches the search dialog
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCalled whenever the active or edit layer changed.protected voidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
SearchAction
Constructs a newSearchAction.
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
updateEnabledState
-
activeOrEditLayerChanged
Description copied from interface:MainLayerManager.ActiveLayerChangeListenerCalled whenever the active or edit layer changed.You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
- Specified by:
activeOrEditLayerChangedin interfaceMainLayerManager.ActiveLayerChangeListener- Parameters:
e- The change event.
-