import { CancelEventArgs as CancelEventArgs_internal } from "./CancelEventArgs";
import { ensureBool } from "./componentUtil";
var CancelEventArgs = /** @class */ (function () {
    function CancelEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    CancelEventArgs.prototype.createImplementation = function () {
        return new CancelEventArgs_internal(0);
    };
    Object.defineProperty(CancelEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    CancelEventArgs.prototype.onImplementationCreated = function () {
    };
    CancelEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(CancelEventArgs.prototype, "cancel", {
        get: function () {
            return this.i.cancel;
        },
        set: function (v) {
            this.i.cancel = ensureBool(v);
        },
        enumerable: true,
        configurable: true
    });
    return CancelEventArgs;
}());
export { CancelEventArgs };
