Loads and shows this dialog.<p>
507523
public void loadAndShow() {

        // enable or disable the OK button
        if (getFilesToUpload().isEmpty()) {
            disableOKButton(Messages.get().key(Messages.GUI_UPLOAD_NOTIFICATION_NO_FILES_0));
            setDragAndDropMessage();
        } else {
            enableOKButton();
            removeDragAndDropMessage();
        }
        m_uploadedFiles = null;
        // set the user info
        displayDialogInfo(Messages.get().key(Messages.GUI_UPLOAD_INFO_SELECTION_0), false);
        // set the selection summary
        updateSummary();

        // add a upload button
        m_uploadButton.createFileInput();

        // show the popup
        if (!isShowing()) {
            Scheduler.get().scheduleDeferred(new ScheduledCommand() {

                /**
                 * @see com.google.gwt.core.client.Scheduler.ScheduledCommand#execute()
                 */
                public void execute() {

                    setContentWrapperHeight();
                    center();
                }
            });
        }
        center();
    }
1071931
@Override
    public T showDialog(WindowBasedTextGUI textGUI) {
        result = null;
        super.showDialog(textGUI);
        return result;
    }
764138
public static void openEmbeddedDialog(
        final CmsEmbeddedDialogContext dialogContext,
        Map<String, String[]> params,
        boolean includeWebOus) {

        String[] param = params.get(PARAM_OU);
        String ou;
        if ((param != null) && (param.length >= 1)) {
            ou = param[0];
        } else {
            ou = dialogContext.getCms().getRequestContext().getCurrentUser().getOuFqn();
        }
        boolean realOnly;
        param = params.get(PARAM_REAL_ONLY);
        if ((param != null) && (param.length >= 1)) {
            realOnly = Boolean.parseBoolean(param[0]);
        } else {
            realOnly = true;
        }
        WidgetType type = WidgetType.groupwidget;
        param = params.get(PARAM_TYPE);
        if ((param != null) && (param.length >= 1)) {
            try {
                type = WidgetType.valueOf(param[0]);
            } catch (Exception e) {
                // ignore
            }
        }
        WidgetType startType = null;
        param = params.get(PARAM_START_TYPE);
        if ((param != null) && (param.length >= 1)) {
            try {
                startType = WidgetType.valueOf(param[0]);
            } catch (Exception e) {
                // ignore
            }
        }
        if (startType == null) {
            startType = type != WidgetType.principalwidget ? type : WidgetType.groupwidget;
        }
        Window window = CmsBasicDialog.prepareWindow(DialogWidth.max);
        dialogContext.setWindow(window);
        CmsPrincipalSelectDialog dialog = new CmsPrincipalSelectDialog(
            null,
            ou,
            window,
            type,
            realOnly,
            startType,
            includeWebOus);
        dialog.setSelectHandler(new I_PrincipalSelectHandler() {

            public void onPrincipalSelect(String principalType, String principalName) {

                dialogContext.setPrincipal(principalName);
            }
        });
        window.setCaption(
            CmsVaadinUtils.getMessageText(
                org.opencms.workplace.commons.Messages.GUI_PRINCIPALSELECTION_LIST_ACTION_SELECT_NAME_0));
        window.setContent(dialog);
        A_CmsUI.get().addWindow(window);
    }
163078
@Override
	public void showLoading() {
		final FragmentIf fragmentIf = getFragmentIf();
		fragmentIf.executeOnUIThread(new Runnable() {

			@Override
			public void run() {
				if (loading != null) {
					loading.show(fragmentIf);
				}
			}
		});
	}
668749
protected void openDialog() {

        CmsCreateGalleryDialog dialog = new CmsCreateGalleryDialog(
            m_hoverbar.getController(),
            m_resourceTypeId,
            m_parentId);
        dialog.center();
    }
1156128
public void displayDialog() throws Exception {

        if (getAction() == ACTION_CANCEL) {
            actionCloseDialog();
        }
        String link1 = CmsHistoryListUtil.getHistoryLink(getCms(), new CmsUUID(m_paramId1), m_paramVersion1);
        String link2 = CmsHistoryListUtil.getHistoryLink(getCms(), new CmsUUID(m_paramId2), m_paramVersion2);
        JspWriter out = getJsp().getJspContext().getOut();
        out.println(dialogBlockStart(key(Messages.GUI_COMPARE_CONTENT_0)));
        out.println(dialogContentStart(null));
        out.println("<table cellpadding='0' cellspacing='0' border='0' class='maxwidth'><tr align='center'><th>");
        out.println(
            key(
                Messages.GUI_COMPARE_VERSION_1,
                new String[] {CmsHistoryListUtil.getDisplayVersion(m_paramVersion1, getLocale())}));
        out.println("</th><th>");
        out.println(
            key(
                Messages.GUI_COMPARE_VERSION_1,
                new String[] {CmsHistoryListUtil.getDisplayVersion(m_paramVersion2, getLocale())}));
        out.println("</th></tr>");
        out.println("<tr><td>&nbsp;</td><td>&nbsp;</td></tr>");
        out.println("\t<tr align='center'>\n");
        out.println("\t\t<td width='50%'><img src='");
        out.print(getJsp().link(link1));
        out.print("' alt='");
        out.print(
            key(
                Messages.GUI_COMPARE_VERSION_1,
                new String[] {CmsHistoryListUtil.getDisplayVersion(m_paramVersion1, getLocale())}));
        out.print("'/></td>\n");
        out.println("\t\t<td width='50%'><img src='");
        out.print(getJsp().link(link2));
        out.print("' alt='");
        out.print(
            key(
                Messages.GUI_COMPARE_VERSION_1,
                new String[] {CmsHistoryListUtil.getDisplayVersion(m_paramVersion2, getLocale())}));
        out.print("'/></td>\n");
        out.println("\t</tr>");
        out.println("</table>");
        out.println(dialogBlockEnd());
        out.println(dialogContentEnd());
        out.println(dialogEnd());
        out.println(bodyEnd());
        out.println(htmlEnd());
    }
