本文整理了Java中org.jboss.errai.common.client.dom.Span.setClassName()
方法的一些代码示例,展示了Span.setClassName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Span.setClassName()
方法的具体详情如下:
包路径:org.jboss.errai.common.client.dom.Span
类名称:Span
方法名:setClassName
暂无
代码示例来源:origin: kiegroup/appformer
@Override
public void setExpanded(boolean expanded) {
itemIcon.setClassName(expanded ? "fa fa-angle-down" : "fa fa-angle-right");
childrenDiv.setHidden(!expanded);
}
代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client
@Override
public void setExpanded(boolean expanded) {
itemIcon.setClassName(expanded ? "fa fa-angle-down" : "fa fa-angle-right");
childrenDiv.setHidden(!expanded);
}
代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client
@Override
public void setExpanded(boolean expanded) {
itemIcon.setClassName(expanded ? "fa fa-angle-down" : "fa fa-angle-right");
childrenDiv.setHidden(!expanded);
}
代码示例来源:origin: dashbuilder/dashbuilder
@Override
public void setExpanded(boolean expanded) {
itemIcon.setClassName(expanded ? "fa fa-angle-down" : "fa fa-angle-right");
childrenDiv.setHidden(!expanded);
}
代码示例来源:origin: org.uberfire/uberfire-widgets-security-management
@Override
public void setNodeFullName(String name) {
nodeAnchor.setTitle(name);
nodeAnchorHelp.setTitle(name);
nodeAnchorHelp.setClassName("acl-node-help-panel");
}
代码示例来源:origin: kiegroup/appformer
@Override
public void setNodeFullName(String name) {
nodeAnchor.setTitle(name);
nodeAnchorHelp.setTitle(name);
nodeAnchorHelp.setClassName("acl-node-help-panel");
}
代码示例来源:origin: org.uberfire/uberfire-widgets-security-management
@Override
public void setNodeFullName(String name) {
nodeName.setTitle(name);
nodeNameHelp.setTitle(name);
nodeNameHelp.setClassName("acl-help-panel");
}
代码示例来源:origin: kiegroup/appformer
@Override
public void setNodeFullName(String name) {
nodeName.setTitle(name);
nodeNameHelp.setTitle(name);
nodeNameHelp.setClassName("acl-help-panel");
}
代码示例来源:origin: dashbuilder/dashbuilder
@Override
public void setLevel(AlertBox.Level level) {
String _alertClass = ALERT_CLASS[level.ordinal()];
String _alertIcon = ALERT_ICON[level.ordinal()];
alertDiv.setClassName("alert " + _alertClass);
alertIcon.setClassName("pficon " + _alertIcon);
}
代码示例来源: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: org.dashbuilder/dashbuilder-common-client
@Override
public void setLevel(AlertBox.Level level) {
String _alertClass = ALERT_CLASS[level.ordinal()];
String _alertIcon = ALERT_ICON[level.ordinal()];
alertDiv.setClassName("alert " + _alertClass);
alertIcon.setClassName("pficon " + _alertIcon);
}
代码示例来源: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: 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: 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);
}
代码示例来源: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 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
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);
}
内容来源于网络,如有侵权,请联系作者删除!