X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fsource%2Fclass%2Forg%2Fargeo%2Fria%2Fevent%2FReloadEvent.js;h=2877a733523b11f3b66046fda56586ffcffb2c9c;hb=9120f32a4cb34b9b46bbfbf02ba34e64d2da2312;hp=d86b0d1fefb00b441a546cf80cc4672468005a53;hpb=8f4e4722a346442a8ed1ca84efa24b60bfaf3d19;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/event/ReloadEvent.js b/org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/event/ReloadEvent.js index d86b0d1fe..2877a7335 100644 --- a/org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/event/ReloadEvent.js +++ b/org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/event/ReloadEvent.js @@ -1,12 +1,8 @@ -/* ************************************************************************ - - Copyright: 2008 Argeo - - License: - - Authors: Charles du Jeu - -************************************************************************ */ +/** + * This can be triggered at the end of a IO Request. In that case, it contains + * a data type as an identifier, and the request response itself. + * Can be used this way to listen for data changes from various parts of the application. + */ qx.Class.define("org.argeo.ria.event.ReloadEvent", { extend : qx.event.type.Event, @@ -15,13 +11,24 @@ qx.Class.define("org.argeo.ria.event.ReloadEvent", this.base(arguments); }, members : { + /** + * Basic initialisation of event + * @param dataType {String} a unique data identifier + * @param content {mixed} the retrieved data + */ init: function(dataType, content){ this.setDataType(dataType); this.setContent(content); } }, properties :{ - dataType : {init:null}, + /** + * A unique data identifier + */ + dataType : {init:null, check:"String"}, + /** + * The new data content + */ content : {init:null} } }); \ No newline at end of file