Search in sources :

Example 6 with DashboardRunnable

use of org.adempiere.webui.dashboard.DashboardRunnable in project adempiere by adempiere.

the class NavBar2Desktop method setPage.

/**
	 *
	 * @param page
	 */
public void setPage(Page page) {
    if (this.page != page) {
        layout.setPage(page);
        this.page = page;
    }
    if (dashboardThread != null && dashboardThread.isAlive()) {
        dashboardRunnable.stop();
        dashboardThread.interrupt();
        DashboardRunnable tmp = dashboardRunnable;
        dashboardRunnable = new DashboardRunnable(tmp, layout.getDesktop(), this);
        dashboardThread = new Thread(dashboardRunnable, "UpdateInfo");
        dashboardThread.setDaemon(true);
        dashboardThread.start();
    }
}
Also used : DashboardRunnable(org.adempiere.webui.dashboard.DashboardRunnable)

Aggregations

DashboardRunnable (org.adempiere.webui.dashboard.DashboardRunnable)6 IOException (java.io.IOException)3 HeaderPanel (org.adempiere.webui.panel.HeaderPanel)3 SidePanel (org.adempiere.webui.panel.SidePanel)3 UserPreference (org.adempiere.webui.util.UserPreference)3 Event (org.zkoss.zk.ui.event.Event)3 EventListener (org.zkoss.zk.ui.event.EventListener)3 OpenEvent (org.zkoss.zk.ui.event.OpenEvent)3 Accordion (org.adempiere.webui.component.Accordion)2 DashboardPanel (org.adempiere.webui.dashboard.DashboardPanel)2 Component (org.zkoss.zk.ui.Component)2 Borderlayout (org.zkoss.zul.Borderlayout)2 Center (org.zkoss.zul.Center)2 Div (org.zkoss.zul.Div)2 North (org.zkoss.zul.North)2 West (org.zkoss.zul.West)2 DropEvent (org.zkoss.zk.ui.event.DropEvent)1 Borderlayout (org.zkoss.zkex.zul.Borderlayout)1 Center (org.zkoss.zkex.zul.Center)1 North (org.zkoss.zkex.zul.North)1