trait SimpleTask[R] extends AnyRef
A simple wrapper for a task that has a status message property and a progress property. Intended for use with org.scalafx.extras.BusyWorker.SimpleTask) BusyWorker#doTask method
- R
returned value type.
- Source
- BusyWorker.scala
- Alphabetic
- By Inheritance
- SimpleTask
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
call(): R
Perform the main actions of this task.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
message: StringProperty
Message that can be updated while task is executed.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
onCancelled(): Unit
Method called whenever the state of the Task has transitioned to the CANCELLED state.
Method called whenever the state of the Task has transitioned to the CANCELLED 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.
-
def
onFailed(): Unit
Method called whenever the state of the Task has transitioned to the FAILED state.
Method called whenever the state of the Task has transitioned to the FAILED 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.
-
def
onFinish(result: Future[R], successful: Boolean): Unit
Perform some actions after after
call()
completed.Perform some actions after after
call()
completed. This is executed regardless of success or failure ofcall()
. Use this to prevent blocking while waiting forcall()
to finish. The default implementation does nothing.- result
a future containing result returned by
call()
. The result can be obtained usingresult.get()
. Only valid ifcall()
completed successfully.- successful
will be
true
if call completed successfully (without exceptions and was not cancelled).
-
def
onRunning(): Unit
Method called whenever the state of the Task has transitioned to the RUNNING state.
Method called whenever the state of the Task has transitioned to the RUNNING 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.
-
def
onScheduled(): Unit
Method called whenever the state of the Task has transitioned to the SCHEDULED state.
Method called whenever the state of the Task has transitioned to the SCHEDULED 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.
-
def
onSucceeded(): Unit
called whenever the state of the Task has transitioned to the SUCCEEDED state.
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.
-
val
progress: DoubleProperty
Progress indicator that can be updated when task is executed.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Helper methods and classes to simplify ScalaFX use.
Package
org.scalafx.extras
contains basic helper methods for running tasks on threads and showing messages.Package
org.scalafx.extras.image
contains image display component with scrolling and zooming.Package
org.scalafx.extras.mvcfx
contains classes for creating with UI components based on FXML.