Package cz.fidentis.analyst.gui.project
Class RecoverTasksWorker
- All Implemented Interfaces:
Runnable
,Future<Boolean>
,RunnableFuture<Boolean>
A worker for loading multiple task tabs (faces and cameras) of a project from dumped files.
-
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
ConstructorsConstructorDescriptionRecoverTasksWorker
(Project project, ProgressDialog<Boolean, Integer> progressDialog, BiConsumer<Camera, FacesProxy> consumer) Constructor. -
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
-
RecoverTasksWorker
public RecoverTasksWorker(Project project, ProgressDialog<Boolean, Integer> progressDialog, BiConsumer<Camera, FacesProxy> consumer) Constructor.- Parameters:
project
- Project with info about project folder containing stored tasksprogressDialog
- A progress dialog windowconsumer
- A method that creates an analytical tab from loaded camera and faces- Throws:
IllegalArgumentException
- if the project has not a folder assigned
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<Boolean,
Integer> - Throws:
Exception
-
done
protected void done()- Overrides:
done
in classSwingWorker<Boolean,
Integer>
-