Package cz.fidentis.analyst.gui.project
Class OpenTasksWorker
- All Implemented Interfaces:
Runnable
,Future<Boolean>
,RunnableFuture<Boolean>
A worker for opening multiple task tabs for a single-face analysis
-
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
ConstructorsConstructorDescriptionOpenTasksWorker
(List<File> faces, ProgressDialog progressDialog, Consumer<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
-
OpenTasksWorker
public OpenTasksWorker(List<File> faces, ProgressDialog progressDialog, Consumer<FacesProxy> consumer) Constructor.- Parameters:
faces
- Files pf faces to be open in separate tabsprogressDialog
- 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>
-