source: josm/trunk/src/org/openstreetmap/josm/gui/io/IUploadDialog.java@ 12531

Last change on this file since 12531 was 9685, checked in by Don-vip, 8 years ago

UploadDialog: code refactoring, add javadoc, basic unit test, remove deprecated code

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.io;
3
4import java.util.Map;
5
6/**
7 * Upload dialog super interface.
8 * @since 9685
9 */
10public interface IUploadDialog {
11
12 /**
13 * Returns true if the dialog was canceled
14 *
15 * @return true if the dialog was canceled
16 */
17 boolean isCanceled();
18
19 /**
20 * Remembers the user input in the preference settings
21 */
22 void rememberUserInput();
23
24 /**
25 * Returns the current value for the upload comment
26 *
27 * @return the current value for the upload comment
28 */
29 String getUploadComment();
30
31 /**
32 * Returns the current value for the changeset source
33 *
34 * @return the current value for the changeset source
35 */
36 String getUploadSource();
37
38 /**
39 * Replies the {@link UploadStrategySpecification} the user entered in the dialog.
40 *
41 * @return the {@link UploadStrategySpecification} the user entered in the dialog.
42 */
43 UploadStrategySpecification getUploadStrategySpecification();
44
45 /**
46 * Replies the map with the current tags in the tag editor model.
47 * @param keepEmpty {@code true} to keep empty tags
48 * @return the map with the current tags in the tag editor model.
49 */
50 Map<String, String> getTags(boolean keepEmpty);
51
52 /**
53 * Handles missing comment.
54 */
55 void handleMissingComment();
56
57 /**
58 * Handles missing source.
59 */
60 void handleMissingSource();
61
62 /**
63 * Handles illegal chunk size.
64 */
65 void handleIllegalChunkSize();
66}
Note: See TracBrowser for help on using the repository browser.