Package org.adempiere.webui.desktop
Class DashboardController
java.lang.Object
org.adempiere.webui.desktop.DashboardController
- All Implemented Interfaces:
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class DashboardController
extends Object
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Dashboard renderer and controller
- Author:
- hengsin
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Holds information about the report: Report Content, Row Count -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(org.zkoss.zk.ui.event.Event event) void
onLogOut()
clean up for logoutvoid
onSetPage
(org.zkoss.zk.ui.Page page, org.zkoss.zk.ui.Desktop desktop) protected void
openReportInViewer
(int AD_Process_ID, int AD_PrintFormat_ID, String parameters) Run report and open in report viewervoid
Render main or side dashboardboolean
render
(org.zkoss.zk.ui.Component content, MDashboardContent dashboardContent, DashboardRunnable dashboardRunnable) Synchronous render of gadget content in foreground UI (Event Listener) threadprotected void
renderColumns
(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update) Render dashboard in column orientationprotected void
renderRows
(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update) Render dashboard in row orientationvoid
updateLayout
(ClientInfo clientInfo)
-
Constructor Details
-
DashboardController
public DashboardController()default constructor
-
-
Method Details
-
render
public void render(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard) Render main or side dashboard- Parameters:
parent
- Parent Component of dashboarddesktopImpl
- IDesktopisShowInDashboard
- true for main/center dashboard, false for left/right side dashboard
-
renderColumns
protected void renderColumns(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update) Render dashboard in column orientation- Parameters:
parent
- ComponentdesktopImpl
- IDesktopisShowInDashboard
- true for dashboard, false for left/right side panelupdate
- true for update, false for new
-
renderRows
protected void renderRows(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update) Render dashboard in row orientation- Parameters:
parent
-desktopImpl
-isShowInDashboard
-update
-
-
render
public boolean render(org.zkoss.zk.ui.Component content, MDashboardContent dashboardContent, DashboardRunnable dashboardRunnable) throws Exception Synchronous render of gadget content in foreground UI (Event Listener) thread- Parameters:
content
- must be an instanceofHtmlBasedComponent
dashboardContent
- MDashboardContentdashboardRunnable
- DashboardRunnable- Returns:
- true if gadget dashboard is not empty
- Throws:
Exception
-
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
onSetPage
public void onSetPage(org.zkoss.zk.ui.Page page, org.zkoss.zk.ui.Desktop desktop) - Parameters:
page
-desktop
-
-
onLogOut
public void onLogOut()clean up for logout -
openReportInViewer
Run report and open in report viewer- Parameters:
AD_Process_ID
-AD_PrintFormat_ID
-parameters
-
-
updateLayout
- Parameters:
clientInfo
-
-