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

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

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

Icon.getElement介绍

暂无

代码示例

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

@Override
public void setupUrl(final String url) {
  this.url.setText(url);
  this.url.setHref(url);
  this.copyUrl.getElement().setPropertyString("data-clipboard-text", url);
  glueCopy(this.copyUrl.getElement());
}

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

private void render() {
  if (iconPosition == IconPosition.LEFT) {
    getElement().insertAfter(icon.getElement(), inputElem);
  } else {
    getElement().insertAfter(icon.getElement(), null);
  }
}

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

private void render() {
  if (iconPosition == IconPosition.LEFT) {
    getElement().insertAfter(icon.getElement(), inputElem);
  } else {
    getElement().insertAfter(icon.getElement(), null);
  }
}

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

private void render() {
  if (iconPosition == IconPosition.LEFT) {
    getElement().insertAfter(icon.getElement(), inputElem);
  } else {
    getElement().insertAfter(icon.getElement(), null);
  }
}

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

private void render() {
  if (iconPosition == IconPosition.LEFT) {
    getElement().insertAfter(icon.getElement(), inputElem);
  } else {
    getElement().insertAfter(icon.getElement(), null);
  }
}

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

private Icon generateRemoveIcon(final String value) {
  final Icon icon = new Icon(IconType.REMOVE);
  icon.addDomHandler(new ClickHandler() {
              @Override
              public void onClick(ClickEvent event) {
                tagsList.remove(value);
                generateTags();
              }
            },
            ClickEvent.getType());
  icon.getElement().getStyle().setColor("rgb(153, 153, 153)");
  icon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
  return icon;
}

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

private Icon generateRemoveIcon(final String value) {
  final Icon icon = new Icon(IconType.REMOVE);
  icon.addDomHandler(new ClickHandler() {
              @Override
              public void onClick(ClickEvent event) {
                tagsList.remove(value);
                generateTags();
              }
            },
            ClickEvent.getType());
  icon.getElement().getStyle().setColor("rgb(153, 153, 153)");
  icon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
  return icon;
}

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

@Override
protected void render(Context context,
           SafeHtml data,
           SafeHtmlBuilder sb) {
  Icon icon = GWT.create(Icon.class);
  if (tooltip != null) {
    icon.setTitle(tooltip);
  }
  icon.setSize(iconSize);
  icon.setType(iconType);
  sb.appendHtmlConstant(icon.getElement().getString());
}

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

@Override
protected void render(Context context,
           SafeHtml data,
           SafeHtmlBuilder sb) {
  Icon icon = GWT.create(Icon.class);
  if (tooltip != null) {
    icon.setTitle(tooltip);
  }
  icon.setSize(iconSize);
  icon.setType(iconType);
  sb.appendHtmlConstant(icon.getElement().getString());
}

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

private String createIconHtml(IconType iconType) {
  // Fix incorrect handle width when using icons
  setHandleWidth("30");
  final Icon icon = new Icon(iconType);
  icon.setSize(IconSize.LARGE);
  return icon.getElement().getString();
}

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

private String createIconHtml(IconType iconType) {
  // Fix incorrect handle width when using icons
  setHandleWidth("30");
  final Icon icon = new Icon(iconType);
  icon.setSize(IconSize.LARGE);
  return icon.getElement().getString();
}

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

leftPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
leftPageIcon.sinkEvents(Event.ONCLICK);
leftPageIcon.addHandler(createGotoPageHandler(currentPage - 1), ClickEvent.getType());
rightPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
rightPageIcon.sinkEvents(Event.ONCLICK);
rightPageIcon.addHandler(createGotoPageHandler(currentPage + 1), ClickEvent.getType());
firstPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
firstPageIcon.sinkEvents(Event.ONCLICK);
firstPageIcon.addHandler(createGotoPageHandler(1), ClickEvent.getType());
lastPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
lastPageIcon.sinkEvents(Event.ONCLICK);
lastPageIcon.addHandler(createGotoPageHandler(totalPages), ClickEvent.getType());

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

leftPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
leftPageIcon.sinkEvents(Event.ONCLICK);
leftPageIcon.addHandler(createGotoPageHandler(currentPage - 1), ClickEvent.getType());
rightPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
rightPageIcon.sinkEvents(Event.ONCLICK);
rightPageIcon.addHandler(createGotoPageHandler(currentPage + 1), ClickEvent.getType());
firstPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
firstPageIcon.sinkEvents(Event.ONCLICK);
firstPageIcon.addHandler(createGotoPageHandler(1), ClickEvent.getType());
lastPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
lastPageIcon.sinkEvents(Event.ONCLICK);
lastPageIcon.addHandler(createGotoPageHandler(totalPages), ClickEvent.getType());

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

final Icon lock = new Icon( IconType.LOCK );
if ( lockOwned ) {
  lock.getElement().getStyle().setColor( "#0083d0" );

相关文章