Handle the icon

@param  Infoset $info
@param  Tag     $tabElement
184077
protected function handleIcon(Infoset $info, Tag $tabElement) {
		switch ($info->getIconType()) {
			case Infoset::ICON_ASSET:
				$icon = Icons::getIcon($info->getIconSource());
				$tabElement->addClass('hasicon');
				$tabElement->addStyle('background-image', "url($icon)");
				return;
			
			case Infoset::ICON_BASE64:
				$icon = $info->getIconSource();
				$tabElement->addClass('hasicon');
				$tabElement->addStyle('background-image', "url($icon)");
				return;
		}
	}
692864
function (element, options) {
      this.$element = $(element);
      this.options  = $.extend({}, Iconpicker.DEFAULTS, this.$element.data());
      this.options  = $.extend({}, this.options, options);
    }
1107286
protected function apcInfo(Infoset $infoset, array $apcInfo) {
		$info = $this->createTable()
			->setColsWidths([50, 50])
			->setTitle('APC Info')
			->enableBbCodes();
		
		$infoset[] = $info;
		
		$info[] = ['Memory:', '[info]' . $this->formatMemory($apcInfo['mem_size']) . '[/info]'];

		if (isset($apcInfo['num_entries'])) {
			$info[] = ['Cache entries: ', '[success]' . $apcInfo['num_entries'] . '[/success]'];
		}
		else if (isset($apcInfo['nentries'])) {
			$info[] = ['Cache entries: ', '[success]' . $apcInfo['nentries'] . '[/success]'];
		}

		if (isset($apcInfo['num_hits'])) {
			$info[] = ['Cache hits: ', '[success]' . $apcInfo['num_hits'] . '[/success]'];
		}
		else if (isset($apcInfo['nhits'])) {
			$info[] = ['Cache hits: ', '[success]' . $apcInfo['nhits'] . '[/success]'];
		}

		if (isset($apcInfo['num_misses'])) {
			$info[] = ['Cache misses: ', '[success]' . $apcInfo['num_misses'] . '[/success]'];
		}
		else if (isset($apcInfo['nmisses'])) {
			$info[] = ['Cache misses: ', '[success]' . $apcInfo['nmisses'] . '[/success]'];
		}
	}
766901
public function htmlLabel($identifier, $content="", $icon=NULL,$tagName="div") {
		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$icon, $tagName));
	}
306076
function (domElt) {
            var param = {
                domElt : domElt
                // this property changes in the _linkIconToDom method
            }, oSelf = this;
            ariaUtilsArray.forEach(this._iconsLeft, function (value) {
                oSelf._linkIconToDom(value, param);
            });
            this._frame.linkToDom(param.domElt);
            param.domElt = ariaUtilsDom.getNextSiblingElement(param.domElt, this._frame.domElementNbr);
            ariaUtilsArray.forEach(this._iconsRight, function (value) {
                oSelf._linkIconToDom(value, param);
            });
        }
924790
protected function serverInfo(Infoset $info) {
		$infoTable = $this->createTable();
		$infoTable->setTitle('Info');
		
		if (! empty($_SERVER['REQUEST_TIME'])) {
			$infoTable[] = ['Request time: ', date(DATE_RFC3339, $_SERVER['REQUEST_TIME'])];
		}
		
		foreach (self::$serverInfo as $groupName => $groupInfo) {
			foreach ($groupInfo as $title => $item) {
				if (empty($_SERVER[$item])) {
					continue;
				}
				
				$value = $_SERVER[$item];
				
				if (strlen($value) > 1024) {
					$value = substr($value, 0, 1024) . '...';
				}
				
				if ($groupName === 'http') {
					$infoTable->pushSuccess([$title . ':', $value]);
					continue;
				}
				
				if ($groupName === 'server') {
					$infoTable->pushInfo([$title . ':', $value]);
					continue;
				}
				
				$infoTable->pushContent([$title . ':', $value]);
			}
		}
		
		$info[] = $infoTable;
	}
908857
protected function createTitle(Infoset $info) {
		$errors = count($this->errors);
		
		if ($errors === 0) {
			$info->setTitle('No errors');
			return;
		}
		
		$info->setTitle($errors . ($errors > 1 ? ' Errors' : ' Error'));
	}
1285148
function useIconProviders(data, $element) {
        _iconProviders.forEach(function (provider) {
            var icon = provider(data);
            if (icon) {
                $element.prepend($(icon));
            }
        });
    }
729463
public void update (Icon icon, String tiptext)
    {
        _label.setText(tiptext);
        _icon = icon;
    }
