Ignore:
Timestamp:
2013-04-20T22:41:13+02:00 (11 years ago)
Author:
stoecker
Message:

fix javadoc

File:
1 edited

Legend:

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

    r5890 r5891  
    3636    }
    3737
     38    /** Ticks count used, when no other value is supplied */
    3839    public final int DEFAULT_TICKS = 10000;
    3940
     
    4445    public final int ALL_TICKS = -1;
    4546
     47    /**
     48     * Starts this progress monitor. Must be called exactly once
     49     * Ticks count is set to default value
     50     * @param title title text of the task
     51     */
    4652    void beginTask(String title);
    4753
    4854    /**
    4955     * Starts this progress monitor. Must be called exactly once
    50      * @param title
    51      * @param ticks
     56     * @param title title text of the task
     57     * @param ticks number of work units (see {@link #setTicksCount(int ticks)})
    5258     */
    5359    void beginTask(String title, int ticks);
     
    5864     * then further calls are ignored)
    5965     */
     66    void finishTask();
    6067
    61     void finishTask();
    6268    /**
    6369     * Can be used if method receive ProgressMonitor but it's not interested progress monitoring.
     
    7177
    7278    /**
    73      *
     79     * Set the total number of work units
    7480     * @param ticks Number of total work units
    7581     */
    7682    void setTicksCount(int ticks);
     83
    7784    /**
    78      *
     85     * Get the total number of work units
     86     * @return Number of total work units
     87     */
     88    int getTicksCount();
     89
     90    /**
     91     * Set the current number of work units
    7992     * @param ticks Number of work units already done
    8093     */
    8194    void setTicks(int ticks);
    8295
     96    /**
     97     * Get the current number of work units
     98     * @return Number of work units already done
     99     */
    83100    int getTicks();
    84     int getTicksCount();
    85101
    86102    /**
    87103     * Increase number of already done work units by ticks
    88      * @param ticks
     104     * @param ticks number of ticks to add
    89105     */
    90106    void worked(int ticks);
     
    92108    /**
    93109     * Subtask that will show progress running back and forth
    94      * @param title Can be null, in that case task title is not changed
     110     * @param title Can be {@code null}, in that case task title is not changed
    95111     */
    96112    void indeterminateSubTask(String title);
     113
    97114    /**
    98115     * Normal subtask
    99      * @param title Can be null, in that case task title is not changed
     116     * @param title Can be {@code null}, in that case task title is not changed
    100117     */
     118
    101119    void subTask(String title);
    102120    /**
    103121     * Shows additional text
    104122     */
     123
    105124    void setCustomText(String text);
    106125    /**
     
    118137    ProgressMonitor createSubTaskMonitor(int ticks, boolean internal);
    119138
     139    /**
     140     * Returns the state of user aborts
     141     * @return {@code true} if user aborted operation
     142     */
    120143    boolean isCanceled();
     144
     145    /**
     146     * Abort current operation, usually called when user somehow requested an abort
     147     */
    121148    void cancel();
     149
     150    /**
     151     * Add listener for user abort action
     152     * @param listener the listener for cancel operation
     153     */
    122154    void addCancelListener(CancelListener listener);
     155
     156    /**
     157     * Remove listener for user abort action
     158     * @param listener the listener for cancel operation
     159     */
    123160    void removeCancelListener(CancelListener listener);
    124161
     
    131168
    132169    /**
    133      * Should be used only by PleaseWaitRunnable. If taskId <> null then "In background" button will be shown
    134      * @param taskId
     170     * Set the task ID of the progress dialog
     171     * Should be used only by PleaseWaitRunnable. If taskId {@code <> null} then "In background" button will be shown
     172     * @param taskId the task ID
    135173     */
    136174    void setProgressTaskId(ProgressTaskId taskId);
    137175
    138176    /**
     177     * Returns the task ID of the progress dialog
    139178     * Should be used only by PleaseWaitRunnable
    140      * @param taskId
     179     * @return the task ID
    141180     */
    142181    ProgressTaskId getProgressTaskId();
    143182
    144183    /**
    145      *
     184     * Return the parent windows of progress dialog
    146185     * @return component suitable as parent for dialogs that wants to be shown in front of progress dialog
    147186     */
Note: See TracChangeset for help on using the changeset viewer.