Changeset 1465 in josm for trunk/src/org/openstreetmap/josm/gui/download
- Timestamp:
- 2009-03-07T13:40:54+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r1392 r1465 51 51 public interface DownloadTask { 52 52 /** 53 * Execute the download. 54 */ 55 void download(DownloadAction action, double minlat, double minlon, double maxlat, double maxlon); 53 * Execute the download using the given bounding box 54 */ 55 void download(DownloadAction action, double minlat, double minlon, 56 double maxlat, double maxlon); 57 58 /** 59 * Execute the download using the given bounding box. Set silent to true if no error 60 * messages should be popped up. Message can be used to display an additional text below 61 * the default description. 62 */ 63 void download(DownloadAction action, double minlat, double minlon, 64 double maxlat, double maxlon, boolean silent, String message); 65 66 /** 67 * Execute the download using the given URL 68 * @param newLayer 69 * @param url 70 */ 56 71 void loadUrl(boolean newLayer, String url); 72 57 73 /** 58 74 * @return The checkbox presented to the user 59 75 */ 60 76 JCheckBox getCheckBox(); 77 61 78 /** 62 79 * @return The name of the preferences suffix to use for storing the … … 64 81 */ 65 82 String getPreferencesSuffix(); 83 84 /** 85 * Gets the error message of the task once it executed. If there is no error message, an empty 86 * string is returned. 87 * 88 * WARNING: Never call this in the same thread you requested the download() or it will cause a 89 * dead lock. See actions/downloadTasks/DownloadOsmTaskList.java for a proper implementation. 90 * 91 * @return Error message or empty String 92 */ 93 String getErrorMessage(); 66 94 } 67 95
Note:
See TracChangeset
for help on using the changeset viewer.