704690
protected static function tooltipPopover($label, $url, $title, $htmlOptions)
    {
        $htmlOptions['title'] = $title;
        if (TbArray::popValue('animation', $htmlOptions)) {
            $htmlOptions['data-animation'] = 'true';
        }
        if (TbArray::popValue('html', $htmlOptions)) {
            $htmlOptions['data-html'] = 'true';
        }
        $selector = TbArray::popValue('selector', $htmlOptions);
        if (!empty($selector)) {
            $htmlOptions['data-selector'] = $selector;
        }
        $placement = TbArray::popValue('placement', $htmlOptions);
        if (!empty($placement)) {
            $htmlOptions['data-placement'] = $placement;
        }
        $trigger = TbArray::popValue('trigger', $htmlOptions);
        if (!empty($trigger)) {
            $htmlOptions['data-trigger'] = $trigger;
        }
        if (($delay = TbArray::popValue('delay', $htmlOptions)) !== null) {
            $htmlOptions['data-delay'] = $delay;
        }
        return self::link($label, $url, $htmlOptions);
    }
125373
private void addInfoElements(Element infoElement)
    {
        Element el = new DOMElement("name");
        el.addText(this.project.getName());
        infoElement.add(el);

        el = new DOMElement("description");
        String description = this.project.getDescription();
        if (description == null) {
            el.addText("");
        } else {
            el.addText(description);
        }
        infoElement.add(el);

        el = new DOMElement("licence");
        el.addText("");
        infoElement.add(el);

        el = new DOMElement("author");
        el.addText("XWiki.Admin");
        infoElement.add(el);

        el = new DOMElement("extensionId");
        el.addText(this.project.getGroupId() + ':' + this.project.getArtifactId());
        infoElement.add(el);

        el = new DOMElement("version");
        el.addText(this.project.getVersion());
        infoElement.add(el);

        el = new DOMElement("backupPack");
        el.addText("false");
        infoElement.add(el);
    }
617708
function (element, options) {
    this.type       =
    this.options    =
    this.enabled    =
    this.timeout    =
    this.hoverState =
    this.$element   = null

    this.init('tooltip', element, options)
  }
776254
public function tryAddIcon(Html $el, $icon, $name)
	{
		if ($icon) {
			$el->addHtml(Html::el('span')->class(DataGrid::$icon_prefix . $icon));

			if (strlen($name)) {
				$el->addHtml('&nbsp;');
			}
		}
	}
613554
protected function eventsInfo(Infoset $info, array $profiles) {
		$table = $this->createTable()
			->setColsWidths([1, 1, 1, 94])
			->setHeadContent(['', '', 'Time', 'Action'])
			->enableBbCodes()
			->setTitle('Events');
		
		$info[] = $table;
		$number = 1;
		
		foreach ($profiles as $profile) {
			$status = $this->handleProfileStatus($profile);
			$time   = '[strong]' . $this->formatTime($profile->getElapsedTime()) . '[/strong]';
			
			$row = [$number, $status, $time, $profile->getMessage()];
			$this->handleProfileType($profile, $table, $row);
			
			++ $number;
		}
	}
473685
function(err){
			var indicator = lib.node(this._prefix+this._id);
			indicator.parentNode.removeChild(indicator);
			
			var image = document.createElement("img");
			image.src = require.toUrl("images/problem.gif");
			this._anchor.appendChild(image);
			
			new mTooltip.Tooltip({
				node: indicator,
				text:err
			});
		}
1083062
function updateNotificationIcon(index) {
            var model = models[index],
                $notificationIcon = $dlg.find(".nav-tabs li").eq(index).find(".notification");
            if (model.notifyCount) {
                $notificationIcon.text(model.notifyCount);
                $notificationIcon.show();
            } else {
                $notificationIcon.hide();
            }
        }
128598
public void setStatusText(String strStatus, int iWarningLevel)
    {
        if (strStatus == null)
            strStatus = Constants.BLANK;
        m_strCurrentStatus = strStatus;
        m_iCurrentWarningLevel = iWarningLevel;
        //xif (this.getApplet() != null)
        //x    ((BaseApplet)this.getApplet()).showStatus(strStatus);
        //xelse
        //x{
            if (iWarningLevel != Constants.ERROR)
            {   // Warning or information
                ImageIcon icon = null;
                if (iWarningLevel == Constants.INFORMATION)
                    icon = this.loadImageIcon(ThinMenuConstants.INFORMATION);
                else if (iWarningLevel == Constants.WARNING)
                    icon = this.loadImageIcon(ThinMenuConstants.WARNING);
                else if (iWarningLevel == Constants.WAIT)
                    icon = this.loadImageIcon(ThinMenuConstants.WAIT);
                else if (iWarningLevel == Constants.ERROR)
                    icon = this.loadImageIcon(ThinMenuConstants.ERROR);
                if (this.getStatusbar() != null)
                    this.getStatusbar().showStatus(strStatus, icon, iWarningLevel);
            }
            else
            {   // Full blown error message (show dialog)
                Container frame = BaseApplet.getSharedInstance();
                while ((frame = frame.getParent()) != null)
                {
                    if (frame instanceof JFrame)
                    {
                        JOptionPane.showMessageDialog((JFrame)frame, strStatus, "Error: ", JOptionPane.WARNING_MESSAGE);
                        break;
                    }
                }
            }
        //x}
    }