Ignore:
Timestamp:
2003-05-27T15:40:47+12:00 (21 years ago)
Author:
mdewsnip
Message:

Fixed tabbing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/shell/GShellProgressMonitor.java

    r4293 r4364  
    5858 */
    5959public interface GShellProgressMonitor {
    60     /** Method to register a new progress bar with this monitor.
    61       * @param progress_bar The new <strong>JProgressBar</strong>.
    62       */
    63     public void addProgressBar(JProgressBar progress_bar);
    64     /** Determine the script exit value according to the progress monitor. This gets around a problem where several script failures actually result with a successful exit value.
    65       * @return A <i>int</i> with a value of zero if and only if the script was successful.
    66       */
    67     public int exitValue();
    68     /** Method to retrieve whatever control is being used as the progress indicator. Usually a <strong>JProgressBar</strong> but there may be others implemented later.
    69       * @return A <strong>Component</strong> on which the progress of the process is being displayed.
    70       */
    71     public Component getProgress();
    72     /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor.
    73       * @return A <strong>boolean</strong> indicating if the process has been asked to stop.
    74       */
    75     public boolean hasSignalledStop();
    76     /** Inform the progress bar that it should programatically increment progress by one step. */
    77     public void increment();
    78     /** This method is used to 'feed in' a line of text captured from the process.
    79       * @param line A <strong>String</strong> of text captured from either standard out or standard error.
    80       */
    81     public void parse(String line);
    82     /** Since the creator of this process monitor is actually in the GUI, this class provides the simpliest way to send a cancel process message between the two.
    83       * @param state The desired state of the stop flag as a <strong>boolean</strong>.
    84       */
    85     public void setStop(boolean state);
    86     /** This method resets this monitor to the start, reseting the process parsing and progress bar.
    87       */
    88     public void start();
    89     /** This method indicates the process is complete.
    90       */
    91     public void stop();
     60    /** Method to register a new progress bar with this monitor.
     61     * @param progress_bar The new <strong>JProgressBar</strong>.
     62     */
     63    public void addProgressBar(JProgressBar progress_bar);
     64    /** Determine the script exit value according to the progress monitor. This gets around a problem where several script failures actually result with a successful exit value.
     65     * @return A <i>int</i> with a value of zero if and only if the script was successful.
     66     */
     67    public int exitValue();
     68    /** Method to retrieve whatever control is being used as the progress indicator. Usually a <strong>JProgressBar</strong> but there may be others implemented later.
     69     * @return A <strong>Component</strong> on which the progress of the process is being displayed.
     70     */
     71    public Component getProgress();
     72    /** Method to determine the state of the stop flag, which may be set by the visual component that created this monitor.
     73     * @return A <strong>boolean</strong> indicating if the process has been asked to stop.
     74     */
     75    public boolean hasSignalledStop();
     76    /** Inform the progress bar that it should programatically increment progress by one step. */
     77    public void increment();
     78    /** This method is used to 'feed in' a line of text captured from the process.
     79     * @param line A <strong>String</strong> of text captured from either standard out or standard error.
     80     */
     81    public void parse(String line);
     82    /** Since the creator of this process monitor is actually in the GUI, this class provides the simpliest way to send a cancel process message between the two.
     83     * @param state The desired state of the stop flag as a <strong>boolean</strong>.
     84     */
     85    public void setStop(boolean state);
     86    /** This method resets this monitor to the start, reseting the process parsing and progress bar.
     87     */
     88    public void start();
     89    /** This method indicates the process is complete.
     90     */
     91    public void stop();
    9292}
    93 
Note: See TracChangeset for help on using the changeset viewer.