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

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

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

Span.setAttribute介绍

暂无

代码示例

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

public void showStageStatus(final String tooltipTitle, final String ... stylesClass) {
  name.setAttribute("data-original-title", tooltipTitle);
  status.setAttribute("data-original-title", tooltipTitle);
  for(String styleClass :stylesClass){
    addCSSClass(this.status, styleClass);
  }
}

代码示例来源:origin: kiegroup/jbpm-wb

public void showMilestoneStatus(final String tooltipTitle,
                  final String... stylesClass) {
    status.setAttribute("data-original-title",
              tooltipTitle);
    for (String styleClass : stylesClass) {
      addCSSClass(this.status,
            styleClass);
    }
  }
}

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

public void showMilestoneStatus(final String tooltipTitle,
                  final String... stylesClass) {
    status.setAttribute("data-original-title",
              tooltipTitle);
    for (String styleClass : stylesClass) {
      addCSSClass(this.status,
            styleClass);
    }
  }
}

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

public void showMilestoneStatus(final String statusText, final String tooltipTitle, final String... stylesClass) {
  status.setTextContent(statusText);
  status.setAttribute("data-original-title", tooltipTitle);
  for (String styleClass : stylesClass) {
    addCSSClass(this.status, styleClass);
  }
}

代码示例来源:origin: org.jbpm/jbpm-wb-human-tasks-client

private void setLogIcon(final TaskEventType type, final String logString) {
  tooltip(logIcon);
  logIcon.setAttribute("data-original-title", logString);
  logIcon.setClassName(getIconClass(type));
}

代码示例来源:origin: kiegroup/jbpm-wb

private void setLogIcon(final TaskEventType type, final String logString) {
  tooltip(logIcon);
  logIcon.setAttribute("data-original-title", logString);
  logIcon.setClassName(getIconClass(type));
}

代码示例来源:origin: kiegroup/appformer

@Override
public void init(ACLSettings presenter) {
  this.presenter = presenter;
  homePerspectiveLabel.setInnerText(UsersManagementWidgetsConstants.INSTANCE.homePerspective());
  homePerspectiveHelp.setAttribute("title",
                   UsersManagementWidgetsConstants.INSTANCE.homePerspectiveTooltip());
  priorityLabel.setInnerText(UsersManagementWidgetsConstants.INSTANCE.priority());
  priorityHelp.setAttribute("title",
               UsersManagementWidgetsConstants.INSTANCE.priorityTooltip());
}

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

@Override
public void init(ACLSettings presenter) {
  this.presenter = presenter;
  homePerspectiveLabel.setInnerText(UsersManagementWidgetsConstants.INSTANCE.homePerspective());
  homePerspectiveHelp.setAttribute("title",
                   UsersManagementWidgetsConstants.INSTANCE.homePerspectiveTooltip());
  priorityLabel.setInnerText(UsersManagementWidgetsConstants.INSTANCE.priority());
  priorityHelp.setAttribute("title",
               UsersManagementWidgetsConstants.INSTANCE.priorityTooltip());
}

代码示例来源:origin: kiegroup/jbpm-wb

protected void setLogTime(final Date modelLogTime) {
    tooltip(logTime);
    logTime.setAttribute("data-original-title", DateUtils.getDateTimeStr(modelLogTime));
    logTime.setTextContent(DateUtils.getPrettyTime(modelLogTime));
  }
}

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

private void setLogIcon(ProcessInstanceLogSummary model) {
  tooltip(logIcon);
  String iconClass = "list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm";
  if (isHumanTask(model) || (isStartNode(model) && !model.isCompleted())) {
    iconClass += " fa fa-user";
    logIcon.setAttribute("data-original-title", constants.Human_Task());
  } else {
    iconClass += " fa fa-cogs";
    logIcon.setAttribute("data-original-title", constants.System_Task());
  }
  if (model.isCompleted()) {
    iconClass += " kie-timeline-icon--completed";
  }
  logIcon.setClassName(iconClass);
}

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

@PostConstruct
public void init() {
  for (CaseRolesAssignmentFilterBy filterBy : CaseRolesAssignmentFilterBy.values()) {
    filterSelect.addOption(translationService.format(filterBy.getLabel()),
                filterBy.getLabel());
  }
  filterSelect.refresh();
  tooltip(rolesBadge);
  rolesBadge.setAttribute("data-original-title",
              translationService.format(TOTAL_NUMBER_OF_ROLES));
}

