src/aria/widgets/calendar/RangeCalendar.js
function () {
            this._plannedFocusUpdate = null;
            if (this._focusStyle == this._hasFocus) {
                // nothing to do!
                return;
            }
            var moduleCtrl = this._subTplModuleCtrl, dom = this.getDom();
            if (moduleCtrl && dom && this._cfg.tabIndex != null && this._cfg.tabIndex >= 0) {
                var preventDefaultVisualAspect = moduleCtrl.notifyFocusChanged(this._hasFocus);
                if (!preventDefaultVisualAspect) {
                    var domEltStyle = dom.style;
                    var visualFocusStyle = (aria.utils.VisualFocus) ? aria.utils.VisualFocus.getStyle() : null;
                    if (this._hasFocus) {
                        if (ariaCoreBrowser.isIE7) {
                            domEltStyle.border = "1px dotted black";
                            domEltStyle.padding = "0px";
                        } else {
                            if (visualFocusStyle == null) {
                                domEltStyle.outline = "1px dotted black";
                            }
                        }
                    } else {
                        if (ariaCoreBrowser.isIE7) {
                            domEltStyle.border = "0px";
                            domEltStyle.padding = "1px";
                        } else {
                            if (visualFocusStyle == null) {
                                domEltStyle.outline = "none";
                            }
                        }
                    }
                }
                if (this._hasFocus) {
                    moduleCtrl.selectDay({
                        date : this._cfg.fromDate || this._cfg.toDate,
                        ensureVisible : false
                    });
                } else {
                    moduleCtrl.selectDay({
                        date : null
                    });
                }
                this._focusStyle = this._hasFocus;
            }
        }
function () {
            this._plannedFocusUpdate = null;
            if (this._focusStyle == this._hasFocus) {
                // nothing to do!
                return;
            }
            var moduleCtrl = this._subTplModuleCtrl, dom = this.getDom();
            if (moduleCtrl && dom && this._cfg.tabIndex != null && this._cfg.tabIndex >= 0) {
                var preventDefaultVisualAspect = moduleCtrl.notifyFocusChanged(this._hasFocus);
                if (!preventDefaultVisualAspect) {
                    var domEltStyle = dom.style;
                    var visualFocusStyle = (aria.utils.VisualFocus) ? aria.utils.VisualFocus.getStyle() : null;
                    if (this._hasFocus) {
                        if (ariaCoreBrowser.isIE7) {
                            domEltStyle.border = "1px dotted black";
                            domEltStyle.padding = "0px";
                        } else {
                            if (visualFocusStyle == null) {
                                domEltStyle.outline = "1px dotted black";
                            }
                        }
                    } else {
                        if (ariaCoreBrowser.isIE7) {
                            domEltStyle.border = "0px";
                            domEltStyle.padding = "1px";
                        } else {
                            if (visualFocusStyle == null) {
                                domEltStyle.outline = "none";
                            }
                        }
                    }
                }
                if (this._hasFocus) {
                    moduleCtrl.selectDay({
                        date : this._cfg.fromDate || this._cfg.toDate,
                        ensureVisible : false
                    });
                } else {
                    moduleCtrl.selectDay({
                        date : null
                    });
                }
                this._focusStyle = this._hasFocus;
            }
        }
function ( ) { this . _plannedFocusUpdate = null ; if ( this . _focusStyle == this . _hasFocus ) { // nothing to do! return ; } var moduleCtrl = this . _subTplModuleCtrl , dom = this . getDom ( ) ; if ( moduleCtrl && dom && this . _cfg . tabIndex != null && this . _cfg . tabIndex >= 0 ) { var preventDefaultVisualAspect = moduleCtrl . notifyFocusChanged ( this . _hasFocus ) ; if ( ! preventDefaultVisualAspect ) { var domEltStyle = dom . style ; var visualFocusStyle = ( aria . utils . VisualFocus ) ? aria . utils . VisualFocus . getStyle ( ) : null ; if ( this . _hasFocus ) { if ( ariaCoreBrowser . isIE7 ) { domEltStyle . border = "1px dotted black" ; domEltStyle . padding = "0px" ; } else { if ( visualFocusStyle == null ) { domEltStyle . outline = "1px dotted black" ; } } } else { if ( ariaCoreBrowser . isIE7 ) { domEltStyle . border = "0px" ; domEltStyle . padding = "1px" ; } else { if ( visualFocusStyle == null ) { domEltStyle . outline = "none" ; } } } } if ( this . _hasFocus ) { moduleCtrl . selectDay ( { date : this . _cfg . fromDate || this . _cfg . toDate , ensureVisible : false } ) ; } else { moduleCtrl . selectDay ( { date : null } ) ; } this . _focusStyle = this . _hasFocus ; } }
Notify the calendar module controller of a change of focus.
@protected
Notify the calendar module controller of a change of focus .