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

js.factoryEditing.base.FactoryValue.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 FactoryValue extends Value {
    constructor() {
        super();
        this.listener = () => {
            if (this.parent) {
                this.parent.update();
            }
        };
    }
    getChildren() {
        return [];
    }
    set(value) {
        let previous = this.get();
        if (previous) {
            previous.removeChangeListener(this.listener);
        }
        if (value) {
            value.addChangeListener(this.listener);
        }
        super.set(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy