com.google.gwt.user.client.ui.Label.setWordWrap()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中com.google.gwt.user.client.ui.Label.setWordWrap()方法的一些代码示例,展示了Label.setWordWrap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setWordWrap()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:setWordWrap

Label.setWordWrap介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * 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);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * 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);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * 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);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * 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);
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@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);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * 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);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * 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);
}

代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl

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();
}

代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui

/**
   * @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);
  }

代码示例来源:origin: org.jvnet.hudson.main/hudson-gwt-common

bodyText.setWordWrap(true);
container.add(bodyText);

代码示例来源:origin: org.eclipse.hudson.main/hudson-gwt-common

bodyText.setWordWrap(true);
container.add(bodyText);

代码示例来源:origin: org.jvnet.hudson.main/hudson-gwt-common

bodyText.setWordWrap(true);
container.add(bodyText);

代码示例来源:origin: org.eclipse.hudson.main/hudson-gwt-common

bodyText.setWordWrap(true);
container.add(bodyText);

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt

territoryLabel.setWordWrap(false);

相关文章