1079536
public static void showDialog() {

        final CmsPopup popup = new CmsPopup(
            Messages.get().key(Messages.GUI_PASSWORD_CHANGE_TITLE_1, CmsCoreProvider.get().getUserInfo().getName()));
        popup.setModal(true);
        popup.setGlassEnabled(true);
        CmsPushButton okButton = new CmsPushButton();
        okButton.setButtonStyle(ButtonStyle.TEXT, ButtonColor.RED);
        okButton.setText(Messages.get().key(Messages.GUI_OK_0));
        okButton.setUseMinWidth(true);
        CmsPushButton cancelButton = new CmsPushButton();
        cancelButton.setButtonStyle(ButtonStyle.TEXT, ButtonColor.BLUE);
        cancelButton.setText(Messages.get().key(Messages.GUI_CANCEL_0));
        cancelButton.setUseMinWidth(true);
        popup.addButton(cancelButton);
        popup.addButton(okButton);

        Runnable finishAction = new Runnable() {

            public void run() {

                popup.hide();
            }
        };
        final CmsChangePasswordWidget passwordWidget = new CmsChangePasswordWidget(finishAction);
        okButton.addClickHandler(new ClickHandler() {

            public void onClick(ClickEvent e) {

                passwordWidget.changePassword();
            }
        });

        cancelButton.addClickHandler(new ClickHandler() {

            public void onClick(ClickEvent e) {

                popup.hide();
            }
        });
        popup.setMainContent(passwordWidget);
        popup.center();

    }
1088637
protected void buildAndShowDialog(@Nullable Bundle savedInstanceState) {
        final AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
        final String title = dialogConfiguration.title();
        if (title != null) {
            dialogBuilder.setTitle(title);
        }
        final int iconResourceId = dialogConfiguration.resIcon();
        if (iconResourceId != ACRAConstants.DEFAULT_RES_VALUE) {
            dialogBuilder.setIcon(iconResourceId);
        }
        dialogBuilder.setView(buildCustomView(savedInstanceState))
                .setPositiveButton(dialogConfiguration.positiveButtonText(), this)
                .setNegativeButton(dialogConfiguration.negativeButtonText(), this);

        mDialog = dialogBuilder.create();
        mDialog.setCanceledOnTouchOutside(false);
        mDialog.show();
    }
737980
void openAddUserDialog() {

        CmsPrincipalSelectDialog dialog;

        final Window window = CmsBasicDialog.prepareWindow(DialogWidth.max);

        dialog = new CmsPrincipalSelectDialog(
            this,
            m_stateBean.getPath(),
            window,
            WidgetType.userwidget,
            true,
            WidgetType.userwidget);

        try {
            dialog.setOuComboBoxEnabled(
                !OpenCms.getOrgUnitManager().readOrganizationalUnit(m_cms, m_stateBean.getPath()).hasFlagWebuser()
                    | m_stateBean.getType().equals(CmsOuTreeType.ROLE));
        } catch (CmsException e) {
            LOG.error("Can not read OU.", e);
        }
        window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_ADD_USER_TO_GROUP_0));
        window.setContent(dialog);
        A_CmsUI.get().addWindow(window);

    }
240498
public void showPageOverlay() {

        if (m_overlay == null) {
            m_overlay = new SimplePanel();
            m_overlay.setStyleName(I_CmsLayoutBundle.INSTANCE.dialogCss().popupOverlay());
            Style style = m_overlay.getElement().getStyle();
            style.setWidth(100, Unit.PCT);
            style.setHeight(100, Unit.PCT);
            style.setPosition(Position.FIXED);
        }
        RootPanel.get().add(m_overlay);
    }
977433
private void loadCategories() {

        CmsRpcAction<List<CmsCategoryTreeEntry>> action = new CmsRpcAction<List<CmsCategoryTreeEntry>>() {

            @Override
            public void execute() {

                start(200, true);
                CmsCoreProvider.getService().getCategoriesForSitePath(m_dialogBean.getReferenceSitePath(), this);
            }

            @Override
            protected void onResponse(List<CmsCategoryTreeEntry> result) {

                m_dialogBean.setCategories(result);
                m_handler.setCategoriesTabContent(result, new ArrayList<String>());
                m_handler.onCategoriesTabSelection();
                stop(false);
            }
        };
        action.execute();
    }
