function Dialog($dlg, promise) {
        this._$dlg    = $dlg;
        this._promise = promise;
    }
@constructor
@private

@param {$.Element} $dlg The dialog jQuery element
@param {$.Promise} promise A promise that will be resolved with the ID of the clicked button when the dialog
    is dismissed. Never rejected.