1 package org.simantics.document.server.client;
3 import java.util.TreeMap;
5 import org.simantics.document.server.IEventCommand;
6 import org.simantics.document.server.JSONObject;
8 public interface WidgetManager<D extends Document, W> {
10 public W createWidget(JSONObject object);
12 public void updateProperties(D document, JSONObject object, W widget);
14 public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
16 public IEventCommand eventCommand(D document, JSONObject object, W widget, String command);
18 public String getProperty(D document, JSONObject object, W widget, String property);