Init the dialog.<p>

@param window window
164326
private void init(final Window window) {

        CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
        m_warningIcon.setContentMode(ContentMode.HTML);
        m_warningIcon.setValue(FontOpenCms.WARNING.getHtml());
        if (window != null) {
            m_cancel.addClickListener(e -> window.close());
        }
        m_table.setWidth("100%");
        m_table.setHeight("100%");

        List<CmsModuleRow> rows = new ArrayList<CmsModuleRow>();
        for (CmsModule module : OpenCms.getModuleManager().getAllInstalledModules()) {
            CmsModuleRow row = new CmsModuleRow(module);
            rows.add(row);
        }
        CmsBeanTableBuilder<CmsModuleRow> builder = CmsBeanTableBuilder.newInstance(CmsModuleRow.class);
        builder.buildTable(m_table, rows);
        m_table.setCellStyleGenerator(builder.getDefaultCellStyleGenerator());
        m_table.setItemIconPropertyId("icon");
        m_table.setRowHeaderMode(RowHeaderMode.ICON_ONLY);
        m_table.setSelectable(true);
        m_table.setVisibleColumns("name", "title");
        m_table.setSortContainerPropertyId("name");
        m_table.sort();

        m_filter.setIcon(FontOpenCms.FILTER);
        m_filter.setInputPrompt(
            Messages.get().getBundle(UI.getCurrent().getLocale()).key(Messages.GUI_EXPLORER_FILTER_0));
        m_filter.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);
        m_filter.addTextChangeListener(new TextChangeListener() {

            public void textChange(TextChangeEvent event) {

                filterTable(event.getText());

            }
        });
    }
435334
protected void openDialog(CmsBasicDialog dialog, String windowCaption) {

        if (m_dialogWindow != null) {
            m_dialogWindow.close();
        }

        m_dialogWindow = CmsBasicDialog.prepareWindow(DialogWidth.wide);
        m_dialogWindow.setContent(dialog);
        m_dialogWindow.setCaption(windowCaption);

        A_CmsUI.get().addWindow(m_dialogWindow);
        m_dialogWindow.center();
    }
424453
public void onInit() {

        String authToken = m_params.getAuthToken();
        if (authToken != null) {
            m_ui.showForgotPasswordView(authToken);
        } else if (m_params.isReset()) {
            m_ui.showPasswordResetDialog();
        } else {
            boolean loggedIn = !A_CmsUI.getCmsObject().getRequestContext().getCurrentUser().isGuestUser();
            m_ui.setSelectableOrgUnits(CmsLoginHelper.getOrgUnitsForLoginDialog(A_CmsUI.getCmsObject(), null));
            if (loggedIn) {
                if (m_params.isLogout()) {
                    logout();
                } else {
                    m_ui.showAlreadyLoggedIn();
                }
            } else {
                m_ui.showLoginView(m_params.getOufqn());
            }
        }

    }
732238
public void initialize(String selectedText) {

        LOG.finest(">>> initialize");

        try {
            this.theCommunityLogic = new CommunityLogic(m_xContext, selectedText);

            // set properties of the dialog
            String[] propNames = new String[] {
                "Height",   // 0
                "Moveable", // 1
                "Name",     // 2
                "PositionX",// 3
                "PositionY",// 4
                "Step",     // 5
                "TabIndex", // 6
                "Title",    // 7
                "Width"     // 8
            };
            Object[] propValues = new Object[] {
                new Integer(DEFAULT_DIALOG_HEIGHT),   // 0
                Boolean.TRUE,       // 1
                I18nLabelsLoader.ADDON_REPORT_ERROR,     // 2
                new Integer(102),   // 3
                new Integer(41),    // 4
                new Integer(-1),     // 5
                new Short((short) 0),// 6
                I18nLabelsLoader.ADDON_REPORT_ERROR + " - CoGrOO Comunidade",           // 7
                new Integer(DEFAULT_DIALOG_WIDTH)    // 8
            };
        
            super.initialize(propNames, propValues);

            this.createWindowPeer();
            this.addRoadmap(new RoadmapItemStateChangeListener(m_xMSFDialogModel));
            
            populateStep1();
            populateStep2();
            populateStep3();
            populateStep4();

            addButtons();

            new CheckTokenAndGetCategoriesThread().start();

            setCurrentStep(STEP_LOGIN);

            setControlsState();
            
            LOG.finest("<<< initialize");

        } catch(BasicErrorException e ) {
            LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e);
            throw new CogrooRuntimeException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{e.getLocalizedMessage()});
        }
    }
