Class DownloadDialog.DownloadAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.download.DownloadDialog.DownloadAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Enclosing class:
- DownloadDialog
Action that is executed when the download button is pressed.
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidvoidrun()Starts the download and closes the dialog, if all requirements for the current download source are met.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
newLayer
-
-
Constructor Details
-
DownloadAction
DownloadAction(boolean newLayer)
-
-
Method Details
-
run
Starts the download and closes the dialog, if all requirements for the current download source are met. Otherwise the download is not started and the dialog remains visible. -
actionPerformed
-