Ignore:
Timestamp:
2006-01-20T11:39:44+13:00 (18 years ago)
Author:
mdewsnip
Message:

Used GProgressBars instead of JProgressBars, because they're safer when setting indeterminate.

File:
1 edited

Legend:

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

    r8243 r11076  
    5050import java.awt.Component;
    5151import java.util.ArrayList;
    52 import javax.swing.JProgressBar;
     52import org.greenstone.gatherer.gui.GProgressBar;
    5353
    5454/** When implemented, this interface allows another class to monitor the progress of a <strong>GShell</strong> process. Specifically implementing classes should be designed to take the textual output from the process and then translate that message into some quanitive measure of progress which can then be shown on the progress bar.
     
    5656public interface GShellProgressMonitor {
    5757    /** Method to register a new progress bar with this monitor.
    58      * @param progress_bar The new <strong>JProgressBar</strong>.
     58     * @param progress_bar The new <strong>GProgressBar</strong>.
    5959     */
    60     public void addProgressBar(JProgressBar progress_bar);
     60    public void addProgressBar(GProgressBar progress_bar);
    6161
    6262    /** 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.
     
    6565    public int exitValue();
    6666
    67     public JProgressBar getSharedProgress();
     67    public GProgressBar getSharedProgress();
    6868
    69     /** 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    /** Method to retrieve whatever control is being used as the progress indicator. Usually a <strong>GProgressBar</strong> but there may be others implemented later.
    7070     * @return A <strong>Component</strong> on which the progress of the process is being displayed.
    7171     */
Note: See TracChangeset for help on using the changeset viewer.