Rename
authorCharles du Jeu <charles.dujeu@gmail.com>
Thu, 23 Jul 2009 10:00:05 +0000 (10:00 +0000)
committerCharles du Jeu <charles.dujeu@gmail.com>
Thu, 23 Jul 2009 10:00:05 +0000 (10:00 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2727 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/DistListView.js [new file with mode: 0644]
server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/PropertiesView.js [deleted file]

diff --git a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/DistListView.js b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/DistListView.js
new file mode 100644 (file)
index 0000000..850892e
--- /dev/null
@@ -0,0 +1,76 @@
+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
+               this.xmlStub = '<slc:object-list xmlns:slc="http://argeo.org/projects/slc/schemas">' +\r
+                               '<slc:modular-distribution-descriptor name="name" version="0.1.0">' +\r
+                               '<slc:modulesDescriptors><slc:modulesDescriptor type="modularDistribution" url="http://localhost/modularDistribution" />' +\r
+                               '<slc:modulesDescriptor type="eclipse" url="http://localhost/updateSite" />' +\r
+                               '</slc:modulesDescriptors></slc:modular-distribution-descriptor>' +\r
+                               '<slc:modular-distribution-descriptor name="name2" version="0.1.1">' +\r
+                               '<slc:modulesDescriptors><slc:modulesDescriptor type="modularDistribution" url="http://localhost/modularDistribution2" />' +\r
+                               '<slc:modulesDescriptor type="eclipse" url="http://localhost/updateSite2" />' +\r
+                               '</slc:modulesDescriptors></slc:modular-distribution-descriptor>' +\r
+                               '</slc:object-list>';\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
diff --git a/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/PropertiesView.js b/server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/monitor/PropertiesView.js
deleted file mode 100644 (file)
index 02871ff..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-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