src/aria/widgets/container/Dialog.js
function (propertyName, newValue, oldValue) {

            if (propertyName === "visible") {
                this._cfg.visible = newValue;
                if (newValue) {
                    this.open();
                } else {
                    this.close();
                }
            } else if (propertyName === "movable") {
                this._cfg.movable = newValue;
                if (this._popup && this._popup.isOpen) {
                    if (newValue) {
                        this._loadAndCreateDraggable();
                    } else {
                        this._destroyDraggable();
                    }
                }
            } else if (propertyName === "title") {
                this._cfg.title = newValue;
                if (this._titleDomElt) {
                    this._titleDomElt.innerHTML = newValue;
                    this._onDimensionsChanged();
                }
            } else if (propertyName === "macro") {
                this._cfg.macro = newValue;
                if (this._popup) {
                    if (!this._popup.isOpen) {
                        this.open();
                    } else {
                        var args = {
                            section : "__dialogContent_" + this._domId,
                            macro : newValue
                        };
                        this._context.$refresh(args);
                    }
                }
            } else if (propertyName === "xpos" || propertyName === "ypos") {
                this._cfg[propertyName] = newValue;
                this.setProperty("center", false);
                this.updatePosition();
            } else if (propertyName === "center") {
                this._cfg.center = newValue;
                this.updatePosition();
            } else if (propertyName === "maximized") {
                this._toggleMaximize(newValue);
            } else if (propertyName === "width" || propertyName === "height") {
                this._onDimensionsChanged(false);
            } else if (propertyName === "restoreFocusOnClose") {
                this._cfg[propertyName] = newValue;
            } else {
                // delegate to parent class
                this.$Container._onBoundPropertyChange.apply(this, arguments);
            }
        }
function (propertyName, newValue, oldValue) {

            if (propertyName === "visible") {
                this._cfg.visible = newValue;
                if (newValue) {
                    this.open();
                } else {
                    this.close();
                }
            } else if (propertyName === "movable") {
                this._cfg.movable = newValue;
                if (this._popup && this._popup.isOpen) {
                    if (newValue) {
                        this._loadAndCreateDraggable();
                    } else {
                        this._destroyDraggable();
                    }
                }
            } else if (propertyName === "title") {
                this._cfg.title = newValue;
                if (this._titleDomElt) {
                    this._titleDomElt.innerHTML = newValue;
                    this._onDimensionsChanged();
                }
            } else if (propertyName === "macro") {
                this._cfg.macro = newValue;
                if (this._popup) {
                    if (!this._popup.isOpen) {
                        this.open();
                    } else {
                        var args = {
                            section : "__dialogContent_" + this._domId,
                            macro : newValue
                        };
                        this._context.$refresh(args);
                    }
                }
            } else if (propertyName === "xpos" || propertyName === "ypos") {
                this._cfg[propertyName] = newValue;
                this.setProperty("center", false);
                this.updatePosition();
            } else if (propertyName === "center") {
                this._cfg.center = newValue;
                this.updatePosition();
            } else if (propertyName === "maximized") {
                this._toggleMaximize(newValue);
            } else if (propertyName === "width" || propertyName === "height") {
                this._onDimensionsChanged(false);
            } else if (propertyName === "restoreFocusOnClose") {
                this._cfg[propertyName] = newValue;
            } else {
                // delegate to parent class
                this.$Container._onBoundPropertyChange.apply(this, arguments);
            }
        }
function ( propertyName , newValue , oldValue ) { if ( propertyName === "visible" ) { this . _cfg . visible = newValue ; if ( newValue ) { this . open ( ) ; } else { this . close ( ) ; } } else if ( propertyName === "movable" ) { this . _cfg . movable = newValue ; if ( this . _popup && this . _popup . isOpen ) { if ( newValue ) { this . _loadAndCreateDraggable ( ) ; } else { this . _destroyDraggable ( ) ; } } } else if ( propertyName === "title" ) { this . _cfg . title = newValue ; if ( this . _titleDomElt ) { this . _titleDomElt . innerHTML = newValue ; this . _onDimensionsChanged ( ) ; } } else if ( propertyName === "macro" ) { this . _cfg . macro = newValue ; if ( this . _popup ) { if ( ! this . _popup . isOpen ) { this . open ( ) ; } else { var args = { section : "__dialogContent_" + this . _domId , macro : newValue } ; this . _context . $refresh ( args ) ; } } } else if ( propertyName === "xpos" || propertyName === "ypos" ) { this . _cfg [ propertyName ] = newValue ; this . setProperty ( "center" , false ) ; this . updatePosition ( ) ; } else if ( propertyName === "center" ) { this . _cfg . center = newValue ; this . updatePosition ( ) ; } else if ( propertyName === "maximized" ) { this . _toggleMaximize ( newValue ) ; } else if ( propertyName === "width" || propertyName === "height" ) { this . _onDimensionsChanged ( false ) ; } else if ( propertyName === "restoreFocusOnClose" ) { this . _cfg [ propertyName ] = newValue ; } else { // delegate to parent class this . $Container . _onBoundPropertyChange . apply ( this , arguments ) ; } }
Internal method called when one of the model property that the widget is bound to has changed. Must be
overridden by sub-classes defining bindable properties
@param {String} propertyName the property name
@param {Object} newValue the new value
@param {Object} oldValue the old property value
@protected
@override
Internal method called when one of the model property that the widget is bound to has changed . Must be overridden by sub - classes defining bindable properties