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

js.factoryEditing.widget.view.ViewModel.js Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
//generated code don't edit manually
import { WidgetModel } from "../../base/WidgetModel";
import { View } from "./View";
import { BooleanValue } from "../../base/BooleanValue";
export class ViewModel extends WidgetModel {
    constructor(factoryEditor, saveWidget, factoryUpdateResult, navbar, historyWidgetModel) {
        super();
        this.factoryEditor = factoryEditor;
        this.saveWidget = saveWidget;
        this.factoryUpdateResult = factoryUpdateResult;
        this.navbar = navbar;
        this.historyWidgetModel = historyWidgetModel;
        this.visible = new BooleanValue();
        this.visible.set(true);
    }
    showFactoryEditor() {
        this.factoryEditor.visible.set(true);
        this.saveWidget.visible.set(false);
        this.factoryUpdateResult.visible.set(false);
        this.historyWidgetModel.visible.set(false);
    }
    showSaveContent() {
        this.factoryEditor.visible.set(false);
        this.saveWidget.visible.set(true);
        this.factoryUpdateResult.visible.set(false);
        this.historyWidgetModel.visible.set(false);
    }
    showFactoryUpdateResult() {
        this.factoryEditor.visible.set(false);
        this.saveWidget.visible.set(false);
        this.factoryUpdateResult.visible.set(true);
        this.historyWidgetModel.visible.set(false);
    }
    showHistoryWidget() {
        this.factoryEditor.visible.set(false);
        this.saveWidget.visible.set(false);
        this.factoryUpdateResult.visible.set(false);
        this.historyWidgetModel.visible.set(true);
    }
    createWidget() {
        return new View(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy