src/aria/widgets/frames/FrameWithIcons.js
function (icon, param) {
            var stateObject = this.getStateObject();
            var iconParts = stateObject.icons[icon].split(":");
            var iconInfo = ariaWidgetsAriaSkinInterface.getIcon(iconParts[0], iconParts[1]);
            var active = stateObject.icons[icon + "IsActive"];
            if (iconInfo) {
                this._icons[icon].iconInfo = iconInfo;
                this._icons[icon].active = active;
                if (active) {
                    this._icons[icon].tooltip = this._tooltipLabels[param.activeIconIndex++];
                }
                param.width += iconInfo.width + (iconInfo.borderLeft || 0) + (iconInfo.borderRight || 0);
            } else {
                this.$logError(this.ICON_NOT_FOUND, icon);
            }
        }
function (icon, param) {
            var stateObject = this.getStateObject();
            var iconParts = stateObject.icons[icon].split(":");
            var iconInfo = ariaWidgetsAriaSkinInterface.getIcon(iconParts[0], iconParts[1]);
            var active = stateObject.icons[icon + "IsActive"];
            if (iconInfo) {
                this._icons[icon].iconInfo = iconInfo;
                this._icons[icon].active = active;
                if (active) {
                    this._icons[icon].tooltip = this._tooltipLabels[param.activeIconIndex++];
                }
                param.width += iconInfo.width + (iconInfo.borderLeft || 0) + (iconInfo.borderRight || 0);
            } else {
                this.$logError(this.ICON_NOT_FOUND, icon);
            }
        }
function ( icon , param ) { var stateObject = this . getStateObject ( ) ; var iconParts = stateObject . icons [ icon ] . split ( ":" ) ; var iconInfo = ariaWidgetsAriaSkinInterface . getIcon ( iconParts [ 0 ] , iconParts [ 1 ] ) ; var active = stateObject . icons [ icon + "IsActive" ] ; if ( iconInfo ) { this . _icons [ icon ] . iconInfo = iconInfo ; this . _icons [ icon ] . active = active ; if ( active ) { this . _icons [ icon ] . tooltip = this . _tooltipLabels [ param . activeIconIndex ++ ] ; } param . width += iconInfo . width + ( iconInfo . borderLeft || 0 ) + ( iconInfo . borderRight || 0 ) ; } else { this . $logError ( this . ICON_NOT_FOUND , icon ) ; } }
Compute the size of the given icon, after updating its iconInfo property based on the current state.
@protected
Compute the size of the given icon after updating its iconInfo property based on the current state .