- Timestamp:
- 2006-01-20T11:39:44+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GBuildProgressMonitor.java
r10618 r11076 39 39 import java.awt.Component; 40 40 import java.util.ArrayList; 41 import javax.swing.JProgressBar;42 41 import org.greenstone.gatherer.Configuration; 43 42 import org.greenstone.gatherer.DebugStream; … … 45 44 import org.greenstone.gatherer.Gatherer; 46 45 import org.greenstone.gatherer.cdm.CollectionDesignManager; 46 import org.greenstone.gatherer.gui.GProgressBar; 47 47 import org.greenstone.gatherer.util.StaticStrings; 48 48 /** This implementation of <i>GShellProgressMonitor</i> is designed to parse and translate the progress of a buildcol.pl call. … … 126 126 private int state = BASE; 127 127 /** The progress bar this monitor updates. */ 128 private JProgressBar progress_bar;128 private GProgressBar progress_bar; 129 129 /** A progress bar that is shared between this this listener and the Import monitor. */ 130 private JProgressBar shared_progress_bar;130 private GProgressBar shared_progress_bar; 131 131 132 132 /** Construct a new GBuildProgressMonitor. */ 133 public GBuildProgressMonitor( JProgressBar shared_progress_bar) {133 public GBuildProgressMonitor(GProgressBar shared_progress_bar) { 134 134 this.shared_progress_bar = shared_progress_bar; 135 progress_bar = new JProgressBar();135 progress_bar = new GProgressBar(); 136 136 progress_bar.setMaximum(MAX); 137 137 progress_bar.setMinimum(MIN); … … 142 142 143 143 /** Method to register a new progress bar with this monitor. 144 * @param progress_bar The new <strong> JProgressBar</strong>.144 * @param progress_bar The new <strong>GProgressBar</strong>. 145 145 */ 146 public void addProgressBar( JProgressBar progress_bar) {146 public void addProgressBar(GProgressBar progress_bar) { 147 147 this.progress_bar = progress_bar; 148 148 progress_bar.setMaximum(MAX); … … 162 162 return 1; 163 163 } 164 /** Method to retrieve whatever control is being used as the progress indicator. Usually a <strong> JProgressBar</strong> but there may be others implemented later.164 /** Method to retrieve whatever control is being used as the progress indicator. Usually a <strong>GProgressBar</strong> but there may be others implemented later. 165 165 * @return A <strong>Component</strong> on which the progress of the process is being displayed. 166 166 */ … … 169 169 } 170 170 171 public JProgressBar getSharedProgress() {171 public GProgressBar getSharedProgress() { 172 172 return shared_progress_bar; 173 173 } … … 533 533 } 534 534 535 public void setSharedProgressBar( JProgressBar shared_progress_bar) {535 public void setSharedProgressBar(GProgressBar shared_progress_bar) { 536 536 this.shared_progress_bar = shared_progress_bar; 537 537 }
Note:
See TracChangeset
for help on using the changeset viewer.