Package org.jboss.dashboard.ui.controller.responses

Examples of org.jboss.dashboard.ui.controller.responses.ShowPanelPage


                panelStatus.setStatus(PanelSession.STATUS_REGULAR_SIZE);
            }
        }

        if (StringUtils.defaultString(request.getRequestObject().getHeader("user-agent")).indexOf("MSIE") != -1)
            return new ShowPanelPage();

        return new ShowJSPAjaxResponse("/section/render_tabbed_region.jsp", panel.getRegion());
    }
View Full Code Here


     * @param panel
     * @param request
     * @return ShowPanelPage
     */
    public CommandResponse panelActionRefreshPanel(Panel panel, CommandRequest request) {
        return new ShowPanelPage();
    }
View Full Code Here

        String action = req.getParameter(Parameters.DISPATCH_ACTION);
        PanelSession session = SessionManager.getPanelSession(panel);
        if (!isSystemAction(action) && !Boolean.TRUE.equals(session.getAttribute(PARAMETER_ACTION_EXECUTED_ENABLED)) && isDoubleClickProtected(action)) {
            // Factory actions have their own double click control.
            log.warn("Discarding duplicated execution in panel " + panel.getInstance().getProvider().getDescription() + ", action: " + action + ". User should be advised not to double click!");
            return new ShowPanelPage();
        }
        if (!isSystemAction(action)) {
            session.removeAttribute(PARAMETER_ACTION_EXECUTED_ENABLED);
        }
View Full Code Here

                log.error("Error: ", e);
            }
        }
        if (factoryResponse != null)
            return factoryResponse;
        return new ShowPanelPage();
    }
View Full Code Here

    public CommandResponse actionChangePage(final Panel panel, CommandRequest request) {
        String pageId = request.getParameter("pageId");
        if (pageId == null || "".equals(pageId)) {
            pageId = SessionManager.getPanelSession(panel).getCurrentPageId();
        }
        return new ShowPanelPage(panel, request, pageId);
    }
View Full Code Here

     * Maximizes the panel
     */
    public CommandResponse panelActionMaximize(Panel panel, CommandRequest request) {
        log.debug("Maximizing panel " + panel.getPanelId());
        getPanelSession(panel).setStatus(PanelSession.STATUS_MAXIMIZED);
        return new ShowPanelPage();
    }
View Full Code Here

     * Maximizes the panel in region
     */
    public CommandResponse panelActionMaximizeInRegion(Panel panel, CommandRequest request) {
        log.debug("Maximizing panel in region " + panel.getPanelId());
        getPanelSession(panel).setStatus(PanelSession.STATUS_MAXIMIZED_IN_REGION);
        return new ShowPanelPage();
    }
View Full Code Here

     * Minimizes the panel
     */
    public CommandResponse panelActionMinimize(Panel panel, CommandRequest request) {
        log.debug("Minimizing panel " + panel.getPanelId());
        getPanelSession(panel).setStatus(PanelSession.STATUS_MINIMIZED);
        return new ShowPanelPage();
    }
View Full Code Here

     * Restores the panel to its regular size
     */
    public CommandResponse panelActionRestore(Panel panel, CommandRequest request) {
        log.debug("Restoring panel " + panel.getPanelId());
        getPanelSession(panel).setStatus(PanelSession.STATUS_REGULAR_SIZE);
        return new ShowPanelPage();
    }
View Full Code Here

     * Sets the panel in show mode
     */
    public CommandResponse panelActionShowMode(Panel panel, CommandRequest request) throws Exception {
        log.debug("Setting panel in configuration mode " + panel.getPanelId());
        activateNormalMode(panel, request);
        return new ShowPanelPage();
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.ui.controller.responses.ShowPanelPage

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.