- 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.StateValueNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionCameraDownloadWorker(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, setProgressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
doInBackgroundin classSwingWorker<String,String>
-
done
protected void done()The Swing Worked calls this method when done.- Overrides:
donein classSwingWorker<String,String>
-
progressIncrement
public void progressIncrement()Description copied from interface:ProgressListenerthis method to be called when a progress increment has taken place- Specified by:
progressIncrementin interfaceProgressListener
-