incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r442420 - in /incubator/xap/trunk/src/xap: bridges/dojo/ColumnBridge.js bridges/dojo/RowBridge.js bridges/dojo/TableBridge.js taghandling/plugin.xml widgets/dojo/TreeTable.js
Date Tue, 12 Sep 2006 02:28:31 GMT
Author: jmargaris
Date: Mon Sep 11 19:28:30 2006
New Revision: 442420

URL: http://svn.apache.org/viewvc?view=rev&rev=442420
Log:
working better with example file

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/ColumnBridge.js
    incubator/xap/trunk/src/xap/bridges/dojo/RowBridge.js
    incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js
    incubator/xap/trunk/src/xap/taghandling/plugin.xml
    incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/ColumnBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/ColumnBridge.js?view=diff&rev=442420&r1=442419&r2=442420
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/ColumnBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/ColumnBridge.js Mon Sep 11 19:28:30 2006
@@ -58,8 +58,8 @@
 	return [];
 }	
 
-xap.bridges.dojo.ColumnBridge.prototype.childAdded = function( e ) {
-	//nothing for now
+xap.bridges.dojo.ColumnBridge.prototype.addChild = function(childHandler, index){
+	this.getPeer().setHeader(childHandler.getRootDomNode());
 }
 
 

Modified: incubator/xap/trunk/src/xap/bridges/dojo/RowBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/RowBridge.js?view=diff&rev=442420&r1=442419&r2=442420
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/RowBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/RowBridge.js Mon Sep 11 19:28:30 2006
@@ -58,8 +58,8 @@
 	return [];
 }	
 
-xap.bridges.dojo.RowBridge.prototype.childAdded = function( e ) {
-	//nothing for now
+xap.bridges.dojo.RowBridge.prototype.addChild = function(childHandler, index){
+	this.getPeer().addCell(childHandler.getRootDomNode());
 }
 
 

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=442420&r1=442419&r2=442420
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/TableBridge.js Mon Sep 11 19:28:30 2006
@@ -83,7 +83,6 @@
 
 xap.bridges.dojo.TableBridge.prototype.addChild = function(childHandler, index){
 	var childPeer = childHandler.getPeer();
-	alert("Add child peer:" + childPeer);
 	if (childPeer instanceof xap.widgets.dojo.TableColumn){
 		//TODO interpret index correctly
 		this.getPeer().insertColumn(childPeer,-1);

Modified: incubator/xap/trunk/src/xap/taghandling/plugin.xml
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/taghandling/plugin.xml?view=diff&rev=442420&r1=442419&r2=442420
==============================================================================
--- incubator/xap/trunk/src/xap/taghandling/plugin.xml (original)
+++ incubator/xap/trunk/src/xap/taghandling/plugin.xml Mon Sep 11 19:28:30 2006
@@ -28,8 +28,9 @@
 		<mapping class="xap.bridges.dojo.RowBridge" name="row"/>
 		<mapping class="xap.bridges.dojo.ColumnBridge" name="column"/>
 		
-		<!-- for now cell just maps to label -->
+		<!-- for now cell just maps to label and header to button -->
 		<mapping class="xap.bridges.xap.LabelBridge" name="cell"/>
+		<mapping class="xap.bridges.xap.ButtonBridge" name="header"/>
 
 	</tag-mappings>
 

Modified: incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js?view=diff&rev=442420&r1=442419&r2=442420
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/TreeTable.js Mon Sep 11 19:28:30 2006
@@ -128,8 +128,15 @@
 	isContainer: true,
 	_header : null,
 	
+	//we need this because setting the template string to
+	//<col></col> doesn't work for whatever reason,
+	//oversight in dojo code
 	fillInTemplate: function(args, frag){
 		this.domNode = document.createElement("col");
+	},
+	
+	setHeader: function( domNode ){
+		this._header = domNode;
 	}
 });
 		
@@ -166,6 +173,6 @@
 	
 	removeCell : function( cell ){
 		this.domNode.removeChild(cell._td);
-	},
+	}
 	
 });



Mime
View raw message