incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r538233 - in /incubator/xap/trunk/samples/WebContent/examples: dataBinding/nestedIterators.xal widgets/table_tests.html
Date Tue, 15 May 2007 16:00:18 GMT
Author: mturyn
Date: Tue May 15 09:00:15 2007
New Revision: 538233

URL: http://svn.apache.org/viewvc?view=rev&rev=538233
Log:
1.) Altered nestedIterators.xal such that the columns have defined widths and the table its
own defined width.
2.) Created table_tests.html so that we can test both table.xal and nestedIterators.xal in
the same page.

Added:
    incubator/xap/trunk/samples/WebContent/examples/widgets/table_tests.html
Modified:
    incubator/xap/trunk/samples/WebContent/examples/dataBinding/nestedIterators.xal

Modified: incubator/xap/trunk/samples/WebContent/examples/dataBinding/nestedIterators.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/dataBinding/nestedIterators.xal?view=diff&rev=538233&r1=538232&r2=538233
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/dataBinding/nestedIterators.xal (original)
+++ incubator/xap/trunk/samples/WebContent/examples/dataBinding/nestedIterators.xal Tue May
15 09:00:15 2007
@@ -19,6 +19,17 @@
 
 <xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"
 	xmlns:data="http://openxal.org/core/data" xmlns:xm="http://openxal.org/core/xmodify">
+
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="../widgets/src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="../widgets/src-js/SmokeTests.js"/>
+
+	<mco:mco xmlns:mco="http://openxal.org/core/mco" id="tableMco" class="TableMco"
+		src="../widgets/src-js/TableMco.js"/>
+
 
 	<data:documentDataSource id="myDataSource" source="customers.xml"/>
 
@@ -27,24 +38,26 @@
 
 	<verticalBoxPane>
 
-		<table width="500px">
-
+		<table width="500px" tooltip="[table width=&quot;500px]">
 			<column>
-				<header text="Cust id"/>
+				<header text="Cust id" width="200px"/>
 			</column>
-
 			<column>
-				<header text="First"/>
+				<header text="First" width="200px"/>
 			</column>
-
 			<column>
-				<header text="Last"/>
+				<header text="Last" width="200px"/>
 			</column>
 
 			<column>
-				<header text="Phone"/>
+				<header text="Phone" width="200px"/>
 			</column>
-
+			<!--  row height="0px">
+				<cell text="0" height="0px"/>
+				<cell text="1" height="0px"/>
+				<cell text="2" height="0px"/>
+				<cell text="3" height="0px"/>			
+			</row -->
 			<data:iterator name="customer-iterator" dataSource="myDataSource"
 				select="/customers/customer">
 				<row>
@@ -63,6 +76,27 @@
 		</table>
 
 		<label text="{ bind(binding:customerCount) }" borderPosition="south" height="30"/>
+
+		<label width="400px" autoWrap="true"
+			text="Execute javascript with the field below. Type it in and hit 'Go.'---two CRs in a
row will also do."/>
+		<horizontalBoxPane>
+			<label comment="spacer" width="20px"/>			
+			<textArea id="codeSnippet" 
+					width="400px" height="160px" 
+					left="100px" top="100px" 
+					borderWidth="4px" borderStyle="ridge" borderColor="darkblue"
+					onKeyDown="mco:attributeSetter.evalCodeOnCR(event,codeSnippet)"
+					onDoubleClick="mco:attributeSetter.toggleSize(event,codeSnippet)"
+			>
+			</textArea>
+			<label comment="spacer" width="10px"/>
+			<button text="Go!" 
+				onCommand="mco:attributeSetter.evalCode(codeSnippet.text)"
+				width="50px"
+				height="22px"
+				borderWidth="2px" borderStyle="outset" borderColor="silver"				
+			/>
+		</horizontalBoxPane>
 
 	</verticalBoxPane>
 

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/table_tests.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/table_tests.html?view=auto&rev=538233
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/table_tests.html (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/table_tests.html Tue May 15 09:00:15
2007
@@ -0,0 +1,22 @@
+<script language="JavaScript">
+
+// Cache-buster?
+document.writeln('<frameset  rows="50%,50%">') ;
+var rand = Math.floor(Math.random()*10000) ;
+document.writeln('    <frame name="canon" src="http://localhost:8080/xap/examples/widgets/widget_loader.html;'+rand+'?xalFile=table.xal"/>')
;
+
+// Cache-buster?
+rand = Math.floor(Math.random()*10000) ;
+document.writeln(
+'	<frame name="nested" '
++ 'src="http://localhost:8080/xap/examples/dataBinding/nestedIterators.html;'+rand+'?"/>')
;
+
+
+
+
+document.writeln("</frameset") ;
+
+
+</script>
+
+<!-- /frameset -->



Mime
View raw message