Class OverpassDownloadSource.OverpassDownloadSourcePanel.EditSnippetAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.download.OverpassDownloadSource.OverpassDownloadSourcePanel.EditSnippetAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,javax.swing.event.ListSelectionListener
- Enclosing class:
- OverpassDownloadSource.OverpassDownloadSourcePanel
private class OverpassDownloadSource.OverpassDownloadSourcePanel.EditSnippetAction extends javax.swing.AbstractAction implements javax.swing.event.ListSelectionListener
Action that delegates snippet edit toUserQueryList.editSelectedItem()
.
-
-
Constructor Summary
Constructors Constructor Description EditSnippetAction()
Constructs a newEditSnippetAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
(package private) void
checkEnabled()
Disables the action if no items are selected.void
valueChanged(javax.swing.event.ListSelectionEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
EditSnippetAction
EditSnippetAction()
Constructs a newEditSnippetAction
.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
checkEnabled
void checkEnabled()
Disables the action if no items are selected.
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
-
-