src/aria/widgets/container/Tab.js
function (skipChangeState) {
            var state = "normal";
            var cfg = this._cfg;

            if (cfg.disabled) {
                state = "disabled";
            } else if (cfg.tabId === cfg.selectedTab) {
                state = "selected";
            } else {
                if (this._mouseOver) {
                    state = "msover";
                }
            }

            if (this._hasFocus) {
                state += "Focused";
            }
            this._state = state;

            if (!skipChangeState) {
                // force widget - DOM mapping
                this.getDom();
                this._frame.changeState(this._state);
            }
        }
function (skipChangeState) {
            var state = "normal";
            var cfg = this._cfg;

            if (cfg.disabled) {
                state = "disabled";
            } else if (cfg.tabId === cfg.selectedTab) {
                state = "selected";
            } else {
                if (this._mouseOver) {
                    state = "msover";
                }
            }

            if (this._hasFocus) {
                state += "Focused";
            }
            this._state = state;

            if (!skipChangeState) {
                // force widget - DOM mapping
                this.getDom();
                this._frame.changeState(this._state);
            }
        }
function ( skipChangeState ) { var state = "normal" ; var cfg = this . _cfg ; if ( cfg . disabled ) { state = "disabled" ; } else if ( cfg . tabId === cfg . selectedTab ) { state = "selected" ; } else { if ( this . _mouseOver ) { state = "msover" ; } } if ( this . _hasFocus ) { state += "Focused" ; } this . _state = state ; if ( ! skipChangeState ) { // force widget - DOM mapping this . getDom ( ) ; this . _frame . changeState ( this . _state ) ; } }
Internal method to update the state of the tab, from the config and the mouse over variable
@param {Boolean} skipChangeState - If true we don't update the state in the frame as the frame may not be
initialized
@protected
Internal method to update the state of the tab from the config and the mouse over variable