org.gwtbootstrap3.client.ui.Icon类的使用及代码示例

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

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

Icon介绍

[英]Simple put, an icon.
[中]简单地说,一个图标。

代码示例

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

@Override
  public IsWidget getIcon() {
    return new Icon(IconType.PENCIL);
  }
}

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

@Override
  public void onShow(ShowEvent showEvent) {
    caret.setType(IconType.CARET_UP);
  }
});

代码示例来源: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: org.dashbuilder/dashbuilder-widgets

@Override
public DataSetSummary.View showSizePanelIcon(final IconType type, final String title, final String color, final boolean spin) {
  statusIcon.setType(type);
  statusIcon.setTitle(title != null ? title : "");
  statusIcon.setColor(color != null ? color  : "black");
  statusIcon.setSpin(spin);
  statusIcon.setVisible(true);
  return this;
}

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

public void setIcon(final IconType type) {
  if (icon == null) {
    icon = new Icon(type);
    wrapper.add(icon);
  } else {
    icon.setType(type);
  }
}

代码示例来源: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: gwtbootstrap3/gwtbootstrap3

icon.removeFromParent();
icon = null;
icon = new Icon();
icon.setType(iconType);
icon.setSize(iconSize);
icon.setFlip(iconFlip);
icon.setRotate(iconRotate);
icon.setSpin(iconSpin);
icon.setPulse(iconPulse);
icon.setBorder(iconBordered);
icon.setFixedWidth(iconFixedWidth);
icon.setInverse(iconInverse);
icon.setColor(iconColor);

代码示例来源: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: org.dashbuilder/dashbuilder-renderer-google

Icon leftPageIcon = new Icon(IconType.ANGLE_LEFT);
leftPageIcon.setSize(IconSize.LARGE );
leftPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
leftPageIcon.sinkEvents(Event.ONCLICK);
leftPageIcon.addHandler(createGotoPageHandler(currentPage - 1), ClickEvent.getType());
Tooltip leftPageTooltip = new Tooltip(GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_gotoPreviousPage());
leftPageTooltip.add(leftPageIcon);
Icon rightPageIcon = new Icon(IconType.ANGLE_RIGHT);
rightPageIcon.setSize(IconSize.LARGE);
rightPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
rightPageIcon.sinkEvents(Event.ONCLICK);
rightPageIcon.addHandler(createGotoPageHandler(currentPage + 1), ClickEvent.getType());
Tooltip rightPageTooltip = new Tooltip( GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_gotoNextPage() );
rightPageTooltip.add(rightPageIcon);
Icon firstPageIcon = new Icon(IconType.ANGLE_DOUBLE_LEFT);
firstPageIcon.setSize(IconSize.LARGE);
firstPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
firstPageIcon.sinkEvents(Event.ONCLICK);
firstPageIcon.addHandler(createGotoPageHandler(1), ClickEvent.getType());
Tooltip firstPageTooltip = new Tooltip(GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_gotoFirstPage());
firstPageTooltip.add(firstPageIcon);
Icon lastPageIcon = new Icon(IconType.ANGLE_DOUBLE_RIGHT);
lastPageIcon.setSize(IconSize.LARGE);
lastPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
lastPageIcon.sinkEvents(Event.ONCLICK);
lastPageIcon.addHandler(createGotoPageHandler(totalPages), ClickEvent.getType());

代码示例来源: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: org.uberfire/uberfire-workbench-client-views-patternfly

ClickEvent.getType());
final Icon icon = new Icon(IconType.TIMES);
icon.addDomHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
icon.addStyleName(Styles.PULL_RIGHT);
final Anchor anchor = new Anchor();
anchor.add(icon);

代码示例来源: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.kie.workbench.screens/kie-wb-common-project-explorer-client

final Icon icon = new Icon( iconType );
icon.addStyleName( style );
navigator.setWidget( row, col, icon );
  final Icon lock = new Icon( IconType.LOCK );
  if ( lockOwned ) {
    lock.getElement().getStyle().setColor( "#0083d0" );
  final Icon copyContainer = new Icon( IconType.COPY );
  copyContainer.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {
  final Icon archiveContainer = new Icon( IconType.ARCHIVE );
  archiveContainer.addClickHandler( new ClickHandler() {
    @Override
    public void onClick( ClickEvent event ) {

代码示例来源: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 createIcon(TYPE type,
            String tooltip) {
  icon.setTitle(tooltip);
  icon.setType(type.icon());
}

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

private Icon getActualIcon() {
  if (icon == null) {
    icon = new Icon();
    render();
  }
  return icon;
}

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

@Override
public EntityWorkflowView showNotification(final String text) {
  Icon icon = new Icon(IconType.WARNING);
  icon.setStyleName("pficon pficon-warning-triangle-o");
  notification.clear();
  notification.add(icon);
  notification.add(new Span(text));
  notification.setVisible(true);
  return this;
}

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

private Widget ban( final Icon icon ) {
    icon.setStackTop( true );
    final Icon ban = new Icon( IconType.BAN );
    final IconStack iconStack = new IconStack();
    iconStack.add( icon, false );
    iconStack.add( ban, true );
    return iconStack;
  }
}

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

@Override
public void init(DataSetLookupEditor presenter) {
  this.presenter = presenter;
  this.filterEditor = presenter.getFilterEditor();
  this.groupDateEditor = presenter.getGroupDateEditor();
  initWidget(uiBinder.createAndBindUi(this));
  groupDetailsIcon.setType(IconType.ARROW_DOWN);
  groupDetailsIcon.addDomHandler(this::expandCollapseGroupDetails, ClickEvent.getType());
}

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

@Override
public void setIcon(IconType iconType) {
  getActualIcon().setType(iconType);
}

相关文章