Package org.jmanage.webui.dashboard.framework

Examples of org.jmanage.webui.dashboard.framework.DashboardComponent


        DashboardConfig dashboardConfig = DashboardRepository.getInstance().get(dashboardId);
        DashboardContext dashboardContext = new DashboardContextImpl(context, dashboardConfig,
                request, true); // set the refresh request       
        assert dashboardConfig != null : "Error retrieving dashboard details. id=" + dashboardId;
        DashboardComponent component = dashboardConfig.getComponents().get(componentId);
        assert component != null : "Error retrieving component. id=" + componentId;
        try{
            return component.draw(dashboardContext);
        }catch(Throwable e){
            logger.log(Level.SEVERE, "Error displaying component", e);
            return "Error:" + e.getMessage();
        }
    }
View Full Code Here


            assert !appConfig.isCluster();
            String dashboardId = request.getParameter("dashBID");
            DashboardConfig currentDashboardConfig = DashboardRepository.getInstance().get(dashboardId);
           
            assert currentDashboardConfig != null : "Error retrieving dashboard details";
            DashboardComponent component =
                    currentDashboardConfig.getComponents().get(getId());

            String componentDisplay = component.draw(new DashboardContextImpl(context, currentDashboardConfig,
                    (HttpServletRequest)pageContext.getRequest()));
            componentDisplay = MessageFormat.format(componentDisplay, getWidth(),
                    getHeight(), Utils.getCookieValue(request, "JSESSIONID"));
            pageContext.getOut().println(componentDisplay);
        }catch(Throwable e){
View Full Code Here

TOP

Related Classes of org.jmanage.webui.dashboard.framework.DashboardComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.