Package io.tlf.jme.jfx.injfx
Class ApplicationThreadExecutor
- java.lang.Object
-
- io.tlf.jme.jfx.injfx.ApplicationThreadExecutor
-
public class ApplicationThreadExecutor extends java.lang.ObjectThe executor for executing tasks in application thread.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToExecute(java.lang.Runnable task)Add the task to execute.voidexecute()Execute the waiting tasks.static ApplicationThreadExecutorgetInstance()
-
-
-
Method Detail
-
getInstance
public static ApplicationThreadExecutor getInstance()
-
addToExecute
public void addToExecute(java.lang.Runnable task)
Add the task to execute.- Parameters:
task- the new task.
-
execute
public void execute()
Execute the waiting tasks.
-
-