Class BusyDialogTemplate

java.lang.Object
org.adempiere.webui.apps.BusyDialogTemplate
All Implemented Interfaces:
Runnable, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class BusyDialogTemplate extends Object implements Runnable, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Show BusyDialog and invoke Runnable task.
Usage: new BusyDialogTemplate(runnable).run(); or with Lambda,new BusyDialogTemplate(() -> {your code}).run();
  • Constructor Details

    • BusyDialogTemplate

      public BusyDialogTemplate(Runnable runnable)
      Parameters:
      runnable -
  • Method Details

    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Call runnable and close busy dialog.
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • run

      public void run()
      Show busy dialog and echo EVENT_NAME to call runnable
      Specified by:
      run in interface Runnable