1197596
private void initialize() {
        scrollableArea = ScrollableArea.create(null, null);
        showDividersOnScroll = true;
        dividerColor = ContextCompat.getColor(getContext(), R.color.divider_color_light);
        dividerMargin = 0;
        dialogPadding = new int[]{0, 0, 0, 0};
        paint = new Paint();
        paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY));
    }
1156460
private void init(CmsObject cms, final Window window, final CmsAccountsApp app) {

        CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
        m_icon.setContentMode(ContentMode.HTML);
        m_icon.setValue(FontOpenCms.WARNING.getHtml());
        m_icon2.setContentMode(ContentMode.HTML);
        m_icon2.setValue(FontOpenCms.WARNING.getHtml());
        m_label_deleteDefault.setVisible(false);
        m_cms = cms;
        m_okButton.addClickListener(new ClickListener() {

            private static final long serialVersionUID = -7845894751587879028L;

            public void buttonClick(ClickEvent event) {

                deletePrincipal();
                window.close();
                app.reload();

            }

        });

        m_cancelButton.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 6649262870116199591L;

            public void buttonClick(ClickEvent event) {

                window.close();

            }

        });
    }
105521
private void init(Context context) {
        setDialogWindowAttributes();
        // Listen for the backpress in order to dismiss the dialog with animation
        setOnKeyListener(new OnKeyListener() {
            @Override
            public boolean onKey(DialogInterface arg0, int keyCode, KeyEvent event) {
                if (keyCode == KeyEvent.KEYCODE_BACK) {
                    slideClose();
                }
                return true;
            }
        });
    }
1304964
private void initialize() {
		this.setContentPane(getJContentPane());
        this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
        this.setTitle(TITLE);
		this.addWindowListener(new java.awt.event.WindowAdapter() {
		    @Override
		    public void windowClosing(WindowEvent winEvt) {
				  stop();
                  BrowserDialog.this.setVisible(false);
		    }
		});
        pack();
	    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
	    	this.setSize(640,480);
	    }

	}
625564
private void initButtons() {

        m_addButton.addChoice(
            m_handler.getWidgetService(),
            new CmsChoiceMenuEntryBean(m_handler.getAttributeName()),
            new AsyncCallback<CmsChoiceMenuEntryBean>() {

                public void onFailure(Throwable caught) {

                    // will not be called

                }

                public void onSuccess(CmsChoiceMenuEntryBean selectedEntry) {

                    // nothing to do
                }
            });
        m_addButton.addDomHandler(new ClickHandler() {

            public void onClick(ClickEvent event) {

                m_addButton.hide();
                addNewAttributeValue();
                event.preventDefault();
                event.stopPropagation();

            }
        }, ClickEvent.getType());

        m_removeButton.setImageClass(I_CmsButton.CUT_SMALL);
        m_removeButton.setButtonStyle(ButtonStyle.FONT_ICON, null);
        m_removeButton.setHideFromTabNav(true);

        m_upButton.setImageClass(I_CmsButton.EDIT_UP_SMALL);
        m_upButton.setButtonStyle(ButtonStyle.FONT_ICON, null);
        m_upButton.setHideFromTabNav(true);

        m_downButton.setImageClass(I_CmsButton.EDIT_DOWN_SMALL);
        m_downButton.setButtonStyle(ButtonStyle.FONT_ICON, null);
        m_downButton.setHideFromTabNav(true);

        m_helpBubbleClose.setImageClass(I_CmsButton.DELETE_SMALL);
        m_helpBubbleClose.setButtonStyle(ButtonStyle.FONT_ICON, null);
        m_helpBubbleClose.setHideFromTabNav(true);
        if (CmsEditorBase.hasDictionary()) {
            m_addButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_ADD_1, m_label));
            m_attributeChoice.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_CHOICE_ADD_CHOICE_1, m_label));
            m_removeButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_DELETE_1, m_label));
            m_helpBubbleClose.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_CLOSE_0));
            m_upButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_MOVE_UP_0, m_label));
            m_downButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_MOVE_DOWN_0, m_label));
        }
    }
