Package snap.viewx
Class TaskRunnerPanel<T>
java.lang.Object
snap.util.TaskRunner<T>
snap.viewx.TaskRunnerPanel<T>
- All Implemented Interfaces:
TaskMonitor
A TaskRunner implementation that runs success/failed/finished on application thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class snap.util.TaskRunner
TaskRunner.Status
Nested classes/interfaces inherited from interface snap.util.TaskMonitor
TaskMonitor.Text
-
Field Summary
Fields inherited from class snap.util.TaskRunner
ActivityText_Prop, Progress_Prop, Status_Prop
Fields inherited from interface snap.util.TaskMonitor
NULL
-
Constructor Summary
ConstructorDescriptionCreates a new TaskRunnerPanel.Creates a new TaskRunnerPanel for given monitor.TaskRunnerPanel
(View aView, String aTitle) Creates a new TaskRunnerPanel for given monitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Override to show exception in dialog box (and potentially hide JFXTaskMonitor dialog box).protected void
Runs the success method.Methods inherited from class snap.util.TaskRunner
addPropChangeListener, beginTask, cancel, cancelled, endTask, finished, firePropChange, getElapsedTime, getEndTime, getException, getMonitor, getName, getResult, getStartTime, getStatus, getSystemTime, getThread, invokeRun, isActive, isCancelled, join, join, removePropChangeListener, run, setMonitor, setName, setStatus, start, startTasks, success, updateTask
-
Constructor Details
-
TaskRunnerPanel
public TaskRunnerPanel()Creates a new TaskRunnerPanel. -
TaskRunnerPanel
Creates a new TaskRunnerPanel for given monitor. -
TaskRunnerPanel
Creates a new TaskRunnerPanel for given monitor.
-
-
Method Details
-
failure
Override to show exception in dialog box (and potentially hide JFXTaskMonitor dialog box).- Overrides:
failure
in classTaskRunner<T>
-
invokeFinished
protected void invokeFinished()Runs the success method.- Overrides:
invokeFinished
in classTaskRunner<T>
-