Package org.adempiere.webui.dashboard
Class DashboardRunnable
java.lang.Object
org.adempiere.webui.dashboard.DashboardRunnable
- All Implemented Interfaces:
Serializable
,Runnable
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 Summary
ConstructorDescriptionDashboardRunnable
(DashboardRunnable tmp, org.zkoss.zk.ui.Desktop desktop) CopydashboardPanels
from tmp.DashboardRunnable
(org.zkoss.zk.ui.Desktop desktop) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(DashboardPanel dashboardPanel) Add DashboardPanel to the auto refresh listprotected void
cleanup()
Perform clean upboolean
isEmpty()
void
refreshDashboard
(boolean polling) RefreshdashboardPanels
void
run()
RefreshdashboardPanels
(usually call by background polling thread).
Delegate torefreshDashboard(boolean)
.
-
Constructor Details
-
DashboardRunnable
public DashboardRunnable(org.zkoss.zk.ui.Desktop desktop) - Parameters:
desktop
- zk Desktop instance
-
DashboardRunnable
CopydashboardPanels
from tmp.- Parameters:
tmp
- DashboardRunnabledesktop
-
-
-
Method Details
-
cleanup
protected void cleanup()Perform clean up -
run
public void run()RefreshdashboardPanels
(usually call by background polling thread).
Delegate torefreshDashboard(boolean)
. -
refreshDashboard
public void refreshDashboard(boolean polling) RefreshdashboardPanels
- Parameters:
polling
- true if calling from polling thread
-
add
Add DashboardPanel to the auto refresh list- Parameters:
dashboardPanel
-
-
isEmpty
public boolean isEmpty()- Returns:
- boolean
-