424310
private void initializeAlertDialog() {
        MaterialDialog.Builder builder = new MaterialDialog.Builder(getActivity());
        configureHeaderDialogBuilder(builder);
        configureButtonBarDialogBuilder(builder);
        alertDialog = builder.create();
    }
961652
public final void setDialog(@NonNull final MaterialDialog dialog) {
        Condition.INSTANCE.ensureNotNull(dialog, "The dialog may not be null");
        this.dialog = dialog;
    }
681515
protected void openNewDialog() {

        final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide);
        CmsBasicDialog dialog = new CmsNewElementDialog(m_cms, m_stateBean.getPath(), window, this);
        window.setContent(dialog);
        window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_ADD_ELEMENT_0));
        A_CmsUI.get().addWindow(window);
    }
173023
private void initialize() {
        this.setDefaultCloseOperation(javax.swing.JFrame.DO_NOTHING_ON_CLOSE);
        this.setContentPane(getJPanel());
       	this.setPreferredSize(new Dimension(550, 375));
        this.addWindowListener(new java.awt.event.WindowAdapter() {

        	@Override
			public void windowClosing(java.awt.event.WindowEvent e) {

        	    btnDecline.doClick();
        	}
        });

        showLicense();
	}
619637
protected void init(String appId, I_CmsAppUIContext context) {

        m_dialogContext = new ToolbarContext(appId);
        m_appContext = context;
        initContextMenu();
        m_itemsRight.addComponent(m_quickLaunchDropDown);
        m_itemsRight.addComponent(m_userDropDown);
        enableDefaultButtons(true);
    }
582865
protected void init(Map<String, String> items) {

        initWidget(m_panel);
        m_eventBus = new SimpleEventBus();
        m_radioButtons = new HashMap<String, CmsRadioButton>();
        for (Map.Entry<String, String> entry : items.entrySet()) {

            final CmsRadioButton button = new CmsRadioButton(entry.getKey(), entry.getValue());
            button.setGroup(m_group);
            m_radioButtons.put(entry.getKey(), button);
            FlowPanel wrapper = new FlowPanel();
            wrapper.add(button);
            m_panel.add(wrapper);
        }
        m_panel.add(m_error);
        m_panel.setStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().radioButtonGroup());
        m_panel.addStyleName(I_CmsLayoutBundle.INSTANCE.generalCss().textMedium());
        m_group.setValueChangeTarget(this);
    }
1009139
protected void initImportObject() {

        try {
            if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                // create a new list
                setGroups(new ArrayList());
                setRoles(new ArrayList());
            } else {
                // this is not the initial call, get the message info object from session
                setGroups((List)((Map)getDialogObject()).get("groups"));
                setRoles((List)((Map)getDialogObject()).get("roles"));
                m_importFile = (String)((Map)getDialogObject()).get("importfile");
                m_password = (String)((Map)getDialogObject()).get("password");
            }
        } catch (Exception e) {
            // create a new list
            setGroups(new ArrayList());
            setRoles(new ArrayList());
        }
    }
307101
protected void initialize(CmsEventManager base) {

        m_eventListeners = new HashMap<Integer, List<I_CmsEventListener>>(base.getEventListeners());

    }