Class EdtExecutor

java.lang.Object
be.imgn.swing.ui.EdtExecutor
All Implemented Interfaces:
Executor

public final class EdtExecutor extends Object implements Executor
The executor of OnEdt: runs each task with EventQueue.invokeLater(Runnable). A bus that the framework didn't build, such as one made with EventBus.create(), uses it; the application's bus doesn't.
  • Constructor Details

    • EdtExecutor

      public EdtExecutor()
      Creates the executor; the code gaia-processor generates for OnEdt methods does.
  • Method Details

    • execute

      public void execute(Runnable task)
      Runs a task on the EDT, after the events already queued.
      Specified by:
      execute in interface Executor
      Parameters:
      task - the task
      Throws:
      NullPointerException - if task is null