incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r486016 - /incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js
Date Tue, 12 Dec 2006 04:47:22 GMT
Author: mturyn
Date: Mon Dec 11 20:47:22 2006
New Revision: 486016

URL: http://svn.apache.org/viewvc?view=rev&rev=486016
Log:
>From Rob Gagne
Dynamic sizing; child row removing

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js?view=diff&rev=486016&r1=486015&r2=486016
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js Mon Dec 11 20:47:22 2006
@@ -87,22 +87,20 @@
 }
 
 xap.bridges.dojo.TableBridge.prototype.getSelectedRowIds = function(){
-		var s = "";
-		var selectedItems = this.getPeer()._selectedItems;
-		for (var i=0; i<selectedItems.length; i++){
-			var row = selectedItems[i];
-			var handler = this.getUiContentHandler().getHandlerForPeer(row);
-			if (handler!=null){
-				if (s.length!=0){
-					s+=(',');
-				}
-				s+= handler.getElement().getAttribute("id");
+	var s = "";
+	var selectedItems = this.getPeer()._selectedItems;
+	for (var i=0; i<selectedItems.length; i++){
+		var row = selectedItems[i];
+		var handler = this.getUiContentHandler().getHandlerForPeer(row);
+		if (handler!=null){
+			if (s.length!=0){
+				s+=(',');
 			}
+			s+= handler.getElement().getAttribute("id");
 		}
-		return s;
 	}
-
-
+	return s;
+}
  
 /**
  * 
@@ -113,12 +111,17 @@
  
  
 /**
- * No new dynamic attributes
+ * Dynamic attributes
  */
 xap.bridges.dojo.TableBridge.prototype.getNewAllowedAttributes = function(){
 	return [];
 }	
 
+xap.bridges.dojo.TableBridge.prototype.setHeightAttribute = function(value){
+	this.getPeer().setHeight (value);
+}	
+
+
 xap.bridges.dojo.TableBridge.prototype.addChild = function(childHandler, index){
 	var childPeer = childHandler.getPeer();
 	if (childPeer instanceof xap.widgets.dojo.TableColumn){
@@ -130,3 +133,8 @@
 	}
 }
 
+// handler for removing childred
+xap.bridges.dojo.TableBridge.prototype.removeChild = function( childHandler ){
+	var peer = this.getPeer() ;
+	if (peer) peer.removeRow(childHandler.getPeer());
+}



Mime
View raw message