Sets the notification widget.<p>
168483
protected void installNotificationWidget() {

        if (m_notificationWidgetInstalled) {
            return;
        }
        // remember current notification widget
        m_parentNotificationWidget = CmsNotification.get().getWidget();
        // create our own notification overlay
        if (m_ownNotificationWidget == null) {
            m_ownNotificationWidget = createDialogNotificationWidget();
        }
        add(m_ownNotificationWidget);
        CmsNotification.get().setWidget(m_ownNotificationWidget);
        m_notificationWidgetInstalled = true;
    }
452893
def init_widget(self):
        
        w = self.window
        d = self.declaration
        self.set_background_color(d.background_color)
        self.set_touchable(d.touchable)
        self.set_outside_touchable(d.outside_touchable)

        # Listen for events
        w.setOnDismissListener(w.getId())
        w.onDismiss.connect(self.on_dismiss)
        super(AndroidPopupWindow, self).init_widget()
1294573
@Override
    protected void defineWidgets() {

        super.defineWidgets();

        // widgets to display
        // new indexsource
        if (m_indexsource.getName() == null) {
            addWidget(new CmsWidgetDialogParameter(m_indexsource, "name", PAGES[0], new CmsInputWidget()));
        } else {
            // existing indexsource
            addWidget(new CmsWidgetDialogParameter(m_indexsource, "name", PAGES[0], new CmsDisplayWidget()));
        }
        addWidget(
            new CmsWidgetDialogParameter(
                m_indexsource,
                "indexerClassName",
                "",
                PAGES[0],
                new CmsComboWidget(getIndexerClassWidgetConfiguration()),
                1,
                1));

    }
789386
public void notifyChanged() {
        if (listeners != null) {
            synchronized (notifyLock) {
                if (listeners != null) {
                    if (notifyThread == null) {
                        notifyThread = new NotifyThread(this);
                        notifyThread.setDaemon(true);
                        notifyThread.start();
                    }
                    notifyThread.queue(listeners.toArray(new EventListener[listeners.size()]));
                }
            }
        }
    }
918308
public void updatePosition() {

        setPosition(CmsPositionBean.getBoundingClientRect(m_element));
        for (Widget widget : m_buttonPanel) {
            if (widget instanceof CmsInlineEntityWidget) {
                ((CmsInlineEntityWidget)widget).positionWidget();
            }
        }
    }
1293401
public void setContent(Widget content) {

        if (m_content != null) {
            m_content.removeFromParent();
        }
        if (m_isFrame) {
            m_contentPanel.setWidget(content);
        } else {
            m_popup.setMainContent(content);
        }
        m_content = content;
    }
359301
@Override
    protected void defineWidgets() {

        initModule();
        setKeyPrefix(KEY_PREFIX);

        addWidget(new CmsWidgetDialogParameter(m_dependency, "name", PAGES[0], new CmsSelectWidget(getModules())));
        addWidget(new CmsWidgetDialogParameter(m_dependency, "version.version", PAGES[0], new CmsInputWidget()));

    }
630827
public void setButtonPosition(CmsInlineEntityWidget widget, int absoluteTop) {

        if (m_buttonPanel.getWidgetIndex(widget) > -1) {
            int buttonBarTop = CmsClientStringUtil.parseInt(m_buttonBar.getStyle().getTop());
            if (absoluteTop < buttonBarTop) {
                absoluteTop = buttonBarTop;
            }
            int positionTop = getAvailablePosition(widget, absoluteTop) - buttonBarTop;
            widget.getElement().getStyle().setTop(positionTop, Unit.PX);
            if (CmsClientStringUtil.parseInt(m_buttonBar.getStyle().getHeight()) < (positionTop + 20)) {
                increaseOverlayHeight(positionTop + 20);
            }
        }
    }
816672
@Override
    protected void defineWidgets() {

        // initialize the project object to use for the dialog
        initMessageObject();

        setKeyPrefix(KEY_PREFIX);

        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "from", PAGES[0], new CmsDisplayWidget()));
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getExcludedUsers())) {
            addWidget(new CmsWidgetDialogParameter(this, "excludedUsers", PAGES[0], new CmsDisplayWidget()));
        }
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "to", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "cc", PAGES[0], "", new CmsInputWidget(), 0, 1));
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "subject", PAGES[0], new CmsInputWidget()));
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "msg", PAGES[0], new CmsTextareaWidget(12)));
    }
102973
public void add(T notification) {
        notificationArray.remove(notification.getId());
        notificationArray.put(notification.getId(), notification);
    }
58829
private void setBusy(boolean busy) {

        if (busy) {
            getElement().addClassName(I_CmsLayoutBundle.INSTANCE.notificationCss().busy());
        } else {
            getElement().removeClassName(I_CmsLayoutBundle.INSTANCE.notificationCss().busy());
        }
    }
1164450
public void addWidget(Widget w) {
        if (w == null || controlGroup == null) return;
        controlGroup.add(w);
    }
14099
public void addNotification(@Observes final DesignerNotificationEvent event) {
        if (user.getIdentifier().equals(event.getUserId())) {

            if (event.getNotification() != null && !event.getNotification().equals("openinxmleditor")) {
                final NotificationPopupView view = new NotificationPopupView();
                activeNotifications.add(view);
                view.setPopupPosition(getMargin(),
                                      activeNotifications.size() * SPACING);

                view.setNotification(event.getNotification());
                view.setType(event.getType());
                view.setNotificationWidth(getWidth() + "px");
                view.show(new Command() {

                    @Override
                    public void execute() {
                        //The notification has been shown and can now be removed
                        deactiveNotifications.add(view);
                        remove();
                    }
                });
            }
        }
    }
1110278
@Override
    protected void defineWidgets() {

        // initialize the project object to use for the dialog
        initMessageObject();

        setKeyPrefix(KEY_PREFIX);

        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "from", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "to", PAGES[0], new CmsDisplayWidget()));
        addWidget(new CmsWidgetDialogParameter(m_msgInfo, "msg", PAGES[0], new CmsTextareaWidget(12)));
    }
1202253
void setOkButtonEnabled() {

        m_ok.setEnabled(true);
        m_ok.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));
        m_ok.removeClickListener(m_okClickListener);
        m_ok.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 5637556711524961424L;

            public void buttonClick(ClickEvent event) {

                closeDailog(true);
            }
        });
    }
1161107
public void setPanel(int panelId) {

        m_panel.showWidget(panelId);
        removeAllButtons();
        if (panelId == PANEL_SELECT) {
            for (CmsPushButton button : m_publishSelectPanel.getButtons()) {
                addButton(button);
            }
            m_publishSelectPanel.updateDialogTitle();
        } else if (panelId == PANEL_BROKEN_LINKS) {
            for (CmsPushButton button : m_brokenLinksPanel.getButtons()) {
                addButton(button);
            }
            m_brokenLinksPanel.updateTitle();
        }
    }
1097397
public void setNotificationTime(String notificationTime) {

        try {
            m_notificationTime = new Integer(notificationTime);
        } catch (Throwable t) {
            m_notificationTime = new Integer(-1);
        }
        if (CmsLog.INIT.isInfoEnabled()) {
            CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_NOTIFICATION_TIME_1, m_notificationTime));
        }
    }