incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r473446 - in /incubator/xap/trunk/WebContent/examples/widgets: AttributeTester.js verticalPanel.xal
Date Fri, 10 Nov 2006 19:39:53 GMT
Author: jmargaris
Date: Fri Nov 10 11:39:53 2006
New Revision: 473446

URL: http://svn.apache.org/viewvc?view=rev&rev=473446
Log:
sample wasn't working

Modified:
    incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js
    incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal

Modified: incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js?view=diff&rev=473446&r1=473445&r2=473446
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js Fri Nov 10 11:39:53
2006
@@ -66,7 +66,7 @@
 //no error. BEcause we still found element in hashtable?
 AttributeTester.prototype.insertBefore = function( element ){
 alert("insert before");
-	var newElement = element.getOwnerDocument().createElement("freePanel",null,"http://www.openxal.org/xal");
+	var newElement = element.getOwnerDocument().createElement("freePane","http://www.openxal.org/xal");
 	newElement.setAttribute("backgroundColor","yellow");
 	newElement.setAttribute("width","30px");
 	newElement.setAttribute("height","30px");
@@ -86,7 +86,7 @@
 
 AttributeTester.prototype.addBorderComponent = function( parent, borderPosition ){
 alert("add border component");
-	var newElement = parent.getOwnerDocument().createElement("freePanel",null,"http://www.openxal.org/xal");
+	var newElement = parent.getOwnerDocument().createElement("freePane","http://www.openxal.org/xal");
 	newElement.setAttribute("backgroundColor","yellow");
 	newElement.setAttribute("borderPosition", borderPosition);
 	newElement.setAttribute("width","30px");
@@ -98,7 +98,7 @@
 
 AttributeTester.prototype.appendListItem = function(element) {
 	alert("append");
-	var newElement = element.getOwnerDocument().createElement("listItem", null, "http://www.openxal.org/xal");
+	var newElement = element.getOwnerDocument().createElement("listItem",  "http://www.openxal.org/xal");
 	newElement.setAttribute("text", "NEW INSERT");
 	newElement.setAttribute("value","NEW VALUE");
 	newElement.setAttribute("selected", "true");

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal?view=diff&rev=473446&r1=473445&r2=473446
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal Fri Nov 10 11:39:53
2006
@@ -11,8 +11,8 @@
 
 	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
 	<xm:append select="/xal">
-	<horizontalPanel>
-		<verticalPanel>
+	<horizontalBoxPane>
+		<verticalBoxPane>
 		<!-- container tests -->
 		<xal:button width="200px" height="25px" 
 			text="pack -> end"
@@ -59,28 +59,28 @@
 			text="remove"
 			onCommand="mco:attributeSetter.remove(referenceComponent)"/>
 
-</verticalPanel>
+</verticalBoxPane>
 
 
 		
 		<!--standard test things -->
 		
-				<verticalPanel>
+				<verticalBoxPane>
 		<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
-		</verticalPanel>
-		<xal:verticalPanel width="200px" height="200px" backgroundColor="black"
+		</verticalBoxPane>
+		<xal:verticalBoxPane width="200px" height="200px" backgroundColor="black"
 			id="testComponent">
-			<xal:freePanel width="100px" height="20px" backgroundColor="red">
+			<xal:freePane width="100px" height="20px" backgroundColor="red">
 				<label text="foo" x="0" y="0" />
-			</xal:freePanel>
-			<xal:freePanel width="100px" height="20px" backgroundColor="green" id="referenceComponent">
+			</xal:freePane>
+			<xal:freePane width="100px" height="20px" backgroundColor="green" id="referenceComponent">
 				<label text="foo" x="0" y="0" />
-			</xal:freePanel>
-			<xal:freePanel width="100px" height="20px" backgroundColor="blue">
+			</xal:freePane>
+			<xal:freePane width="100px" height="20px" backgroundColor="blue">
 				<label text="foo" x="0" y="0" />
-			</xal:freePanel>
-		</xal:verticalPanel>
-</horizontalPanel>
+			</xal:freePane>
+		</xal:verticalBoxPane>
+</horizontalBoxPane>
 	</xm:append> 	  		
   	</xm:modifications>
 </xal>



Mime
View raw message