Changeset 12369 in josm for trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
- Timestamp:
- 2017-06-09T20:33:26+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r12259 r12369 29 29 */ 30 30 public interface ProgressMonitorDialog { 31 /** 32 * Sets the visibility of this dialog 33 * @param visible The visibility, <code>true</code> to show it, <code>false</code> to hide it 34 */ 31 35 void setVisible(boolean visible); 32 36 … … 37 41 void updateProgress(int progress); 38 42 43 /** 44 * Sets the description of what is done 45 * @param text The description of the task 46 */ 39 47 void setCustomText(String text); 40 48 49 /** 50 * Sets the current action that is done 51 * @param text The current action 52 */ 41 53 void setCurrentAction(String text); 42 54 55 /** 56 * Display that the current progress cannot be determined 57 * @param newValue wether the progress cannot be determined 58 */ 43 59 void setIndeterminate(boolean newValue); 44 60 45 // TODO Not implemented properly in background monitor, log message will get lost if progress runs in background 61 /** 62 * Append a message to the progress log 63 * <p> 64 * TODO Not implemented properly in background monitor, log message will get lost if progress runs in background 65 * @param message The message 66 */ 46 67 void appendLogMessage(String message); 47 68 } … … 174 195 }; 175 196 197 /** 198 * See if this task is canceleable 199 * @return <code>true</code> if it can be canceled 200 */ 176 201 public final boolean isCancelable() { 177 202 return cancelable; 178 203 } 179 204 205 /** 206 * Sets this task to be cancelable 207 * @param cancelable Whether it can be canceled 208 */ 180 209 public final void setCancelable(boolean cancelable) { 181 210 this.cancelable = cancelable; … … 274 303 } 275 304 305 /** 306 * Update the dialog values 307 */ 276 308 public void reset() { 277 309 if (dialog != null) { … … 294 326 } 295 327 328 /** 329 * Close the progress dialog window. 330 */ 296 331 public void close() { 297 332 doInEDT(() -> { … … 312 347 } 313 348 349 /** 350 * Show the progress dialog in foreground 351 */ 314 352 public void showForegroundDialog() { 315 353 isInBackground = false;
Note:
See TracChangeset
for help on using the changeset viewer.