]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/event/ReloadEvent.js
Initialize menuClones in the constructor
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / source / class / org / argeo / ria / event / ReloadEvent.js
index d86b0d1fefb00b441a546cf80cc4672468005a53..2877a733523b11f3b66046fda56586ffcffb2c9c 100644 (file)
@@ -1,12 +1,8 @@
-/* ************************************************************************\r
-\r
-  Copyright: 2008 Argeo\r
-\r
-   License: \r
-\r
-   Authors: Charles du Jeu\r
-\r
-************************************************************************ */\r
+/**\r
+ * This can be triggered at the end of a IO Request. In that case, it contains\r
+ * a data type as an identifier, and the request response itself.\r
+ * Can be used this way to listen for data changes from various parts of the application.\r
+ */\r
 qx.Class.define("org.argeo.ria.event.ReloadEvent",\r
 {\r
        extend : qx.event.type.Event,\r
@@ -15,13 +11,24 @@ qx.Class.define("org.argeo.ria.event.ReloadEvent",
                this.base(arguments);\r
        },\r
        members : {\r
+               /**\r
+                * Basic initialisation of event\r
+                * @param dataType {String} a unique data identifier\r
+                * @param content {mixed} the retrieved data\r
+                */\r
                init: function(dataType, content){\r
                        this.setDataType(dataType);\r
                        this.setContent(content);                       \r
                }\r
        },\r
        properties :{\r
-               dataType : {init:null},\r
+               /**\r
+                * A unique data identifier \r
+                */\r
+               dataType : {init:null, check:"String"},\r
+               /**\r
+                * The new data content \r
+                */\r
                content : {init:null}\r
        }\r
 });
\ No newline at end of file