X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.document.server%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2Fclient%2FWidgetManager.java;h=ab0b8cf87503437c38f16f2e9f19cd98dafcd7e0;hb=e4ffdffae875e518a4eb070b8bda6ead1a9843d3;hp=b3fbf248e05eb616c5f98a23952ac79b419c9708;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java b/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java index b3fbf248e..ab0b8cf87 100644 --- a/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java +++ b/bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java @@ -1,20 +1,33 @@ -package org.simantics.document.server.client; - -import java.util.TreeMap; - -import org.simantics.document.server.IEventCommand; -import org.simantics.document.server.JSONObject; - -public interface WidgetManager { - - public W createWidget(JSONObject object); - - public void updateProperties(D document, JSONObject object, W widget); - - public void updateChildren(D document, JSONObject object, W widget, TreeMap childMap); - - public IEventCommand eventCommand(D document, JSONObject object, W widget, String command); - - public String getProperty(D document, JSONObject object, W widget, String property); - +/******************************************************************************* + * Copyright (c) 2019 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.document.server.client; + +import java.util.TreeMap; + +import org.simantics.document.server.IEventCommand; +import org.simantics.document.server.JSONObject; +import org.simantics.document.server.io.CommandContext; +import org.simantics.document.server.io.ICommand; + +public interface WidgetManager { + + public W createWidget(JSONObject object); + + public void updateProperties(D document, JSONObject object, W widget); + + public void updateChildren(D document, JSONObject object, W widget, TreeMap childMap); + + public IEventCommand eventCommand(D document, JSONObject object, W widget, ICommand command, CommandContext context); + + public String getProperty(D document, JSONObject object, W widget, String property); + } \ No newline at end of file