Class 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 Detail

      • DesktopRunnable

        public DesktopRunnable​(Runnable runnable,
                               org.zkoss.zk.ui.Desktop desktop)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable