Class DesktopRunnable

java.lang.Object
org.adempiere.webui.apps.DesktopRunnable
All Implemented Interfaces:
Runnable

public class DesktopRunnable extends Object implements Runnable
If your background task need access to desktop, wrap your runnable with this, i.e new DesktopRunnable(yourRunnable, desktop).
You can then use AEnv.getDesktop() in your runnable to get access to desktop.
Author:
hengsin
  • Constructor Details

    • DesktopRunnable

      public DesktopRunnable(Runnable runnable, org.zkoss.zk.ui.Desktop desktop)
      Parameters:
      runnable -
      desktop -
  • Method Details

    • run

      public void run()
      Set thread local Desktop reference and call runnable.
      Specified by:
      run in interface Runnable