Ignore:
Timestamp:
2017-06-09T20:33:26+02:00 (7 years ago)
Author:
michael2402
Message:

Javadoc for gui.progress package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java

    r12259 r12369  
    2929     */
    3030    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         */
    3135        void setVisible(boolean visible);
    3236
     
    3741        void updateProgress(int progress);
    3842
     43        /**
     44         * Sets the description of what is done
     45         * @param text The description of the task
     46         */
    3947        void setCustomText(String text);
    4048
     49        /**
     50         * Sets the current action that is done
     51         * @param text The current action
     52         */
    4153        void setCurrentAction(String text);
    4254
     55        /**
     56         * Display that the current progress cannot be determined
     57         * @param newValue wether the progress cannot be determined
     58         */
    4359        void setIndeterminate(boolean newValue);
    4460
    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         */
    4667        void appendLogMessage(String message);
    4768    }
     
    174195    };
    175196
     197    /**
     198     * See if this task is canceleable
     199     * @return <code>true</code> if it can be canceled
     200     */
    176201    public final boolean isCancelable() {
    177202        return cancelable;
    178203    }
    179204
     205    /**
     206     * Sets this task to be cancelable
     207     * @param cancelable Whether it can be canceled
     208     */
    180209    public final void setCancelable(boolean cancelable) {
    181210        this.cancelable = cancelable;
     
    274303    }
    275304
     305    /**
     306     * Update the dialog values
     307     */
    276308    public void reset() {
    277309        if (dialog != null) {
     
    294326    }
    295327
     328    /**
     329     * Close the progress dialog window.
     330     */
    296331    public void close() {
    297332        doInEDT(() -> {
     
    312347    }
    313348
     349    /**
     350     * Show the progress dialog in foreground
     351     */
    314352    public void showForegroundDialog() {
    315353        isInBackground = false;
Note: See TracChangeset for help on using the changeset viewer.