Package org.adempiere.webui.apps
Class DesktopRunnable
java.lang.Object
org.adempiere.webui.apps.DesktopRunnable
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Set thread local Desktop reference and callrunnable
.