Add this icon to the list of icons alternating for this label.
@param icon The icon to add.
@param iIndex The index for this icon.
359306
public void addIcon(Object icon, int iIndex)
    {
        if (m_rgIcons == null)
        {
            m_rgIcons = new ImageIcon[MAX_ICONS];
            m_timer = new javax.swing.Timer(500, this);         // Remind me to change graphics every 1/2 second
            m_timer.start();
        }
        if (iIndex < MAX_ICONS)
        	if (icon instanceof ImageIcon)		// Always
        		m_rgIcons[iIndex] = (ImageIcon)icon;
    }
660324
public void removeIcon(int iIndex)
    {
        if (m_rgIcons != null)
        {
            m_rgIcons[iIndex] = null; // Always at location 0
            for (int i = 0; i < MAX_ICONS; i++)
            {
                if (m_rgIcons[i] != null)
                    return;
            }
            this.removeTimer();   // No icons left
            m_rgIcons = null;
        }
    }
1229201
public void setIcon(Icon icon) {

        if (icon == null) {
            m_iconContainer.clear();
            this.m_icon = null;
        } else {
            m_iconContainer.getElement().appendChild(icon.getElement());
            this.m_icon = icon;
        }
    }
997878
@Override
    public void addWordToIndex(int index, String label) {
        if (index >= 0) {
            T token = tokenFor(label);
            if (token != null) {
                idxMap.put(index, token);
                token.setIndex(index);
            }
        }
    }
190494
public void setIcon(String src) {
        setImage(src);
        if (imageElem != null) {
            imageElem.removeClassName("jqm4gwt-listitem-thumb");
            imageElem.addClassName("jqm4gwt-listitem-icon");
        }
    }
485961
public void setMaterialIcon(@FontAwesome.Icon CharSequence iconCode) {
        setBootstrapText(new BootstrapText.Builder(getContext(), isInEditMode()).addMaterialIcon(iconCode).build());
    }
1094975
def setIconOverlay(self, column, icon):
        
        self._iconOverlays[column] = QtGui.QIcon(icon)
1048794
public void init(Object obj)
    {
        for (int i = 0; i < MAX_ICONS; i++)
        {
            ImageIcon icon = this.getImageIcon(i);
            if (icon == null)
                break;
            this.addIcon(icon, i);
        }
    }
206848
@NonNull
    public IconicsDrawable icon(@NonNull IIcon icon) {
        mIcon = icon;
        mPlainIcon = null;
        ITypeface typeface = icon.getTypeface();
        mIconBrush.getPaint().setTypeface(typeface.getTypeface(mContext));

        invalidateSelf();
        return this;
    }
395911
public final void setDialogHeaderIcon(@Nullable final Bitmap icon) {
        this.dialogHeaderIcon = new BitmapDrawable(getContext().getResources(), icon);
        this.dialogHeaderIconBitmap = icon;
        this.dialogHeaderIconId = -1;
    }
1257243
private void adaptIcon() {
        if (iconImageView != null) {
            ImageViewCompat.setImageTintList(iconImageView, iconTintList);
            ImageViewCompat.setImageTintMode(iconImageView, iconTintMode);
            iconImageView.setImageDrawable(icon);
            iconImageView.setVisibility(icon != null ? View.VISIBLE : View.GONE);
        }

        adaptTitleContainerVisibility();
    }
1349504
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            icon.set(IMAGE);
        }
    }
715358
public final void updateIcon(final IconType type) {
        if (type != null) updateIcon(Styles.FONT_AWESOME_BASE + " " + type.getCssName());
    }
1367838
public void addIconRule(String extension, String icon, String bigIcon, String smallIconStyle, String bigIconStyle) {

        CmsIconRule rule = new CmsIconRule(extension, icon, bigIcon, smallIconStyle, bigIconStyle);
        m_iconRules.put(extension, rule);
    }
814056
public static void applyMultiIconTo(Drawable icon, int iconColor, Drawable selectedIcon, int selectedIconColor, boolean tinted, ImageView imageView) {
        //if we have an icon then we want to set it
        if (icon != null) {
            //if we got a different color for the selectedIcon we need a StateList
            if (selectedIcon != null) {
                if (tinted) {
                    imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, selectedIcon, iconColor, selectedIconColor));
                } else {
                    imageView.setImageDrawable(UIUtils.getIconStateList(icon, selectedIcon));
                }
            } else if (tinted) {
                imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, iconColor, selectedIconColor));
            } else {
                imageView.setImageDrawable(icon);
            }
            //make sure we display the icon
            imageView.setVisibility(View.VISIBLE);
        } else {
            //hide the icon
            imageView.setVisibility(View.GONE);
        }
    }
1011077
public function addIcon($i)
    {
        /** @type Icon $icon */
        $icon = $this->add('Icon', null, 'Icon');

        return $icon->set($i)->addClass('atk-size-mega');
    }
223181
@Override
	public void setIconForMenu(IconLocationType iconForMenu)
	{
		if (null != iconForMenu)
		{
			myUserInterfaceAction.setIconForMenu(iconForMenu);
			ImageIcon _icon = retrieveIcon(getIconForMenu());
			putValue(Action.SMALL_ICON, _icon);
		}
	}