/**\r
- * @author Charles du Jeu\r
+ * Interface for a standard 'view' of an argeo RIA. A view is an independant applet that \r
+ * will be integrated inside a ViewPane. \r
+ * \r
+ * The typical lifecycle of an IView will be the following :\r
+ * <br>+ init(viewPane) : initialize basic GUI in the viewPane\r
+ * <br>+ getCommands() : wire the commands and add them to the toolbars/menubars\r
+ * <br>+ load(data) : loads the data itself.\r
* \r
+ * @author Charles du Jeu\r
*/\r
qx.Interface.define("org.argeo.ria.components.IView", {\r
\r
},\r
\r
members : {\r
- init : function(viewPane){\r
- return true;\r
- },\r
- load : function(data){\r
- return true;\r
- },\r
- addScroll : function(){\r
- return true;\r
- }\r
+ /**\r
+ * The implementation should contain the GUI initialisation.\r
+ * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager\r
+ * @return {Boolean}\r
+ */\r
+ init : function(viewPane){return true;},\r
+ /**\r
+ * The implementation should contain the real data loading (i.o. query...)\r
+ * @param data {mixed} Any data in any format\r
+ * @return {Boolean}\r
+ */\r
+ load : function(data){return true;},\r
+ /**\r
+ * Whether this component is already contained in a scroller \r
+ * (return false) or not (return true).\r
+ * @return {Boolean}\r
+ */\r
+ addScroll : function(){return true;}\r
}\r
});
\ No newline at end of file