Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleTask
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def call(): R

    Perform the main actions of this task.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val message: StringProperty

    Message that can be updated while task is executed.

  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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.

  16. 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.

  17. 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 of call(). Use this to prevent blocking while waiting for call() to finish. The default implementation does nothing.

    result

    a future containing result returned by call(). The result can be obtained using result.get(). Only valid if call() completed successfully.

    successful

    will be true if call completed successfully (without exceptions and was not cancelled).

  18. 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.

  19. 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.

  20. 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.

  21. val progress: DoubleProperty

    Progress indicator that can be updated when task is executed.

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped