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 polling thread).
      Delegate to refreshDashboard(boolean).
      Specified by:
      run in interface Runnable
    • refreshDashboard

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

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

      public boolean isEmpty()
      Returns:
      boolean