org.gwtbootstrap3.client.ui.Icon.addStyleName()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(213)

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

Icon.addStyleName介绍

暂无

代码示例

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

public Icon() {
  setElement(Document.get().createElement(ElementTags.I));
  addStyleName(Styles.FONT_AWESOME_BASE);
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

public Icon() {
  setElement(Document.get().createElement(ElementTags.I));
  addStyleName(Styles.FONT_AWESOME_BASE);
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

public void setPrev(final boolean prev) {
  getElement().removeAttribute(Attributes.DATA_SLIDE);
  getElement().setAttribute(Attributes.DATA_SLIDE, Carousel.PREV);
  StyleHelper.toggleStyleName(this, prev, Styles.LEFT);
  icon.addStyleName(Styles.ICON_PREV);
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3

public void setNext(final boolean next) {
  getElement().removeAttribute(Attributes.DATA_SLIDE);
  getElement().setAttribute(Attributes.DATA_SLIDE, Carousel.NEXT);
  StyleHelper.toggleStyleName(this, next, Styles.RIGHT);
  icon.addStyleName(Styles.ICON_NEXT);
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

public void setPrev(final boolean prev) {
  getElement().removeAttribute(Attributes.DATA_SLIDE);
  getElement().setAttribute(Attributes.DATA_SLIDE, Carousel.PREV);
  StyleHelper.toggleStyleName(this, prev, Styles.LEFT);
  icon.addStyleName(Styles.ICON_PREV);
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3

public void setNext(final boolean next) {
  getElement().removeAttribute(Attributes.DATA_SLIDE);
  getElement().setAttribute(Attributes.DATA_SLIDE, Carousel.NEXT);
  StyleHelper.toggleStyleName(this, next, Styles.RIGHT);
  icon.addStyleName(Styles.ICON_NEXT);
}

代码示例来源:origin: oVirt/ovirt-engine

@Override
  public void render(Context context, T value, SafeHtmlBuilder sb, String id) {

    Icon icon = new Icon();
    icon.setId(id);
    StyleHelper.addEnumStyleName(icon, iconType);
    icon.addStyleName(isEnabled(value) ? "icon-enabled" : "icon-disabled"); //$NON-NLS-1$ //$NON-NLS-2$

    sb.append(SafeHtmlUtils.fromSafeConstant(icon.toString()));
  }
}

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

private void configure() {
  setPlacement(Placement.RIGHT);
  setTrigger(Trigger.HOVER);
  final Icon icon = new Icon(IconType.QUESTION);
  icon.addStyleName("help-inline");
  setWidget(icon);
  configurePopoverContainer(getWidget().getElement());
  getWidget().getElement().getStyle().setZIndex(Integer.MAX_VALUE);
}

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

private void configure() {
  setPlacement(Placement.RIGHT);
  setTrigger(Trigger.HOVER);
  final Icon icon = new Icon(IconType.QUESTION);
  icon.addStyleName("help-inline");
  setWidget(icon);
  configurePopoverContainer(getWidget().getElement());
  getWidget().getElement().getStyle().setZIndex(Integer.MAX_VALUE);
}

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

private void createDeleteIcon(final ParameterizedCommand<String> deleteCommand,
               final String dirURI) {
  deleteIcon = new Icon(IconType.REMOVE);
  deleteIcon.setTitle(CommonConstants.INSTANCE.DeleteDir());
  deleteIcon.addStyleName(APP_CSS.CSS().deleteIcon());
  deleteIcon.addStyleName("fa");
  deleteIcon.addDomHandler(new ClickHandler() {
                 @Override
                 public void onClick(ClickEvent event) {
                   if (Window.confirm(CommonConstants.INSTANCE.DeleteAppPrompt())) {
                     deleteCommand.execute(dirURI);
                   }
                 }
               },
               ClickEvent.getType());
  outerPanel.addDomHandler(new MouseOverHandler() {
                 @Override
                 public void onMouseOver(MouseOverEvent event) {
                   deletePanel.add(deleteIcon);
                 }
               },
               MouseOverEvent.getType());
  outerPanel.addDomHandler(new MouseOutHandler() {
                 @Override
                 public void onMouseOut(MouseOutEvent event) {
                   deletePanel.remove(deleteIcon);
                 }
               },
               MouseOutEvent.getType());
}

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

private void createDeleteIcon(final ParameterizedCommand<String> deleteCommand,
               final String dirURI) {
  deleteIcon = new Icon(IconType.REMOVE);
  deleteIcon.setTitle(CommonConstants.INSTANCE.DeleteDir());
  deleteIcon.addStyleName(APP_CSS.CSS().deleteIcon());
  deleteIcon.addStyleName("fa");
  deleteIcon.addDomHandler(new ClickHandler() {
                 @Override
                 public void onClick(ClickEvent event) {
                   if (Window.confirm(CommonConstants.INSTANCE.DeleteAppPrompt())) {
                     deleteCommand.execute(dirURI);
                   }
                 }
               },
               ClickEvent.getType());
  outerPanel.addDomHandler(new MouseOverHandler() {
                 @Override
                 public void onMouseOver(MouseOverEvent event) {
                   deletePanel.add(deleteIcon);
                 }
               },
               MouseOverEvent.getType());
  outerPanel.addDomHandler(new MouseOutHandler() {
                 @Override
                 public void onMouseOut(MouseOutEvent event) {
                   deletePanel.remove(deleteIcon);
                 }
               },
               MouseOutEvent.getType());
}

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

icon.addStyleName(Styles.PULL_RIGHT);
final Anchor anchor = new Anchor();
anchor.add(icon);

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

icon.addStyleName(Styles.PULL_RIGHT);
final Anchor anchor = new Anchor();
anchor.add(icon);

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

icon.addStyleName( style );
navigator.setWidget( row, col, icon );

相关文章