代码示例来源:origin: kiegroup/jbpm-wb

@PostConstruct
public void init() {
  for (CaseRolesAssignmentFilterBy filterBy : CaseRolesAssignmentFilterBy.values()) {
    filterSelect.addOption(translationService.format(filterBy.getLabel()),
                filterBy.getLabel());
  }
  filterSelect.refresh();
  tooltip(rolesBadge);
  rolesBadge.setAttribute("data-original-title",
              translationService.format(TOTAL_NUMBER_OF_ROLES));
}

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

@Test
public void testNotCompletedWorkItemNode() {
  ProcessInstanceLogSummary model = createModel("WorkItemNode", "workItemTask", false, 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");
  verify(logInfo).setTextContent("(System) node was ENTERED");
  verify(logTypeDesc).setTextContent("WorkItemNode 'workItemTask' ");
  verify(detailsPanelDiv).setHidden(false);
  verifySystemTaskDetails(model);
}

代码示例来源:origin: kiegroup/jbpm-wb

@Test
public void testClaimedTask() {
  TaskEventSummary model = new TaskEventSummary(
      3L,
      5L,
      "CLAIMED",
      "John",
      3L,
      createDate(2018, 1, 20, 5, 30),
      "John claimed this task"
  );
  view.setValue(model);
  verify(logSummary).setModel(model);
  verify(logTime).setAttribute("data-original-title", "20/01/2018 05:30");
  verify(logIcon).setAttribute("data-original-title", "Task claimed");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user");
  verify(logInfo).setTextContent("by user John");
  verify(logTypeDesc).setTextContent("Task claimed");
}

代码示例来源: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);
}

代码示例来源:origin: kiegroup/jbpm-wb

@Test
public void testCompletedTask() {
  TaskEventSummary model = new TaskEventSummary(
      1L,
      3L,
      "COMPLETED",
      "Andrew",
      3L,
      createDate(2018, 12, 11, 0, 15),
      "Andrew completed this task"
  );
  view.setValue(model);
  verify(logSummary).setModel(model);
  verify(logTime).setAttribute("data-original-title", "11/12/2018 00:15");
  verify(logIcon).setAttribute("data-original-title", "Task completed");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user kie-timeline-icon--completed");
  verify(logInfo).setTextContent("by user Andrew");
  verify(logTypeDesc).setTextContent("Task completed");
}

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

@Test
public void testCompletedHumanTask() {
  ProcessInstanceLogSummary model = createModel("HumanTaskNode", "userTask", true, true);
  view.setValue(model);
  verify(logIcon).setAttribute("data-original-title", "Human task");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user kie-timeline-icon--completed");
  verify(logInfo).setTextContent("(Human) node was COMPLETED");
  verify(logTypeDesc).setTextContent("Task 'userTask'");
  verify(detailsPanelDiv).setHidden(false);
  verifyHumanTaskDetails(model);
}

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

@Test
public void testNotCompletedHumanTask() {
  ProcessInstanceLogSummary model = createModel("HumanTaskNode", "userTask", false, true);
  view.setValue(model);
  verify(logIcon).setAttribute("data-original-title", "Human task");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user");
  verify(logInfo).setTextContent("(Human) node was ENTERED");
  verify(logTypeDesc).setTextContent("Task 'userTask'");
  verify(detailsPanelDiv).setHidden(false);
  verifyHumanTaskDetails(model);
}

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

@Test
public void testCompletedStartNode() {
  ProcessInstanceLogSummary model = createModel("StartNode", "startNode", true, false);
  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("StartNode 'startNode' ");
  verify(detailsPanelDiv).setHidden(true);
  verifyNoDetails(model);
}

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

@Test
public void testNotCompletedStartNode() {
  ProcessInstanceLogSummary model = createModel("StartNode", "startNode", false, false);
  view.setValue(model);
  verify(logIcon).setAttribute("data-original-title", "Human task");
  verify(logIcon).setClassName("list-view-pf-icon-sm kie-timeline-list-view-pf-icon-sm fa fa-user");
  verify(logInfo).setTextContent("(Human) node was ENTERED");
  verify(logTypeDesc).setTextContent("StartNode 'startNode' ");
  verify(detailsPanelDiv).setHidden(true);
  verifyNoDetails(model);
}

相关文章