JavaScript is disabled on your browser.
JavaFX 2.2
javafx.concurrent

Class WorkerStateEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class WorkerStateEvent
    extends Event 
    An event which occurs whenever the state changes on a Worker. Both Task and Service support listening to state events.
    See Also:
    Serialized Form
    • Field Detail

      • WORKER_STATE_READY

        public static final EventType<WorkerStateEvent> WORKER_STATE_READY
        This event occurs when the state of a Worker implementation has transitioned to the READY state.
      • WORKER_STATE_SCHEDULED

        public static final EventType<WorkerStateEvent> WORKER_STATE_SCHEDULED
        This event occurs when the state of a Worker implementation has transitioned to the SCHEDULED state.
      • WORKER_STATE_RUNNING

        public static final EventType<WorkerStateEvent> WORKER_STATE_RUNNING
        This event occurs when the state of a Worker implementation has transitioned to the RUNNING state.
      • WORKER_STATE_SUCCEEDED

        public static final EventType<WorkerStateEvent> WORKER_STATE_SUCCEEDED
        This event occurs when the state of a Worker implementation has transitioned to the SUCCEEDED state.
      • WORKER_STATE_CANCELLED

        public static final EventType<WorkerStateEvent> WORKER_STATE_CANCELLED
        This event occurs when the state of a Worker implementation has transitioned to the CANCELLED state.
      • WORKER_STATE_FAILED

        public static final EventType<WorkerStateEvent> WORKER_STATE_FAILED
        This event occurs when the state of a Worker implementation has transitioned to the FAILED state.
    • Constructor Detail

      • WorkerStateEvent

        public WorkerStateEvent(Worker worker,
         EventType<? extends WorkerStateEvent> eventType)
        Create a new WorkerStateEvent. Specify the worker and the event type.
        Parameters:
        worker - The Worker which is firing the event. The Worker really should be an EventTarget, otherwise the EventTarget for the event will be null.
        eventType - The type of event. This should not be null.
    • Method Detail

      • getSource

        public Worker getSource()
        Overrides:
        getSource in class java.util.EventObject
JavaFX 2.2

Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /