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;
7 import org.simantics.document.server.io.CommandContext;
8 import org.simantics.document.server.io.ICommand;
10 public interface WidgetManager<D extends Document, W> {
12 public W createWidget(JSONObject object);
14 public void updateProperties(D document, JSONObject object, W widget);
16 public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
18 public IEventCommand eventCommand(D document, JSONObject object, W widget, ICommand command, CommandContext context);
20 public String getProperty(D document, JSONObject object, W widget, String property);