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

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

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

Span.getStyle介绍

暂无

代码示例

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

@Override
public void setItemDeletable(boolean deletable) {
  if (deletable) {
    itemDeleteIcon.getStyle().removeProperty("display");
  } else {
    itemDeleteIcon.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setSelectionIconVisible(boolean visible) {
  iconVisible = visible;
  if (!iconVisible) {
    itemIcon.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setItemEditable(boolean editable) {
  if (editable) {
    itemEditIcon.getStyle().removeProperty("display");
  } else {
    itemEditIcon.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setItemEditable(boolean editable) {
  if (editable) {
    itemEditIcon.getStyle().removeProperty("display");
  } else {
    itemEditIcon.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setExceptionEnabled(boolean enabled) {
  if (enabled) {
    badge.getStyle().setProperty("display",
                   "table-cell");
  } else {
    badge.getStyle().setProperty("display",
                   "none");
  }
}

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

@Override
public void hideExceptionsCount() {
  badge.getStyle().setProperty("display",
                 "none");
}

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

@Override
  public ACLSettings.View setPrioritySelectorEnabled(boolean enabled) {
    prioritySelectorPanel.setVisible(enabled);
    if (enabled) {
      priorityValue.getStyle().setProperty("display",
                         "none");
    } else {
      priorityValue.getStyle().removeProperty("display");
    }
    return this;
  }
}

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

@Override
public ACLSettings.View setHomePerspectiveSelectorEnabled(boolean enabled) {
  homePerspectiveSelectorPanel.setVisible(enabled);
  if (enabled) {
    homePerspectiveName.getStyle().setProperty("display",
                          "none");
  } else {
    homePerspectiveName.getStyle().removeProperty("display");
  }
  return this;
}

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

@Override
public void showExceptionsCount(int n) {
  badge.getStyle().setProperty("display",
                 "table-cell");
  badge.setTextContent(Integer.toString(n));
}

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

public static void setSpanMessage(final Span span,
                 final String text) {
  span.getStyle().setProperty("visibility",
                "visible");
  span.setInnerHTML(text);
}

代码示例来源:origin: org.guvnor/guvnor-ala-openshift-ui-client

@Override
public void clearRuntimeNameHelpText() {
  runtimeNameHelp.getStyle().setProperty("display",
                      "none");
  runtimeNameHelp.setInnerHTML(EMPTY_STRING);
}

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

@Override
public void setContainerNameHelpText(final String containerNameHelpText) {
  containerNameHelp.getStyle().removeProperty("display");
  containerNameHelp.setInnerHTML(containerNameHelpText);
}

代码示例来源:origin: org.guvnor/guvnor-ala-openshift-ui-client

@Override
public void setRuntimeNameHelpText(final String runtimeNameHelpText) {
  runtimeNameHelp.getStyle().removeProperty("display");
  runtimeNameHelp.setInnerHTML(runtimeNameHelpText);
}

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

@Override
public void select() {
  item.setClassName("selector-dditem selected");
  if (iconVisible) {
    itemIcon.getStyle().removeProperty("display");
  }
}

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

@Override
public void reset() {
  item.setClassName("selector-dditem");
  itemIcon.getStyle().setProperty("display", "none");
}

代码示例来源:origin: org.guvnor/guvnor-ala-ui-client

@Override
public void setContainerNameHelpText(final String containerNameHelpText) {
  containerNameHelp.getStyle().removeProperty("display");
  containerNameHelp.setInnerHTML(containerNameHelpText);
}

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

@Override
public void select() {
  item.setClassName("selector-dditem selected");
  if (iconVisible) {
    itemIcon.getStyle().removeProperty("display");
  }
}

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

@Override
public void setNavGroupEnabled(boolean enabled) {
  if (enabled) {
    groupSelectorDiv.getStyle().removeProperty("display");
    navGroupSelectorHelp.getStyle().removeProperty("display");
  } else {
    groupSelectorDiv.getStyle().setProperty("display", "none");
    navGroupSelectorHelp.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setPerspectiveCreationVisible(boolean visible) {
  if (visible) {
    createSpan.getStyle().removeProperty("display");
    createPerspectiveAnchor.getStyle().removeProperty("display");
    createPerspectiveButton.getStyle().removeProperty("display");
  } else {
    createSpan.getStyle().setProperty("display", "none");
    createPerspectiveAnchor.getStyle().setProperty("display", "none");
    createPerspectiveButton.getStyle().setProperty("display", "none");
  }
}

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

@Override
public void setPerspectiveCreationVisible(boolean visible) {
  if (visible) {
    createSpan.getStyle().removeProperty("display");
    createPerspectiveAnchor.getStyle().removeProperty("display");
    createPerspectiveButton.getStyle().removeProperty("display");
  } else {
    createSpan.getStyle().setProperty("display", "none");
    createPerspectiveAnchor.getStyle().setProperty("display", "none");
    createPerspectiveButton.getStyle().setProperty("display", "none");
  }
}

相关文章