1098315
public void loadAndShow() {

        CmsRpcAction<CmsRestoreInfoBean> action = new CmsRpcAction<CmsRestoreInfoBean>() {

            @Override
            public void execute() {

                start(0, true);
                CmsCoreProvider.getVfsService().getRestoreInfo(m_structureId, this);
            }

            @Override
            protected void onResponse(CmsRestoreInfoBean result) {

                stop(false);
                m_restoreView = new CmsRestoreView(result, m_afterRestoreAction);
                m_restoreView.setPopup(CmsRestoreDialog.this);
                setMainContent(m_restoreView);
                List<CmsPushButton> buttons = m_restoreView.getDialogButtons();
                for (CmsPushButton button : buttons) {
                    addButton(button);
                }
                center();
            }
        };
        action.execute();
    }
687219
public static void loadAndShow(final Runnable finishAction) {

        CmsRpcAction<CmsUserSettingsBean> action = new CmsRpcAction<CmsUserSettingsBean>() {

            @Override
            public void execute() {

                start(200, false);
                CmsCoreProvider.getService().loadUserSettings(this);

            }

            @Override
            protected void onResponse(CmsUserSettingsBean result) {

                stop(false);
                CmsUserSettingsDialog dlg = new CmsUserSettingsDialog(result, finishAction);
                dlg.centerHorizontally(50);
                dlg.initWidth();
            }
        };

        action.execute();

    }
1136162
protected void openPopup() {

        m_popup.setWidth(475);
        m_popup.setAutoHideEnabled(true);
        m_popup.addCloseHandler(new CloseHandler<PopupPanel>() {

            public void onClose(CloseEvent<PopupPanel> event) {

                closePopupDefault();

            }
        });

        m_popup.addDialogClose(new Command() {

            public void execute() {

                // nothing to do all will be done in onClose();

            }
        });

        if (m_previewHandlerRegistration != null) {
            m_previewHandlerRegistration.removeHandler();

        }
        m_previewHandlerRegistration = Event.addNativePreviewHandler(new CloseEventPreviewHandler());
        m_popup.showRelativeTo(m_colorField);

        m_popup.setModal(false);
        if (m_popup.getWidgetCount() != 0) {
            m_popup.remove(m_popup.getWidget(0));
        }
        CmsColorSelector picker = new CmsColorSelector();
        try {
            picker.setHex(m_textboxColorValue.getText().replace("#", ""));
        } catch (Exception e) {
            // TODO: Auto-generated catch block
        }
        m_popup.add(picker);
        if (m_count == 0) {
            CmsPushButton close = new CmsPushButton();
            CmsPushButton cancel = new CmsPushButton();
            cancel.setText(Messages.get().key(Messages.GUI_CANCEL_0));
            cancel.setTitle(Messages.get().key(Messages.GUI_CANCEL_0));
            close.setText(Messages.get().key(Messages.GUI_OK_0));
            close.setTitle(Messages.get().key(Messages.GUI_OK_0));
            close.addClickHandler(new ClickHandler() {

                public void onClick(ClickEvent event) {

                    closePopup();

                }
            });
            cancel.addClickHandler(new ClickHandler() {

                public void onClick(ClickEvent event) {

                    closePopupDefault();

                }
            });
            m_popup.addButton(cancel);
            m_popup.addButton(close);
            m_count = 1;
        }

        m_xcoordspopup = m_popup.getPopupLeft();
        m_ycoordspopup = m_popup.getPopupTop();

    }
267034
public void openDialog(String dialogId, String contextType, List<CmsUUID> resources) {

        openDialog(dialogId, contextType, resources, null);
    }
294507
@NonNull
    protected View getMainView() {
        final TextView text = new TextView(this);
        final String dialogText = dialogConfiguration.text();
        if (dialogText != null) {
            text.setText(dialogText);
        }
        return text;
    }
1175514
protected void openGalleryDialog() {

        String title = org.opencms.gwt.client.Messages.get().key(
            org.opencms.gwt.client.Messages.GUI_GALLERY_SELECT_DIALOG_TITLE_0);
        final CmsFramePopup popup = new CmsFramePopup(title, buildGalleryUrl());
        popup.setCloseHandler(new Runnable() {

            public void run() {

                m_textbox.setGhostMode(false);

            }

        });
        popup.setId(m_id);
        popup.getFrame().setSize("700px", "490px");
        popup.center();

        CmsPushButton button = new CmsPushButton(I_CmsButton.DELETE_SMALL);
        button.setButtonStyle(ButtonStyle.FONT_ICON, null);
        button.setSize(Size.small);
        Style style = button.getElement().getStyle();
        style.setRight(4, Unit.PX);
        style.setTop(0, Unit.PX);
        style.setPosition(Position.ABSOLUTE);
        style.setCursor(Cursor.POINTER);
        button.addClickHandler(new ClickHandler() {

            /**
             * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
             */
            public void onClick(ClickEvent event) {

                popup.hide();
            }
        });

        popup.insertFront(button);
    }