Package cz.fidentis.analyst.gui.project
Class SaveTasksWorker
- All Implemented Interfaces:
Runnable
,Future<Boolean>
,RunnableFuture<Boolean>
A worker for saving the state of task tabs into the disk.
-
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
ConstructorsConstructorDescriptionSaveTasksWorker
(Project project, List<TaskWindow> taskTabs, ProgressDialog progressDialog) 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
-
SaveTasksWorker
Constructor.- Parameters:
project
- Project with info about project folder containing stored taskstaskTabs
- A list of analytical tasks to be savedprogressDialog
- Dialog window- Throws:
IllegalArgumentException
- if the project has not a folder assigned
-
-
Method Details
-
getTaskFile
Returns path to the task's file.- Parameters:
project
- ProjecttaskName
- Name of the task- Returns:
- path to the task's file.
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<Boolean,
Integer> - Throws:
Exception
-
done
protected void done()- Overrides:
done
in classSwingWorker<Boolean,
Integer>
-