+++ /dev/null
-qx.Class.define("org.argeo.slc.ria.monitor.PropertiesView", {\r
- extend : qx.ui.container.Composite,\r
- implement : [org.argeo.ria.components.IView], \r
- \r
- properties : {\r
- /**\r
- * The commands definition Map that will be automatically added and wired to the menubar and toolbar.\r
- * See {@link org.argeo.ria.event.CommandsManager#definitions} for the keys to use for defining commands.\r
- */\r
- commands : {\r
- init : {}\r
- },\r
- viewSelection : {\r
- nullable:false, \r
- check:"org.argeo.ria.components.ViewSelection"\r
- },\r
- view : {\r
- init : null\r
- }, \r
- instanceId : {init:""},\r
- instanceLabel : {init:""}\r
- },\r
-\r
- construct : function(){\r
- this.base(arguments);\r
- this.setLayout(new qx.ui.layout.Dock()); \r
- }, \r
- \r
- members : {\r
- /**\r
- * The implementation should contain the GUI initialisation.\r
- * This is the role of the manager to actually add the graphical component to the pane, \r
- * so it's not necessary to do it here. \r
- * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager\r
- * @param data {Mixed} Any object or data passed by the initiator of the view\r
- * @return {Boolean}\r
- */\r
- init : function(viewPane, data){\r
- this.setView(viewPane); \r
- this.setViewSelection(new org.argeo.ria.components.ViewSelection(viewPane.getViewId()));\r
- this.label = new qx.ui.basic.Label("Properties");\r
- this.add(this.label, {edge : "center"});\r
- },\r
- /**\r
- * The implementation should contain the real data loading (i.o. query...)\r
- * @return {Boolean}\r
- */\r
- load : function(){\r
- \r
- },\r
- \r
- updateData : function(node){\r
- this.label.setContent("Properties for : " + node.getLabel());\r
- },\r
- /**\r
- * Whether this component is already contained in a scroller (return false) or not (return true).\r
- * @return {Boolean}\r
- */\r
- addScroll : function(){return true;},\r
- /**\r
- * Called at destruction time\r
- * Perform all the clean operations (stopping polling queries, etc.) \r
- */\r
- close : function(){return true;}\r
- }\r
-});
\ No newline at end of file