Package org.jboss.dashboard.ui.components

Examples of org.jboss.dashboard.ui.components.ModalDialogComponent


    public void setShowedPanelSubgroupId(String showedPanelSubgroupId) {
        this.showedPanelSubgroupId = showedPanelSubgroupId;
    }

    public void actionGetPanelsPopupPage(CommandRequest request) {
        ModalDialogComponent modalDialog = getModalDialogComponent();

        if (modalDialog.isShowing()) {
            modalDialog.hide();
            return;
        }

        ResourceBundle i18n = localeManager.getBundle("org.jboss.dashboard.ui.panel.messages", LocaleManager.currentLocale());
        modalDialog.setTitle(i18n.getString("ui.panels.popup.title"));
        modalDialog.setCurrentComponent(this);
        modalDialog.setModal(false);
        modalDialog.setDraggable(true);
        modalDialog.setCloseListener(new Runnable() {
            public void run() {
                PopupPanelsHandler.this.reset();
            }
        });
        modalDialog.show();
    }
View Full Code Here


    private Long panelId;

    abstract Logger getLogger();

    public boolean closeDialog(CommandRequest request) {
        ModalDialogComponent mdc = getModalDialogComponent();

        if (mdc.isShowing()) {
            mdc.actionClose(request);
            return  true;
        }

        return false;
    }
View Full Code Here

        this.width = width;
        this.height = height;

        if (isWellConfigured()) {

            ModalDialogComponent mdc = getModalDialogComponent();

            mdc.setTitle(title);
            mdc.setCurrentComponent(this);
            mdc.setCloseListener(new Runnable() {
                public void run() {
                    try {
                        panel.getProvider().getDriver().activateNormalMode(panel, request);
                    } catch (Exception e) {
                        getLogger().warn("Error closing panel popup: ", e);
                    }
                }
            });
            return mdc.show();
        }
        return false;
    }
View Full Code Here

                ModalDialogComponent.lookup().hide();
            }
        });

        // Display the error in a modal dialog window.
        ModalDialogComponent modalDialog = ModalDialogComponent.lookup();
        modalDialog.setTitle(report.printErrorTitle());
        modalDialog.setCurrentComponent(errorHandler);
        modalDialog.setCloseListener(new Runnable() {
            public void run() {
                ErrorReportHandler errorHandler = ErrorReportHandler.lookup();
                errorHandler.setErrorReport(null);
            }
        });
        modalDialog.show();

        // Force the current screen to be refreshed so the error report will be displayed.
        ControllerStatus controllerStatus = ControllerStatus.lookup();
        controllerStatus.setResponse(new ShowCurrentScreenResponse());
    }
View Full Code Here

    public void setShowedPanelSubgroupId(String showedPanelSubgroupId) {
        this.showedPanelSubgroupId = showedPanelSubgroupId;
    }

    public void actionGetPanelsPopupPage(CommandRequest request) {
        ModalDialogComponent modalDialog = getModalDialogComponent();

        if (modalDialog.isShowing()) {
            modalDialog.hide();
            return;
        }

        ResourceBundle i18n = localeManager.getBundle("org.jboss.dashboard.ui.panel.messages", LocaleManager.currentLocale());
        modalDialog.setTitle(i18n.getString("ui.panels.popup.title"));
        modalDialog.setCurrentComponent(this);
        modalDialog.setModal(false);
        modalDialog.setDraggable(true);
        modalDialog.setCloseListener(new Runnable() {
            public void run() {
                PopupPanelsHandler.this.reset();
            }
        });
        modalDialog.show();
    }
View Full Code Here

                ModalDialogComponent.lookup().hide();
            }
        });

        // Display the error in a modal dialog window.
        ModalDialogComponent modalDialog = ModalDialogComponent.lookup();
        modalDialog.setTitle(report.printErrorTitle());
        modalDialog.setCurrentComponent(errorHandler);
        modalDialog.setCloseListener(new Runnable() {
            public void run() {
                ErrorReportHandler errorHandler = ErrorReportHandler.lookup();
                errorHandler.setErrorReport(null);
            }
        });
        modalDialog.show();

        // Force the current screen to be refreshed so the error report will be displayed.
        RequestContext.lookup().setResponse(new ShowCurrentScreenResponse());
    }
View Full Code Here

    public String getBeanJSP() {
        return "/components/showPanelPage/show.jsp";
    }

    public void closePopup() {
        ModalDialogComponent mdc = getModalDialogComponent();
        if (mdc.isShowing()) mdc.hide();
    }
View Full Code Here

    private Long panelId;

    abstract Logger getLogger();

    public boolean closeDialog(CommandRequest request) {
        ModalDialogComponent mdc = getModalDialogComponent();

        if (mdc.isShowing()) {
            mdc.actionClose(request);
            return  true;
        }

        return false;
    }
View Full Code Here

        this.width = width;
        this.height = height;

        if (isWellConfigured()) {

            ModalDialogComponent mdc = getModalDialogComponent();

            mdc.setTitle(title);
            mdc.setCurrentComponent(this);
            mdc.setCloseListener(new Runnable() {
                public void run() {
                    try {
                        panel.getProvider().getDriver().activateNormalMode(panel, request);
                    } catch (Exception e) {
                        getLogger().warn("Error closing panel popup: ", e);
                    }
                }
            });
            return mdc.show();
        }
        return false;
    }
View Full Code Here

                ModalDialogComponent.lookup().hide();
            }
        });

        // Display the error in a modal dialog window.
        ModalDialogComponent modalDialog = ModalDialogComponent.lookup();
        modalDialog.setTitle(report.printErrorTitle());
        modalDialog.setCurrentComponent(errorHandler);
        modalDialog.setCloseListener(new Runnable() {
            public void run() {
                ErrorReportHandler errorHandler = ErrorReportHandler.lookup();
                errorHandler.setErrorReport(null);
            }
        });
        modalDialog.show();

        // Force the current screen to be refreshed so the error report will be displayed.
        RequestContext.lookup().setResponse(new ShowCurrentScreenResponse());
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.ui.components.ModalDialogComponent

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.