]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - 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
index b3fbf248e05eb616c5f98a23952ac79b419c9708..09338b50df288663e2d9e979aa6c1e6267ea3ad4 100644 (file)
@@ -1,20 +1,22 @@
-package org.simantics.document.server.client;\r
-\r
-import java.util.TreeMap;\r
-\r
-import org.simantics.document.server.IEventCommand;\r
-import org.simantics.document.server.JSONObject;\r
-\r
-public interface WidgetManager<D extends Document, W> {\r
-\r
-       public W createWidget(JSONObject object);\r
-\r
-       public void updateProperties(D document, JSONObject object, W widget);\r
-       \r
-       public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);\r
-       \r
-    public IEventCommand eventCommand(D document, JSONObject object, W widget, String command);\r
-       \r
-       public String getProperty(D document, JSONObject object, W widget, String property);\r
-       \r
+package org.simantics.document.server.client;
+
+import java.util.TreeMap;
+
+import org.simantics.document.server.IEventCommand;
+import org.simantics.document.server.JSONObject;
+import org.simantics.document.server.io.CommandContext;
+import org.simantics.document.server.io.ICommand;
+
+public interface WidgetManager<D extends Document, W> {
+
+       public W createWidget(JSONObject object);
+
+       public void updateProperties(D document, JSONObject object, W widget);
+       
+       public void updateChildren(D document, JSONObject object, W widget, TreeMap<String, WidgetData> childMap);
+       
+    public IEventCommand eventCommand(D document, JSONObject object, W widget, ICommand command, CommandContext context);
+       
+       public String getProperty(D document, JSONObject object, W widget, String property);
+       
 }
\ No newline at end of file