import { IgcColumnComponent } from "./igc-column-component";
import { IgcColumnWidth } from "./igc-column-width";
import { GridColumnWidthChangedEventArgs as GridColumnWidthChangedEventArgs_internal } from "./GridColumnWidthChangedEventArgs";
/**
 * Event arguments for the GridColumnWidthChanged event.
*/
export class IgcGridColumnWidthChangedEventArgs {
    createImplementation() {
        return new GridColumnWidthChangedEventArgs_internal();
    }
    /**
     * @hidden
     */
    get i() {
        return this._implementation;
    }
    onImplementationCreated() {
    }
    constructor() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    _provideImplementation(i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    /**
     * The column whose Width has changed
    */
    get column() {
        if (this.i.a == null) {
            return null;
        }
        if (!this.i.a.externalObject) {
            let e = IgcColumnComponent._createFromInternal(this.i.a);
            if (e) {
                e._implementation = this.i.a;
            }
            this.i.a.externalObject = e;
        }
        return this.i.a.externalObject;
    }
    set column(v) {
        v == null ? this.i.a = null : this.i.a = v.i;
    }
    /**
     * The old column width.
    */
    get oldWidth() {
        if (this.i.c == null) {
            return null;
        }
        if (!this.i.c.externalObject) {
            let e = new IgcColumnWidth();
            e._implementation = this.i.c;
            this.i.c.externalObject = e;
        }
        return this.i.c.externalObject;
    }
    set oldWidth(v) {
        v == null ? this.i.c = null : this.i.c = v.i;
    }
    /**
     * The new column width.
    */
    get newWidth() {
        if (this.i.b == null) {
            return null;
        }
        if (!this.i.b.externalObject) {
            let e = new IgcColumnWidth();
            e._implementation = this.i.b;
            this.i.b.externalObject = e;
        }
        return this.i.b.externalObject;
    }
    set newWidth(v) {
        v == null ? this.i.b = null : this.i.b = v.i;
    }
}
//# sourceMappingURL=igc-grid-column-width-changed-event-args.js.map
