Class DashboardRunnable

java.lang.Object
org.adempiere.webui.dashboard.DashboardRunnable
All Implemented Interfaces:
Serializable, Runnable

public class DashboardRunnable extends Object implements Runnable, Serializable
Runnable with weak reference to Desktop and a list of DashboardPanel.
Author:
hengsin, Cristina Ghita, www.arhipac.ro BF [2871741] Error at start
See Also:
  • Constructor Details

    • DashboardRunnable

      public DashboardRunnable(org.zkoss.zk.ui.Desktop desktop)
      Parameters:
      desktop - zk Desktop instance
    • DashboardRunnable

      public DashboardRunnable(DashboardRunnable tmp, org.zkoss.zk.ui.Desktop desktop)
      Copy dashboardPanels from tmp.
      Parameters:
      tmp - DashboardRunnable
      desktop -
  • Method Details

    • cleanup

      protected void cleanup()
      Perform clean up
    • run

      public void run()
      Refresh dashboardPanels (usually call by background pooling thread). Delegate to refreshDashboard(boolean).
      Specified by:
      run in interface Runnable
    • refreshDashboard

      public void refreshDashboard(boolean pooling)
      Refresh dashboardPanels
      Parameters:
      pooling - true if calling from pooling thread
    • add

      public void add(DashboardPanel dashboardPanel)
      Add DashboardPanel to the auto refresh list
      Parameters:
      dashboardPanel -
    • isEmpty

      public boolean isEmpty()
      Returns:
      boolean