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