You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A simple wrapper for a task that mas a status message property and a progress property.
49
+
* A simple wrapper for a task that has a status message property and a progress property.
50
50
* Intended for use with [[org.scalafx.extras.BusyWorker#doTask(java.lang.String, org.scalafx.extras.BusyWorker.SimpleTask) BusyWorker#doTask]] method
51
51
*
52
52
* @tparamR returned value type.
53
53
*/
54
54
traitSimpleTask[R] {
55
55
56
+
57
+
/**
58
+
* Method called whenever the state of the Task has transitioned to the SCHEDULED state.
59
+
* This method is invoked on the FX Application Thread after any listeners of the state property and after the
60
+
* Task has been fully transitioned to the new state.
61
+
*/
62
+
defonScheduled():Unit= {}
63
+
64
+
/**
65
+
* Method called whenever the state of the Task has transitioned to the RUNNING state.
66
+
* This method is invoked on the FX Application Thread after any listeners of the state property and after the
67
+
* Task has been fully transitioned to the new state.
68
+
*/
69
+
defonRunning():Unit= {}
70
+
71
+
/**
72
+
* called whenever the state of the Task has transitioned to the SUCCEEDED state. This method is invoked on the FX Application Thread after any listeners of the state property and after the Task has been fully transitioned to the new state.
73
+
*/
74
+
defonSucceeded():Unit= {}
75
+
76
+
/**
77
+
* Method called whenever the state of the Task has transitioned to the CANCELLED state.
78
+
* This method is invoked on the FX Application Thread after any listeners of the state property and after the
79
+
* Task has been fully transitioned to the new state.
80
+
*/
81
+
defonCancelled():Unit= {}
82
+
83
+
/**
84
+
* Method called whenever the state of the Task has transitioned to the FAILED state.
85
+
* This method is invoked on the FX Application Thread after any listeners of the state property and after the
86
+
* Task has been fully transitioned to the new state.
87
+
*/
88
+
defonFailed():Unit= {}
89
+
56
90
/**
57
91
* Message that can be updated while task is executed.
58
92
*/
@@ -199,6 +233,7 @@ class BusyWorker private(val title: String,
0 commit comments