Package org.openstreetmap.josm.gui.io
Class UploadDialog.UploadAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.io.UploadDialog.UploadAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- UploadDialog
static class UploadDialog.UploadAction extends AbstractAction
Handles an upload.
-
-
Field Summary
Fields Modifier and Type Field Description private IUploadDialog
dialog
-
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 UploadAction(IUploadDialog dialog)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
(package private) static boolean
isUploadCommentTooShort(String comment)
private static String
lower(String s)
(package private) static String
validateUploadTag(String uploadValue, String preferencePrefix, List<String> defMandatory, List<String> defForbidden, List<String> defException)
protected void
warnIllegalChunkSize()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
dialog
private final transient IUploadDialog dialog
-
-
Constructor Detail
-
UploadAction
UploadAction(IUploadDialog dialog)
-
-
Method Detail
-
warnIllegalChunkSize
protected void warnIllegalChunkSize()
-
isUploadCommentTooShort
static boolean isUploadCommentTooShort(String comment)
-
validateUploadTag
static String validateUploadTag(String uploadValue, String preferencePrefix, List<String> defMandatory, List<String> defForbidden, List<String> defException)
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-