All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.factoryEditing.base.AttributeAccessorValue.js Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
//generated code don't edit manually
import { Value } from "./Value";
export class AttributeAccessorValue extends Value {
    constructor() {
        super();
        this.listener = () => {
            if (this.parent) {
                this.parent.update();
            }
        };
    }
    set(attributeAccessor) {
        let previous = this.get();
        if (previous) {
            previous.removeChangeListener(this.listener);
        }
        if (attributeAccessor) {
            attributeAccessor.addChangeListener(this.listener);
        }
        super.set(attributeAccessor);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy