Creates a dialog text button.<p>

@param buttonText the button text

@return the button
183612
private CmsPushButton createButton(String buttonText) {

        CmsPushButton button = new CmsPushButton();
        button.setTitle(buttonText);
        button.setText(buttonText);
        button.setSize(I_CmsButton.Size.medium);
        button.setUseMinWidth(true);
        return button;
    }
1071931
@Override
    public T showDialog(WindowBasedTextGUI textGUI) {
        result = null;
        super.showDialog(textGUI);
        return result;
    }
888604
public VisDialog text (String text) {
		if (skin == null)
			throw new IllegalStateException("This method may only be used if the dialog was constructed with a Skin.");
		return text(text, skin.get(LabelStyle.class));
	}
897345
private void obtainNextButtonText() {
        CharSequence text;

        try {
            text = ThemeUtil.getText(this, R.attr.nextButtonText);
        } catch (NotFoundException e) {
            text = getText(R.string.next_button_text);
        }

        setNextButtonText(text);
    }
607511
public ChatMessage sendMessage(String text) {
        if (text != null && !text.isEmpty()) {
            ChatMessage message = new ChatMessage(self, text);
            eventManager.fireRemoteEvent(sendEvent, message);
            return message;
        }
        
        return null;
    }
441620
@Override
    protected String customHtmlBeforeList() {

        StringBuffer result = new StringBuffer(256);

        result.append(dialogBlockStart(null));
        result.append(key(Messages.GUI_LABEL_TITLE_0));
        result.append(": ");
        result.append(getJsp().property("Title", getParamResource(), ""));
        result.append("<br>");
        result.append(key(Messages.GUI_LABEL_STATE_0));
        result.append(": ");
        try {
            result.append(getState());
        } catch (CmsException e) {
            // not so important ... just go on
        }
        result.append("<br>");
        result.append(key(Messages.GUI_LABEL_PERMALINK_0));
        result.append(": ");
        result.append(OpenCms.getLinkManager().getPermalink(getCms(), getParamResource()));
        result.append(dialogBlockEnd());
        result.append(dialogSpacer());

        return result.toString();
    }
1276982
protected JComponent createButtonBar() {
		this.dialogCommandGroup = getCommandManager().createCommandGroup(null, getCommandGroupMembers());
		JComponent buttonBar = this.dialogCommandGroup.createButtonBar();
		GuiStandardUtils.attachDialogBorder(buttonBar);
		return buttonBar;
	}
270078
private void obtainFinishButtonText() {
        CharSequence text;

        try {
            text = ThemeUtil.getText(this, R.attr.finishButtonText);
        } catch (NotFoundException e) {
            text = getText(R.string.finish_button_text);
        }

        setFinishButtonText(text);
    }
1280387
public Dialog setButtons(ArrayItemOptions<DialogButton> buttons)
	{
		for (DialogButton button : buttons)
		{
			if (button instanceof AjaxDialogButton)
			{
				((AjaxDialogButton) button).activateCallback(ajaxBehavior);
			}
		}
		this.options.put("buttons", buttons);
		return this;
	}
394364
public String button (String name, String text, String extra)
    {
        return fixedInput("button", name, text, extra);
    }
619734
@SuppressWarnings("serial")
    private Component createPublishButton() {

        Button publishBtn = CmsToolBar.createButton(FontOpenCms.PUBLISH, m_messages.key(Messages.GUI_BUTTON_PUBLISH_0));
        publishBtn.addClickListener(new ClickListener() {

            public void buttonClick(ClickEvent event) {

                publishAction();
            }

        });
        return publishBtn;
    }
297575
public static Button createPublishButton(final I_CmsUpdateListener<String> updateListener) {

        Button publishButton = CmsToolBar.createButton(
            FontOpenCms.PUBLISH,
            CmsVaadinUtils.getMessageText(Messages.GUI_PUBLISH_BUTTON_TITLE_0));
        if (CmsAppWorkplaceUi.isOnlineProject()) {
            // disable publishing in online project
            publishButton.setEnabled(false);
            publishButton.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_TOOLBAR_NOT_AVAILABLE_ONLINE_0));
        }
        publishButton.addClickListener(new ClickListener() {

            /** Serial version id. */
            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                CmsAppWorkplaceUi.get().disableGlobalShortcuts();
                CmsGwtDialogExtension extension = new CmsGwtDialogExtension(A_CmsUI.get(), updateListener);
                extension.openPublishDialog();
            }
        });
        return publishButton;
    }
495635
@Override
	public void addText(String text)
	{
		if (selectingText)
			deleteSelectedText();

		final StringBuilder oldText = this.password;
		final String oldValue = oldText.toString();
		String newValue = oldText.insert(this.cursor.index, text).toString();

		if (this.filterFunction != null)
			newValue = this.filterFunction.apply(newValue);

		if (!fireEvent(new ComponentEvent.ValueChange<>(this, oldValue, newValue)))
			return;

		this.password = new StringBuilder(newValue);
		this.updateText();
		this.cursor.jumpBy(text.length());
	}
1300358
def setButtonText(self, which, text):
        
        try:
            self._buttons[which].setText(text)
        except KeyError:
            pass
325483
private OnClickListener createDialogPreferenceClickListener() {
        return new OnClickListener() {

            @Override
            public void onClick(final DialogInterface dialog, final int which) {
                String button = getString(
                        which == DialogInterface.BUTTON_POSITIVE ? android.R.string.ok :
                                android.R.string.cancel);
                String text = String.format(getString(R.string.dialog_dismissed_toast), button);
                Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT).show();
            }

        };
    }
505728
public void openEditDialog(String siteRoot) {

        CmsEditSiteForm form;
        String caption;
        if (siteRoot != null) {
            form = new CmsEditSiteForm(m_rootCms, this, siteRoot);
            caption = CmsVaadinUtils.getMessageText(
                Messages.GUI_SITE_CONFIGURATION_EDIT_1,
                m_sitesTable.getContainer().getItem(siteRoot).getItemProperty(TableProperty.Title).getValue());
        } else {
            form = new CmsEditSiteForm(m_rootCms, this);
            caption = CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ADD_0);
        }
        openDialog(form, caption);
    }
745832
private WPanel createPanelWithText(final String title, final String text) {
		WPanel panel = new WPanel(WPanel.Type.CHROME);
		panel.setTitleText(title);
		WText textComponent = new WText(text);
		textComponent.setEncodeText(false);
		panel.add(textComponent);

		return panel;
	}