public final class FxOneShootActionService
extends javafx.concurrent.Service<java.lang.Void>
Service that executes the specified Runnable after the timeout. This is one shoot action. To
reset and reuse the Service, call Service.restart(). The specified action will run on the JavaFx
thread by using Platform.runLater(Runnable).exceptionProperty, executorProperty, messageProperty, onCancelledProperty, onFailedProperty, onReadyProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty| Constructor and Description |
|---|
FxOneShootActionService(java.lang.Runnable action,
java.time.Duration timeout)
Create a
FxOneShootActionService that executes the specified Runnable on the JavaFx thread after
the timeout. |
| Modifier and Type | Method and Description |
|---|---|
protected javafx.concurrent.Task<java.lang.Void> |
createTask() |
addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancelled, exceptionProperty, executeTask, executorProperty, failed, fireEvent, getException, getExecutor, getMessage, getOnCancelled, getOnFailed, getOnReady, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onReadyProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, ready, removeEventFilter, removeEventHandler, reset, restart, running, runningProperty, scheduled, setEventHandler, setExecutor, setOnCancelled, setOnFailed, setOnReady, setOnRunning, setOnScheduled, setOnSucceeded, start, stateProperty, succeeded, titleProperty, totalWorkProperty, valueProperty, workDonePropertypublic FxOneShootActionService(java.lang.Runnable action,
java.time.Duration timeout)
FxOneShootActionService that executes the specified Runnable on the JavaFx thread after
the timeout.action - the runnable to run as the actiontimeout - the time to wait before the action is run