incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r486013 - /incubator/xap/trunk/WebContent/examples/widgets/table.xal
Date Tue, 12 Dec 2006 04:44:03 GMT
Author: mturyn
Date: Mon Dec 11 20:44:02 2006
New Revision: 486013

URL: http://svn.apache.org/viewvc?view=rev&rev=486013
Log:
>From Rob Gagne
Updated Xmodify test cases: remove row, remove all rows

Modified:
    incubator/xap/trunk/WebContent/examples/widgets/table.xal

Modified: incubator/xap/trunk/WebContent/examples/widgets/table.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/table.xal?view=diff&rev=486013&r1=486012&r2=486013
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/table.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/table.xal Mon Dec 11 20:44:02 2006
@@ -53,10 +53,16 @@
 	
 	<macro:macro id="removeRow" xmlns:macro="http://openxal.org/core/macro">
 		<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-			<xm:remove-element select="id('myBranch')"/>
+			<xm:remove-element select="//table/row[1]"/>
 		</xm:modifications>
 	</macro:macro>
 	
+	<macro:macro id="removeAllRows" xmlns:macro="http://openxal.org/core/macro">
+		<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+			<xm:remove-element select="//row"/> 
+		</xm:modifications>
+	</macro:macro>
+
 	<macro:macro id="removeBranch" xmlns:macro="http://openxal.org/core/macro">
 		<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
 			<xm:remove-element select="id('myBranch')"/>
@@ -130,6 +136,9 @@
 		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Row" 
 			onCommand="macro:removeRow.execute()" />
 		
+		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove All Rows" 
+			onCommand="macro:removeAllRows.execute()" />
+
 		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Branch" 
 			onCommand="macro:removeBranch.execute()" />
 



Mime
View raw message