Sets the text to display a MaterialIcon, replacing whatever text is already present.
Used to set the text to display a MaterialIcon Icon.

@param iconCode the fontawesome icon code e.g. "md_share"
485961
public void setMaterialIcon(@FontAwesome.Icon CharSequence iconCode) {
        setBootstrapText(new BootstrapText.Builder(getContext(), isInEditMode()).addMaterialIcon(iconCode).build());
    }
209285
private void encodeIcon(final FacesContext context, final SlideOut slideOut) throws IOException {
        if (slideOut.getIcon() == null) {
            return;
        }

        // fontawesome icons are OK but themeroller we need to add styles
        String icon = slideOut.getIcon().trim();
        if (icon.startsWith("ui")) {
            icon = "ui-icon " + icon + " ui-slideouttab-icon";
        }

        // <i class="ui-icon fa fa-television"></i>
        final ResponseWriter writer = context.getResponseWriter();
        writer.startElement("span", null);
        writer.writeAttribute("class", icon, null);
        writer.endElement("span");
        writer.write(" ");
    }
714693
public void setIcon(String icon) {

        m_icon = icon;
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_SET_ICON_1, icon));
        }
    }
804541
public boolean setIcon(MarkerOptions markerOptions, IconRow icon) {
        return StyleUtils.setIcon(markerOptions, icon, density, iconCache);
    }
645714
@com.fasterxml.jackson.annotation.JsonProperty("SourceLanguageCode")
    public void setSourceLanguageCode(String sourceLanguageCode) {
        this.sourceLanguageCode = sourceLanguageCode;
    }
973805
protected void setFont(Font newFont)
    {
        if (font == null || !font.equals(newFont))
        {
            font = new Font(newFont.getAttributes());
            invalidateCache();
            invalidateTextLayout();
        }
    }
740884
public ServerUpdater setIcon(InputStream icon, String fileType) {
        delegate.setIcon(icon, fileType);
        return this;
    }
623971
public void setIconTextFit(@Property.ICON_TEXT_FIT String value) {
    PropertyValue propertyValue = iconTextFit(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_TEXT_FIT, propertyValue);
    layer.setProperties(propertyValue);
  }
1211030
public void setIconTranslate( Float[] value) {
    PropertyValue propertyValue = iconTranslate(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_TRANSLATE, propertyValue);
    layer.setProperties(propertyValue);
  }
1084860
public void setFontAssetDelegate(
      @SuppressWarnings("NullableProblems") FontAssetDelegate assetDelegate) {
    this.fontAssetDelegate = assetDelegate;
    if (fontAssetManager != null) {
      fontAssetManager.setDelegate(assetDelegate);
    }
  }
1172530
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
        } else {
            icon.set(IMAGE);
        }
    }
1094887
public void setIcon(Drawable drawable){
        mIcon.setImageDrawable(drawable);
        mIcon.setVisibility(View.VISIBLE);
    }
997639
public void setLockIcon(LockIcon icon, String iconTitle) {

        if (m_lockIcon == null) {
            m_lockIcon = new HTML();
            m_lockIcon.addClickHandler(m_iconSuperClickHandler);
            m_contentPanel.add(m_lockIcon);
        }
        switch (icon) {
            case CLOSED:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockClosed());
                break;
            case OPEN:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockOpen());
                break;
            case SHARED_CLOSED:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockSharedClosed());
                break;
            case SHARED_OPEN:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockSharedOpen());
                break;
            case NONE:
            default:
                m_lockIcon.setStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon());
        }

        m_lockIcon.setTitle(concatIconTitles(m_iconTitle, iconTitle));
        m_lockIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
    }
400828
public void setIconIgnorePlacement( Boolean value) {
    PropertyValue propertyValue = iconIgnorePlacement(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_IGNORE_PLACEMENT, propertyValue);
    layer.setProperties(propertyValue);
  }
547089
public final void setIconAttribute(@AttrRes final int attributeId) {
        TypedArray typedArray =
                getContext().getTheme().obtainStyledAttributes(new int[]{attributeId});
        this.icon = typedArray.getDrawable(0);
        this.iconBitmap = null;
        this.iconId = -1;
        this.iconAttributeId = attributeId;
        adaptIcon();
    }
1323262
public void setIconTextFitPadding( Float[] value) {
    PropertyValue propertyValue = iconTextFitPadding(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_TEXT_FIT_PADDING, propertyValue);
    layer.setProperties(propertyValue);
  }
282897
public void setLargeIcon(Icon icon) {
        Icon old = null;
        if (largeIconInfo == CommandButtonIconInfo.BLANK_ICON_INFO) {
            if (icon != null) {
                // new IconInfo fires event
                setLargeIconInfo(new CommandButtonIconInfo(icon));
            }
        }
        else {
            old = largeIconInfo.getIcon();
            this.largeIconInfo.setIcon(icon);
        }
        firePropertyChange(LARGE_ICON_PROPERTY, old, icon);
    }