src/aria/popups/Popup.js
function (conf) {

            this.conf = conf;

            if (conf.waiAria == null) {
                conf.waiAria = environment.isWaiAria();
            }

            ariaCoreJsonValidator.normalize({
                json : conf,
                beanName : "aria.popups.Beans.PopupConf"
            });

            if (this.modalMaskDomElement) {
                ariaUtilsDom.removeElement(this.modalMaskDomElement);
                this.modalMaskDomElement = null;
            }
            this.popupContainer = (conf.popupContainer || ViewportPopupContainer).$interface("aria.popups.container.IPopupContainer");
            if (conf.modal) {
                this.modalMaskDomElement = this._createMaskDomElement(conf.maskCssClass);
            }
            if (this.domElement != null) {
                ariaUtilsDom.removeElement(this.domElement);
            }
            this.domElement = this._createDomElement();

            this.setPreferredPositions(conf.preferredPositions);
            this.setSection(conf.section);

            if (!conf.center) {
                if (!conf.absolutePosition || conf.domReference) {
                    this.setReference(conf.domReference);
                } else {
                    this.setPositionAsReference(conf.absolutePosition);
                }
            } else {
                this.setPositionAsReference(this._getPosition(this._getFreeSize()));
            }

            this._ignoreClicksOn = conf.ignoreClicksOn;

            this._parentDialog = conf.parentDialog;

        }
function (conf) {

            this.conf = conf;

            if (conf.waiAria == null) {
                conf.waiAria = environment.isWaiAria();
            }

            ariaCoreJsonValidator.normalize({
                json : conf,
                beanName : "aria.popups.Beans.PopupConf"
            });

            if (this.modalMaskDomElement) {
                ariaUtilsDom.removeElement(this.modalMaskDomElement);
                this.modalMaskDomElement = null;
            }
            this.popupContainer = (conf.popupContainer || ViewportPopupContainer).$interface("aria.popups.container.IPopupContainer");
            if (conf.modal) {
                this.modalMaskDomElement = this._createMaskDomElement(conf.maskCssClass);
            }
            if (this.domElement != null) {
                ariaUtilsDom.removeElement(this.domElement);
            }
            this.domElement = this._createDomElement();

            this.setPreferredPositions(conf.preferredPositions);
            this.setSection(conf.section);

            if (!conf.center) {
                if (!conf.absolutePosition || conf.domReference) {
                    this.setReference(conf.domReference);
                } else {
                    this.setPositionAsReference(conf.absolutePosition);
                }
            } else {
                this.setPositionAsReference(this._getPosition(this._getFreeSize()));
            }

            this._ignoreClicksOn = conf.ignoreClicksOn;

            this._parentDialog = conf.parentDialog;

        }
function ( conf ) { this . conf = conf ; if ( conf . waiAria == null ) { conf . waiAria = environment . isWaiAria ( ) ; } ariaCoreJsonValidator . normalize ( { json : conf , beanName : "aria.popups.Beans.PopupConf" } ) ; if ( this . modalMaskDomElement ) { ariaUtilsDom . removeElement ( this . modalMaskDomElement ) ; this . modalMaskDomElement = null ; } this . popupContainer = ( conf . popupContainer || ViewportPopupContainer ) . $interface ( "aria.popups.container.IPopupContainer" ) ; if ( conf . modal ) { this . modalMaskDomElement = this . _createMaskDomElement ( conf . maskCssClass ) ; } if ( this . domElement != null ) { ariaUtilsDom . removeElement ( this . domElement ) ; } this . domElement = this . _createDomElement ( ) ; this . setPreferredPositions ( conf . preferredPositions ) ; this . setSection ( conf . section ) ; if ( ! conf . center ) { if ( ! conf . absolutePosition || conf . domReference ) { this . setReference ( conf . domReference ) ; } else { this . setPositionAsReference ( conf . absolutePosition ) ; } } else { this . setPositionAsReference ( this . _getPosition ( this . _getFreeSize ( ) ) ) ; } this . _ignoreClicksOn = conf . ignoreClicksOn ; this . _parentDialog = conf . parentDialog ; }
Save the configuration information for this popup.
@param {aria.popups.Beans:PopupCfg} conf
@protected
Save the configuration information for this popup .