/** * Creates a label with the specified text. * * @param text the new label's text * @param wordWrap <code>false</code> to disable word wrapping */ public Label(String text, boolean wordWrap) { this(text); setWordWrap(wordWrap); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(@IsSafeHtml String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }
/** * Creates a label with the specified text. * * @param text the new label's text * @param wordWrap <code>false</code> to disable word wrapping */ public Label(String text, boolean wordWrap) { this(text); setWordWrap(wordWrap); }
/** * Creates a label with the specified text. * * @param text the new label's text * @param wordWrap <code>false</code> to disable word wrapping */ public Label(String text, boolean wordWrap) { this(text); setWordWrap(wordWrap); }
@Override public void getAdditionalProposalInfo(AsyncCallback<Widget> callback) { String documentation = macro.getDescription(); if (documentation == null || documentation.trim().isEmpty()) { documentation = "No documentation found."; } Label label = new Label(documentation); label.setWordWrap(true); label.getElement().getStyle().setFontSize(13, Style.Unit.PX); label.getElement().getStyle().setMarginLeft(4, Style.Unit.PX); label.setSize("100%", "100%"); callback.onSuccess(label); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }
/** * Inserts a new tab at the specified index. * * @param text the new tab's text * @param asHTML <code>true</code> to treat the specified text as HTML * @param beforeIndex the index before which this tab will be inserted */ public void insertTab(String text, boolean asHTML, int beforeIndex) { checkInsertBeforeTabIndex(beforeIndex); Label item; if (asHTML) { item = new HTML(text); } else { item = new Label(text); } item.setWordWrap(false); insertTabWidget(item, beforeIndex); }
public void show() { clear(); stackPanel.setHTML(new SafeHtmlBuilder().appendEscapedLines(stack).toSafeHtml()); messageLabel.setText(message); messageLabel.setWordWrap(true); exceptionDialog.setPopupPositionAndShow(new PositionCallback() { @Override public void setPosition(int offsetWidth, int offsetHeight) { exceptionDialog.center(); } }); exceptionDialog.center(); }
/** * @param formHeaderText * the header text this form layout shall have */ public FormLayout(String formHeaderText) { this.form = new DynamicForm(); this.form.setUseAllDataSourceFields(true); this.headerItem = new HeaderItem(); this.headerItem.setName("n52_sensorweb_client_headerItem"); this.headerItem.setDefaultValue(formHeaderText); this.spacer = new LayoutSpacer(); this.spacer.setHeight(20); // this.loggedInAsLayout = new HLayout(); // this.loggedInAsLayout.setWidth100(); // this.loggedInAsLayout.setAlign(Alignment.RIGHT); // this.loggedInAsLayout.setHeight(20); this.userNameLabel = new Label(""); this.userNameLabel.setWordWrap(false); // this.loggedInAsLayout.addMember(this.userNameLabel); // addMember(this.loggedInAsLayout); }
bodyText.setWordWrap(true); container.add(bodyText);
bodyText.setWordWrap(true); container.add(bodyText);
bodyText.setWordWrap(true); container.add(bodyText);
bodyText.setWordWrap(true); container.add(bodyText);
territoryLabel.setWordWrap(false);