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

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Holds information about the report: Report Content, Row Count
  • Constructor Summary

    Constructors
    Constructor
    Description
    default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.zkoss.zk.ui.event.Event event)
     
    void
    clean up for logout
    void
    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 viewer
    void
    render(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard)
    Render main or side dashboard
    boolean
    render(org.zkoss.zk.ui.Component content, MDashboardContent dashboardContent, DashboardRunnable dashboardRunnable)
    Synchronous render of gadget content in foreground UI (Event Listener) thread
    protected void
    renderColumns(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update)
    Render dashboard in column orientation
    protected void
    renderRows(org.zkoss.zk.ui.Component parent, IDesktop desktopImpl, boolean isShowInDashboard, boolean update)
    Render dashboard in row orientation
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 dashboard
      desktopImpl - IDesktop
      isShowInDashboard - 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 - Component
      desktopImpl - IDesktop
      isShowInDashboard - true for dashboard, false for left/right side panel
      update - 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 instanceof HtmlBasedComponent
      dashboardContent - MDashboardContent
      dashboardRunnable - DashboardRunnable
      Returns:
      true if gadget dashboard is not empty
      Throws:
      Exception
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Specified by:
      onEvent in interface org.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

      protected void openReportInViewer(int AD_Process_ID, int AD_PrintFormat_ID, String parameters)
      Run report and open in report viewer
      Parameters:
      AD_Process_ID -
      AD_PrintFormat_ID -
      parameters -
    • updateLayout

      public void updateLayout(ClientInfo clientInfo)
      Parameters:
      clientInfo -