[fusion-commits] r1483 - sandbox/jx2/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Aug 28 08:53:24 EDT 2008


Author: pagameba
Date: 2008-08-28 08:53:24 -0400 (Thu, 28 Aug 2008)
New Revision: 1483

Modified:
   sandbox/jx2/widgets/LayerManager.js
   sandbox/jx2/widgets/Legend.js
   sandbox/jx2/widgets/Maptip.js
   sandbox/jx2/widgets/Measure.js
   sandbox/jx2/widgets/Print.js
   sandbox/jx2/widgets/SelectRadiusValue.js
   sandbox/jx2/widgets/Zoom.js
Log:
move remaining Event.observe to OpenLayers.Event.observe

Modified: sandbox/jx2/widgets/LayerManager.js
===================================================================
--- sandbox/jx2/widgets/LayerManager.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/LayerManager.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -159,13 +159,13 @@
   createItemHtml: function(parent, layer) {
     var delIcon = document.createElement('img');
     delIcon.src = this.delIconSrc;
-    Event.observe(delIcon, 'click', OpenLayers.Function.bind(this.deleteLayer, this, layer));
+    OpenLayers.Event.observe(delIcon, 'click', OpenLayers.Function.bind(this.deleteLayer, this, layer));
     delIcon.style.visibility = 'hidden';
     parent.appendChild(delIcon);
     
     var visSelect = document.createElement('input');
     visSelect.type = 'checkbox';
-    Event.observe(visSelect, 'click', OpenLayers.Function.bind(this.visChanged, this, layer));
+    OpenLayers.Event.observe(visSelect, 'click', OpenLayers.Function.bind(this.visChanged, this, layer));
     parent.appendChild(visSelect);
     if (layer.visible) {
       visSelect.checked = true;
@@ -175,13 +175,13 @@
     
     var label = document.createElement('a');
     label.innerHTML = layer.legendLabel;
-    Event.observe(label, 'mouseover', OpenLayers.Function.bind(this.setGrabCursor, this));
-    Event.observe(label, 'mousedown', OpenLayers.Function.bind(this.setDragCursor, this));
-    Event.observe(label, 'mouseout', OpenLayers.Function.bind(this.setNormalCursor, this));
+    OpenLayers.Event.observe(label, 'mouseover', OpenLayers.Function.bind(this.setGrabCursor, this));
+    OpenLayers.Event.observe(label, 'mousedown', OpenLayers.Function.bind(this.setDragCursor, this));
+    OpenLayers.Event.observe(label, 'mouseout', OpenLayers.Function.bind(this.setNormalCursor, this));
     parent.appendChild(label);
     
-    Event.observe(parent, 'mouseover', OpenLayers.Function.bind(this.setHandleVis, this, delIcon));
-    Event.observe(parent, 'mouseout', OpenLayers.Function.bind(this.setHandleHide, this, delIcon));
+    OpenLayers.Event.observe(parent, 'mouseover', OpenLayers.Function.bind(this.setHandleVis, this, delIcon));
+    OpenLayers.Event.observe(parent, 'mouseout', OpenLayers.Function.bind(this.setHandleHide, this, delIcon));
   },
   
   setHandleVis: function(delIcon) {

Modified: sandbox/jx2/widgets/Legend.js
===================================================================
--- sandbox/jx2/widgets/Legend.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/Legend.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -282,7 +282,7 @@
             opt.contextMenu = this.contextMenu;
             this.oRoot = new Jx.TreeFolder(opt);
             this.oTree.append(this.oRoot);
-            Event.observe(this.oRoot.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
+             OpenLayers.Event.observe(this.oRoot.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
         } else {
             this.oRoot = this.oTree;
         }
@@ -409,8 +409,8 @@
             group.legend.checkBox.type = 'checkbox';
             group.legend.treeItem.domObj.insertBefore(group.legend.checkBox, group.legend.treeItem.domObj.childNodes[1]);
             group.legend.checkBox.checked = group.visible?true:false;
-            Event.observe(group.legend.checkBox, 'click', OpenLayers.Function.bind(this.stateChanged, this, group));
-            Event.observe(group.legend.treeItem.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
+            OpenLayers.Event.observe(group.legend.checkBox, 'click', OpenLayers.Function.bind(this.stateChanged, this, group));
+            OpenLayers.Event.observe(group.legend.treeItem.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
             var groupInfo = group.oMap.getGroupInfoUrl(group.groupName);
             if (groupInfo) {
                 var a = document.createElement('a');
@@ -442,7 +442,7 @@
         layer.legend.parentItem = folder;
         layer.legend.checkBox = document.createElement('input');
         layer.legend.checkBox.type = 'checkbox';
-        Event.observe(layer.legend.checkBox, 'click', OpenLayers.Function.bind(this.stateChanged, this, layer));
+        OpenLayers.Event.observe(layer.legend.checkBox, 'click', OpenLayers.Function.bind(this.stateChanged, this, layer));
         layer.legend.currentRange = null;
         layer.registerForEvent(Fusion.Event.LAYER_PROPERTY_CHANGED, OpenLayers.Function.bind(this.layerPropertyChanged, this));
     },
@@ -603,7 +603,7 @@
             folder.domObj.insertBefore(a, folder.domObj.childNodes[4]);
         }
         folder.addSelectionListener(this);
-        Event.observe(folder.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
+        OpenLayers.Event.observe(folder.domObj, 'mouseover', OpenLayers.Function.bind(this.setFolder, this));
        
         return folder;
     },

Modified: sandbox/jx2/widgets/Maptip.js
===================================================================
--- sandbox/jx2/widgets/Maptip.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/Maptip.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -98,8 +98,8 @@
         this.iframe.scrolling = 'no';
         this.iframe.frameborder = 0;
         
-        Event.observe(this.domObj, 'mouseover', OpenLayers.Function.bind(this.mouseOverTip, this));
-        Event.observe(this.domObj, 'mouseout', OpenLayers.Function.bind(this.mouseOutTip, this));
+         OpenLayers.Event.observe(this.domObj, 'mouseover', OpenLayers.Function.bind(this.mouseOverTip, this));
+        OpenLayers.Event.observe(this.domObj, 'mouseout', OpenLayers.Function.bind(this.mouseOutTip, this));
         
         var oDomElem =  this.getMap().getDomObj();
         document.getElementsByTagName('BODY')[0].appendChild(this.domObj);

Modified: sandbox/jx2/widgets/Measure.js
===================================================================
--- sandbox/jx2/widgets/Measure.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/Measure.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -165,7 +165,7 @@
         this.activateCanvas();
         this.initVars();
         this.triggerEvent(Fusion.Event.MEASURE_CLEAR, this);
-        Event.observe(document,"keypress",this.keyHandler);
+         OpenLayers.Event.observe(document,"keypress",this.keyHandler);
         this.loadDisplayPanel();
     },
     

Modified: sandbox/jx2/widgets/Print.js
===================================================================
--- sandbox/jx2/widgets/Print.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/Print.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -144,7 +144,7 @@
         dialog.getObj('dialogPrintShowlegend').checked = this.showLegend;
         dialog.getObj('dialogPrintShowNorthArrow').checked = this.showNorthArrow;
         
-        Event.observe(dialog.getObj('dialogPrintShowtitle'), 'click', OpenLayers.Function.bind(this.controlTitle, this));
+         OpenLayers.Event.observe(dialog.getObj('dialogPrintShowtitle'), 'click', OpenLayers.Function.bind(this.controlTitle, this));
     },
     
     controlTitle: function() {

Modified: sandbox/jx2/widgets/SelectRadiusValue.js
===================================================================
--- sandbox/jx2/widgets/SelectRadiusValue.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/SelectRadiusValue.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -66,7 +66,7 @@
         
         /* put into page */
         this.domObj.appendChild(this.domLabel);
-        Event.observe(this.input, 'blur', OpenLayers.Function.bind(this.onBlur, this));
+         OpenLayers.Event.observe(this.input, 'blur', OpenLayers.Function.bind(this.onBlur, this));
     },
     
     mapLoaded: function() {

Modified: sandbox/jx2/widgets/Zoom.js
===================================================================
--- sandbox/jx2/widgets/Zoom.js	2008-08-28 12:29:20 UTC (rev 1482)
+++ sandbox/jx2/widgets/Zoom.js	2008-08-28 12:53:24 UTC (rev 1483)
@@ -67,7 +67,7 @@
     {
         //console.log('Zoom.activateTool');
         this.getMap().activateWidget(this);
-        Event.observe(document, 'keypress', this.keypressWatcher);
+         OpenLayers.Event.observe(document, 'keypress', this.keypressWatcher);
         
     },
 



More information about the fusion-commits mailing list