Changeset 5035
- Timestamp:
- 2003-07-25T16:31:48+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java
r4686 r5035 67 67 progress_bar.setMaximum(MAX); 68 68 progress_bar.setMinimum(MIN); 69 progress_bar.setStringPainted(true); 69 70 progress_bar.setValue(MIN); 70 71 } … … 120 121 */ 121 122 public void parse(String line_raw) { 123 progress_bar.setString(""); 122 124 String line = line_raw.toLowerCase(); 123 125 if(line.indexOf(SENTINEL) != -1) { … … 149 151 } 150 152 } 153 154 public void saving() { 155 progress_bar.setIndeterminate(true); 156 progress_bar.setString(Gatherer.dictionary.get("SaveProgressDialog.Title", (String)null)); 157 } 158 151 159 /** 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. 152 160 * @param state The desired state of the stop flag as a <strong>boolean</strong>. … … 157 165 } 158 166 /** This method resets this monitor to the start, reseting the process parsing and progress bar. 159 160 167 * TODO Everthing. 168 */ 161 169 public void start() { 170 progress_bar.setIndeterminate(true); 171 progress_bar.setString(Gatherer.dictionary.get("FileActions.Calculating_Size", (String)null)); 172 progress_bar.setIndeterminate(false); 162 173 num_dirs = Gatherer.c_man.getCollection().getFolderCount(); 163 174 progress_bar.setValue(MIN); … … 165 176 } 166 177 /** This method indicates the process is complete. 167 168 178 * TODO Everthing. 179 */ 169 180 public void stop() { 170 181 progress_bar.setIndeterminate(false);
Note:
See TracChangeset
for help on using the changeset viewer.