]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java
8474bfd15b1b14e3dcbda4f74c38fdc2d8955662
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / client / WidgetManager.java
1 package org.simantics.document.server.client;
2
3 import java.util.TreeMap;
4
5 import org.simantics.document.server.IEventCommand;
6 import org.simantics.document.server.JSONObject;
7
8 public interface WidgetManager<D extends Document, W> {
9
10         public W createWidget(JSONObject object);
11
12         public void updateProperties(D document, JSONObject object, W widget);
13         
14         public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
15         
16     public IEventCommand eventCommand(D document, JSONObject object, W widget, String command);
17         
18         public String getProperty(D document, JSONObject object, W widget, String property);
19         
20 }