public class FlowTaskAction extends AbstractFlowTaskAction
FlowAction that calls the given Runnable whenever the action is triggered.
The Runnable will be called in the JavaFX Application Thread.AbstractFlowTaskAction.TaskFactory| ?????? |
|---|
FlowTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
Defines a new
FlowTaskAction instance that task is defined by a class that extends
Runnable. |
FlowTaskAction(java.lang.Runnable runnable)
Defines a new
FlowTaskAction instance that task is defined by a Runnable instance. |
| ?????? | ????? |
|---|---|
protected void |
execute(java.lang.Runnable r)
Executes the defined
Runnable |
handlepublic FlowTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
FlowTaskAction instance that task is defined by a class that extends
Runnable. Whenever a action is triggered a new instance of the given class will be created. Therefore the
class needs a default constructor. All injection that is working in a controller class will work in the given
class that defines the task, too.runnableClass - the class that defines the taskpublic FlowTaskAction(java.lang.Runnable runnable)
FlowTaskAction instance that task is defined by a Runnable instance.runnable - defines the task and will be called whenever the action is triggered.protected void execute(java.lang.Runnable r)
throws java.lang.Exception
AbstractFlowTaskActionRunnableexecute ??? AbstractFlowTaskActionr - the runnablejava.lang.Exception - if the runnable can't be executed