- All Implemented Interfaces:
Runnable
,Future<String>
,RunnableFuture<String>
,ProgressListener
Downloads the pictures on a background thread and updates the Progress bar
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorDescriptionCameraDownloadWorker
(CameraDownloadWizardData dataModel, JProgressBar progressBar, CameraDownloadWizardStep7 step7) A SwingWorker to download pictures from the camera -
Method Summary
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
CameraDownloadWorker
public CameraDownloadWorker(CameraDownloadWizardData dataModel, JProgressBar progressBar, CameraDownloadWizardStep7 step7) A SwingWorker to download pictures from the camera- Parameters:
dataModel
- the data modelprogressBar
- The progress barstep7
- step 7
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<String,
String>
-
done
protected void done()The Swing Worked calls this method when done.- Overrides:
done
in classSwingWorker<String,
String>
-
progressIncrement
public void progressIncrement()Description copied from interface:ProgressListener
this method to be called when a progress increment has taken place- Specified by:
progressIncrement
in interfaceProgressListener
-