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 voidactionPerformed(java.awt.event.ActionEvent e)(package private) voidcheckEnabled()Disables the action if no items are selected.voidvalueChanged(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:
actionPerformedin 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:
valueChangedin interfacejavax.swing.event.ListSelectionListener
-
-