public final void setOnSucceeded (EventHandler<WorkerStateEvent> value)

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

Parameters:
value    the event handler, can be null to clear it

Since:  JavaFX 2.1