Set the icon to use on the edit button. If no icon is specified, then
just the label will be used otherwise the text will be a tooltip.

@param editIcon Icon to use on edit button
556907
public void setEditIcon(Icon editIcon, String text) {
        if (editIcon != null) {
            editButton.setIcon(editIcon);
            if (text != null) {
                editButton.setToolTipText(text);
            }
            editButton.setText("");
        } else {
            editButton.setIcon(null);
            if (text != null) {
                editButton.setText(text);
            }
        }
    }
877741
public static void styleEditable(@NonNull Context ctx,
                                     @Nullable HashMap<String, ITypeface> fonts,
                                     @NonNull Editable textSpanned,
                                     @Nullable List<CharacterStyle> styles,
                                     @Nullable HashMap<String, List<CharacterStyle>> stylesFor) {
        fonts = init(ctx, fonts);

        //find all icons which should be replaced with the iconFont
        List<StyleContainer> styleContainers = IconicsUtils.findIconsFromEditable(textSpanned, fonts);

        //set all the icons and styles
        IconicsUtils.applyStyles(ctx, textSpanned, styleContainers, styles, stylesFor);
    }
944012
public function setIcon($icon)
    {
        switch ($icon) {
            case 'info':
            case 'error':
            case 'warning':
                $this->icon = $icon;
                break;
            default:
                if (file_exists($icon) && is_file($icon)) {
                    $this->icon = $icon;
                } else {
                    if (isset($this->log)) {
                        $this->log(
                            sprintf(
                                "%s is not a file. Using default icon instead.",
                                $icon
                            ),
                            Project::MSG_WARN
                        );
                    }
                }
        }
    }
1172530
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
        } else {
            icon.set(IMAGE);
        }
    }
94395
def setHoverIcon(self, icon):
        
        icon = QIcon(icon)
        if not icon.isNull():
            self._hoverIcon = QIcon(icon)
        else:
            self._hoverIcon = None
561589
function (newIcon) {

            // check if initialization was successful
            if (!this._iconInfo) {
                return;
            }

            var iconInfo = this._getIconInfo(newIcon);
            // check
            if (iconInfo) {
                var domElt = this.getDom();
                domElt.style.cssText = this._getIconStyle(iconInfo);
                domElt.className = this._getIconClasses(iconInfo);
            }

            this._iconInfo = iconInfo;
        }
538762
public void setIconType(IconType type) {
        IconType prevType = iconType;
        iconType = type;
        if (iconType != prevType && iconElement != null) {
            iconElement.removeFromParent();
            iconElement = null;
            DomEvent.fireNativeEvent(Document.get().createChangeEvent(), this);
        }
    }
477715
public void setFrameIcon(Icon newIcon) {
        Icon oldIcon = getFrameIcon();
        titleLabel.setIcon(newIcon);
        firePropertyChange("frameIcon", oldIcon, newIcon);
    }
1349504
public void setIcon(final Image IMAGE) {
        if (null == icon) {
            _icon = IMAGE;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            icon.set(IMAGE);
        }
    }
722848
public void setIcon(Icon icon) {
        Icon old = null;
        if (iconInfo == CommandButtonIconInfo.BLANK_ICON_INFO) {
            if (icon != null) {
                // New IconInfo fires event
                setIconInfo(new CommandButtonIconInfo(icon));
            }
        }
        else {
            old = iconInfo.getIcon();
            this.iconInfo.setIcon(icon);
        }
        firePropertyChange(ICON_PROPERTY, old, icon);
    }
693663
public static boolean setIcon(MarkerOptions markerOptions, IconRow icon, float density) {
        return setIcon(markerOptions, icon, density, null);
    }
696987
public void setIconBrand(boolean _iconBrand) {
		if (_iconBrand) {
			AddResourcesListener.setFontAwesomeVersion(5, this);
		}
		getStateHelper().put(PropertyKeys.iconBrand, _iconBrand);
	}
667307
public void showLabel(boolean showLabel) {
        shouldShowLabel = showLabel;
        labeledLayout.setVisibility(showLabel ? VISIBLE : GONE);
        icon.setVisibility(!showLabel ? VISIBLE : GONE);
    }
1114804
public void setFile(File file) {
		if(file != null) {
			this.file = file;
			
			// Replace the label by the file's name.
			this.setLabel(file.getName());
			
			// Change the icon, depending if the file is a folder or not.
			this.updateIcon();
		}
	}
715761
public void setIcon(String iconClasses, String detailIconClasses) {

        m_iconPanel.setVisible(true);
        HTML iconWidget = new HTML();
        m_iconPanel.setWidget(iconWidget);
        iconWidget.setStyleName(iconClasses + " " + m_fixedIconClasses);
        // render the detail icon as an overlay above the main icon, if required
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(detailIconClasses)) {
            iconWidget.setHTML(
                "<span class=\""
                    + detailIconClasses
                    + " "
                    + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().pageDetailType()
                    + "\"></span>");
        }
    }
31762
public void setIcon(Object icon, int iIconType)
    {
        if (iIconType == CalendarConstants.END_ICON)
            m_iconEnd = icon;
        if (iIconType == CalendarConstants.END_ICON)
            m_iconStart = icon;
    }
586241
private  void initialize(ImageIcon icon) {
        this.setLayout(new CardLayout());
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        	this.setSize(474, 251);
        }
        this.setName(Constant.messages.getString(prefix + ".panel.title"));
		this.setIcon(icon);
        this.add(getPanelCommand(), prefix + ".panel");
        scanStatus = new ScanStatus(icon, Constant.messages.getString(prefix + ".panel.title"));
        
        if (View.isInitialised()) {
        	View.getSingleton().getMainFrame().getMainFooterPanel().addFooterToolbarRightLabel(scanStatus.getCountLabel());
        }
	}