]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server/src/org/simantics/document/server/client/WidgetManager.java
Playground for Antti.
[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 import org.simantics.document.server.io.CommandContext;
8 import org.simantics.document.server.io.ICommand;
9
10 public interface WidgetManager<D extends Document, W> {
11
12         public W createWidget(JSONObject object);
13
14         public void updateProperties(D document, JSONObject object, W widget);
15         
16         public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
17         
18     public IEventCommand eventCommand(D document, JSONObject object, W widget, ICommand command, CommandContext context);
19         
20         public String getProperty(D document, JSONObject object, W widget, String property);
21         
22 }