org.jboss.errai.common.client.dom.Span.setTextContent()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(113)

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

Span.setTextContent介绍

暂无

代码示例

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-home-client

@Override
  public void setText(final String text) {
    this.text.setTextContent(text);
  }
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
  public void setRuleModelerDescription(String description) {
    descriptionHeading.setTextContent(description);
  }
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client

@Override
public void showError(final String errorMessage) {
  this.errorMessage.setTextContent(errorMessage);
  this.error.setHidden(false);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

@Override
public void setConditionError(String error) {
  DOMUtil.addCSSClass(conditionSelectorForm, "has-error");
  conditionSelectorError.setTextContent(error);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client

@Override
public void setDefaultItemSelection(String name, Command onReset) {
  defaultItemSelection.setTextContent(name);
  addItem(defaultItems, name, true, onReset);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client

@Override
public void setItemName(String name) {
  itemName.setTextContent(name);
  itemNameInput.setValue(name);
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
public void showError(String message) {
  errorMessage.setTextContent(message);
  error.setHidden(false);
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

@Override
public void showWarning(String message) {
  warningMessage.setTextContent(message);
  warning.setHidden(false);
}

代码示例来源:origin: org.jbpm/jbpm-wb-process-runtime-client

@Override
public void setValue(List<NodeInstanceSummary> nodes) {
  nodeList.setModel(nodes);
  nodeInstancesCounter.setTextContent(String.valueOf(nodes.size()));
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui

@Override
public void setProductName(final String productName) {
  this.productImage.setAlt(productName);
  this.trademarkProductName.setTextContent(productName);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default

@Override
public void clearItems() {
  DOMUtil.removeAllChildren(labelSetDiv);
  noDataSpan.setTextContent("");
}

代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client

@Override
public void setNavGroupSelection(String name, Command onReset) {
  navGroupSelection.setTextContent(name);
  navGroupSelection.setTitle(name);
  addItem(navGroupItems, name, true, onReset);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client

@Override
public void clearTargetDivItems() {
  DOMUtil.removeAllChildren(targetDivItems);
  targetDivSelection.setTextContent(NavigationConstants.INSTANCE.targetDivSelectorHint());
}

代码示例来源:origin: org.jbpm/jbpm-wb-executor-service-client

@Override
public void showEmptyNameErrorMessage() {
  jobNameGroup.setValidationState(ValidationState.ERROR);
  jobNameHelp.setTextContent(Constants.INSTANCE.The_Job_Must_Have_A_BusinessKey());
}

代码示例来源:origin: org.uberfire/uberfire-layout-editor-client

@Override
public void init(LayoutEditorPropertiesPresenter presenter) {
  this.presenter = presenter;
  selectorLabel.setTextContent(PropertiesConstants.INSTANCE.elementLabel());
  propertiesLabel.setTextContent(PropertiesConstants.INSTANCE.propertiesLabel());
  clearAllAnchor.setTextContent(PropertiesConstants.INSTANCE.clearAll());
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-case-mgmt-client

private boolean validateForm() {
  clearErrorMessages();
  final boolean newCommentEmpty = isNullOrEmpty(newCommentTextArea.getValue());
  if (newCommentEmpty) {
    newCommentTextArea.focus();
    newCommentTextAreaHelp.setTextContent(translationService.format(CASE_COMMENT_CANT_BE_EMPTY));
    newCommentTextAreaGroup.setValidationState(ValidationState.ERROR);
    return false;
  }
  return true;
}

代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client

private boolean validateForm() {
  clearErrorMessages();
  final boolean newCommentEmpty = isNullOrEmpty(newCommentTextArea.getValue());
  if (newCommentEmpty) {
    newCommentTextArea.focus();
    newCommentTextAreaHelp.setTextContent(translationService.format(CASE_COMMENT_CANT_BE_EMPTY));
    newCommentTextAreaGroup.setValidationState(ValidationState.ERROR);
    return false;
  }
  return true;
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

@Override
public void searchInProgress(String msg) {
  spinnerText.setTextContent(msg);
  spinnerPanel.getStyle().removeProperty("display");
  dropDownMenu.getStyle().setProperty("display",
                    "none");
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

@Test
public void testMessage() {
  final String msg = "message";
  notification.setMessage(msg);
  verify(message).setTextContent(msg);
}

代码示例来源:origin: org.jbpm/jbpm-wb-process-runtime-client

@Test
public void testCompletedWorkItemNode() {
  ProcessInstanceLogSummary model = createModel("WorkItemNode", "workItemTask", true, true);
  view.setValue(model);
  verify(logIcon).setAttribute("data-original-title", "System task");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-cogs kie-timeline-icon--completed");
  verify(logInfo).setTextContent("(System) node was COMPLETED");
  verify(logTypeDesc).setTextContent("WorkItemNode 'workItemTask' ");
  verify(detailsPanelDiv).setHidden(false);
  verifySystemTaskDetails(model);
}

相关文章