scalafx.concurrent

Service

abstract class Service[T] extends Worker[T] with EventTarget with EventHandlerDelegate with SFXDelegate[javafx.concurrent.Service[T]]

Wrapper trait for Service Class.

Linear Supertypes
EventHandlerDelegate, EventTarget, Worker[T], SFXDelegate[javafx.concurrent.Service[T]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Service
  2. EventHandlerDelegate
  3. EventTarget
  4. Worker
  5. SFXDelegate
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Service(delegate: javafx.concurrent.Service[T])

Type Members

  1. type EventHandled = AnyRef { ... /* 4 definitions in type refinement */ }

    Definition Classes
    EventHandlerDelegate

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addEventFilter[E <: Event](eventType: EventType[E], eventFilter: EventHandler[_ >: E]): Unit

    Registers an event filter to this task.

    Registers an event filter to this task. Registered event filters get an event before any associated event handlers.

    E

    Event class

    eventType

    the type of the events to receive by the filter

    eventFilter

    the filter to register that will filter event

    Definition Classes
    EventHandlerDelegate
  7. def addEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Registers an event handler to this task.

    Registers an event handler to this task. Any event filters are first processed, then the specified onFoo event handlers, and finally any event handlers registered by this method. As with other events in the scene graph, if an event is consumed, it will not continue dispatching.

    E

    Event class

    eventType

    the type of the events to receive by the handler

    eventHandler

    the handler to register that will manipulate event

    Definition Classes
    EventHandlerDelegate
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def buildEventDispatchChain(chain: EventDispatchChain): EventDispatchChain

    Definition Classes
    Service → EventTarget
  10. def cancel: Boolean

    Terminates execution of this Worker.

    Terminates execution of this Worker.

    Definition Classes
    Worker
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. val delegate: javafx.concurrent.Service[T]

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ServiceSFXDelegate
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(ref: Any): Boolean

    Definition Classes
    SFXDelegate → AnyRef → Any
  15. def eventHandlerDelegate: EventHandled

    Returns a object that implements scalafx.event.EventHandlerDelegate.EventHandled.

    Returns a object that implements scalafx.event.EventHandlerDelegate.EventHandled.

    Definition Classes
    ServiceEventHandlerDelegate
  16. def exception: ReadOnlyObjectProperty[Throwable]

    Gets the ReadOnlyObjectProperty representing any exception which occurred.

    Gets the ReadOnlyObjectProperty representing any exception which occurred.

    Definition Classes
    Worker
  17. def executor: ObjectProperty[Executor]

    The executor to use for running this Service.

  18. def executor_=(v: Executor): Unit

  19. def filterEvent[E <: Event](eventType: EventType[E])(op: ⇒ Unit): Unit

    Registers an event filter to this task that will not filter the Event associated to a EventType.

    Registers an event filter to this task that will not filter the Event associated to a EventType.

    E

    Event class

    eventType

    the type of the events to receive by the filter

    op

    the filter to register that will not filter event

    Definition Classes
    EventHandlerDelegate
  20. def filterEvent[E <: Event](eventType: EventType[E])(op: (E) ⇒ Unit): Unit

    Registers an event filter to this task that will filter the Event associated to a EventType.

    Registers an event filter to this task that will filter the Event associated to a EventType.

    E

    Event class

    eventType

    the type of the events to receive by the filter

    op

    the filter to register that will filter event

    Definition Classes
    EventHandlerDelegate
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def handleEvent[E <: Event](eventType: EventType[E])(op: ⇒ Unit): Unit

    Register an event handler to this task that will not manipulate the Event associated to a EventType.

    Register an event handler to this task that will not manipulate the Event associated to a EventType.

    E

    Event class

    eventType

    the type of the events to receive by the handler

    op

    the handler to register that will not manipulate event

    Definition Classes
    EventHandlerDelegate
  24. def handleEvent[E <: Event](eventType: EventType[E])(op: (E) ⇒ Unit): Unit

    Register an event handler to this task that will manipulate the Event associated to a EventType.

    Register an event handler to this task that will manipulate the Event associated to a EventType.

    E

    Event class

    eventType

    the type of the events to receive by the handler

    op

    the handler to register that will manipulate event

    Definition Classes
    EventHandlerDelegate
  25. def hashCode(): Int

    Definition Classes
    SFXDelegate → AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def message: ReadOnlyStringProperty

    Gets the ReadOnlyStringProperty representing the message.

    Gets the ReadOnlyStringProperty representing the message.

    Definition Classes
    Worker
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def onCancelled: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.

  32. def onCancelled_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  33. def onFailed: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onFailed event handler is called whenever the Task state transitions to the FAILED state.

  34. def onFailed_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  35. def onReady: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onReady event handler is called whenever the Task state transitions to the READY state.

  36. def onReady_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  37. def onRunning: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onRunning event handler is called whenever the Task state transitions to the RUNNING state.

  38. def onRunning_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  39. def onScheduled: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.

  40. def onScheduled_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  41. def onSucceeded: ObjectProperty[EventHandler[javafx.concurrent.WorkerStateEvent]]

    The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.

  42. def onSucceeded_=(v: EventHandler[javafx.concurrent.WorkerStateEvent]): Unit

  43. def progress: ReadOnlyDoubleProperty

    Gets the ReadOnlyDoubleProperty representing the progress.

    Gets the ReadOnlyDoubleProperty representing the progress.

    Definition Classes
    Worker
  44. def removeEventFilter[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Unregisters a previously registered event filter from this task.

    Unregisters a previously registered event filter from this task. One filter might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the filter.

    E

    Event class

    eventType

    the event type from which to unregister

    Definition Classes
    EventHandlerDelegate
  45. def removeEventHandler[E <: Event](eventType: EventType[E], eventHandler: EventHandler[_ >: E]): Unit

    Unregisters a previously registered event handler from this task.

    Unregisters a previously registered event handler from this task. One handler might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the handler.

    E

    Event class

    eventType

    the event type from which to unregister

    eventHandler

    the handler to unregister

    Definition Classes
    EventHandlerDelegate
  46. def reset: Unit

    Resets the Service.

  47. def restart: Unit

    Cancels any currently running Task, if any, and restarts this Service.

  48. def running: ReadOnlyBooleanProperty

    Gets the ReadOnlyBooleanProperty representing whether the Worker is running.

    Gets the ReadOnlyBooleanProperty representing whether the Worker is running.

    Definition Classes
    Worker
  49. def start: Unit

    Starts this Service.

  50. def state: ReadOnlyObjectProperty[State]

    Gets the ReadOnlyObjectProperty representing the current state.

    Gets the ReadOnlyObjectProperty representing the current state.

    Definition Classes
    Worker
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  52. def title: ReadOnlyStringProperty

    Gets the ReadOnlyStringProperty representing the title.

    Gets the ReadOnlyStringProperty representing the title.

    Definition Classes
    Worker
  53. def toString(): String

    Definition Classes
    SFXDelegate → AnyRef → Any
  54. def totalWork: ReadOnlyDoubleProperty

    Gets the ReadOnlyDoubleProperty representing the maximum amount of work that needs to be done.

    Gets the ReadOnlyDoubleProperty representing the maximum amount of work that needs to be done.

    Definition Classes
    Worker
  55. def value: ReadOnlyObjectProperty[T]

    Gets the ReadOnlyObjectProperty representing the value.

    Gets the ReadOnlyObjectProperty representing the value.

    Definition Classes
    Worker
  56. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  57. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  58. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  59. def workDone: ReadOnlyDoubleProperty

    Gets the ReadOnlyDoubleProperty representing the current progress.

    Gets the ReadOnlyDoubleProperty representing the current progress.

    Definition Classes
    Worker

Inherited from EventHandlerDelegate

Inherited from EventTarget

Inherited from Worker[T]

Inherited from SFXDelegate[javafx.concurrent.Service[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped