You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/08/29 00:19:20 UTC

svn commit: r437886 - in /incubator/xap/trunk/WebContent/examples/widgets: boxPanel.html boxPanel.xal button.xal index.html splitPane.html splitPane.xal splitPaneExample.html splitPaneExample.xal tabPane.html tabPane.xal

Author: jmargaris
Date: Mon Aug 28 17:19:19 2006
New Revision: 437886

URL: http://svn.apache.org/viewvc?rev=437886&view=rev
Log:
new widget tests

Added:
    incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/index.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/splitPane.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/tabPane.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal   (with props)
Modified:
    incubator/xap/trunk/WebContent/examples/widgets/button.xal

Added: incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html Mon Aug 28 17:19:19 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Button</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+    
+	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false
+		};
+	</script>    
+	
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+   <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+ </head>
+  
+ <body  onload="Xap.createAllPredefinedSessions();">
+	<div xapId="ButtonExample" xapSrc="boxPanel.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

Propchange: incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal Mon Aug 28 17:19:19 2006
@@ -0,0 +1,75 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
+
+
+	<mco:mco 
+		xmlns:mco="http://www.openxal.org/mco" 
+		id="attributeSetter" 
+		src="AttributeTester"
+	/>
+
+
+
+	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+	<xm:append select="/xal">
+	
+		<dojo:boxPanel width="200px" height="100px"
+		id="testComponent" orientation="horizontal">
+			<dojo:button text="Button 1"/>
+			<dojo:button text="Button 2"/>
+			<dojo:button text="Button 3"/>
+			<dojo:button text="Button 4"/>
+		</dojo:splitPane>
+		
+
+		<!--standard test things -->
+		
+		
+
+		<dojo:button width="200px" height="25px" 
+			text="borderWidth -> '25'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderWidth' ,'25')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderStyle -> 'solid'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderStyle' ,'solid')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderColor -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderColor' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="width -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'width' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="height -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'height' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontWeight -> 'bold'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontWeight' ,'bold')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="backgroundColor -> 'green'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'backgroundColor' ,'green')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="color -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'color' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontSize-> '24'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontSize' ,'24')"/>
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Propchange: incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/xap/trunk/WebContent/examples/widgets/button.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/button.xal?rev=437886&r1=437885&r2=437886&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/button.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/button.xal Mon Aug 28 17:19:19 2006
@@ -18,12 +18,15 @@
 		/>
 		
 		
-		<!--standard test things -->
-		
+		<!-- button specific properties -->
 		<dojo:button width="200px" height="25px" 
 			text="text -> 'some new text'"
 			onCommand="mco:attributeSetter.setAttribute(testComponent,
 				'text','some new text')"/>
+				
+		<!--standard test things -->
+		
+		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Added: incubator/xap/trunk/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/index.html?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Mon Aug 28 17:19:19 2006
@@ -0,0 +1,17 @@
+<body>
+
+<h2>Basic Tests</h2>
+<ul>
+<li><a href="button.html">&lt;button&gt;</a></li>
+<li><a href="tabPane.html">&lt;tabPane&gt;</a></li>
+<li><a href="splitPane.html">&lt;splitPane&gt;</a></li>
+<li><a href="boxPanel.html">&lt;boxPanel&gt;</a></li>
+</ul>
+
+<br>
+<h2>Examples</h2>
+<ul>
+<li><a href="splitPaneExample.html">&lt;splitPane&gt;</a></li>
+</ul>
+
+</body>
\ No newline at end of file

Propchange: incubator/xap/trunk/WebContent/examples/widgets/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/splitPane.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPane.html?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPane.html Mon Aug 28 17:19:19 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Button</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+    
+	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false
+		};
+	</script>    
+	
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+   <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+ </head>
+  
+ <body  onload="Xap.createAllPredefinedSessions();">
+	<div xapId="ButtonExample" xapSrc="splitPane.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

Propchange: incubator/xap/trunk/WebContent/examples/widgets/splitPane.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal Mon Aug 28 17:19:19 2006
@@ -0,0 +1,73 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
+
+
+	<mco:mco 
+		xmlns:mco="http://www.openxal.org/mco" 
+		id="attributeSetter" 
+		src="AttributeTester"
+	/>
+
+
+
+	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+	<xm:append select="/xal">
+	
+		<dojo:splitPane width="200px" height="100px"
+		id="testComponent" >
+			<dojo:button text="Left"/>
+			<dojo:button text="right"/>
+		</dojo:splitPane>
+		
+
+		<!--standard test things -->
+		
+		
+
+		<dojo:button width="200px" height="25px" 
+			text="borderWidth -> '25'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderWidth' ,'25')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderStyle -> 'solid'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderStyle' ,'solid')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderColor -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderColor' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="width -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'width' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="height -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'height' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontWeight -> 'bold'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontWeight' ,'bold')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="backgroundColor -> 'green'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'backgroundColor' ,'green')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="color -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'color' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontSize-> '24'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontSize' ,'24')"/>
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Propchange: incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html Mon Aug 28 17:19:19 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Button</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+    
+	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false
+		};
+	</script>    
+	
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+   <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+ </head>
+  
+ <body  onload="Xap.createAllPredefinedSessions();">
+	<div xapId="ButtonExample" xapSrc="splitPaneExample.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

Propchange: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal Mon Aug 28 17:19:19 2006
@@ -0,0 +1,28 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
+
+
+	<mco:mco 
+		xmlns:mco="http://www.openxal.org/mco" 
+		id="attributeSetter" 
+		src="AttributeTester"
+	/>
+
+
+
+	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+	<xm:append select="/xal">
+	
+		<dojo:splitPane width="100%" height="100%" orientation="horizontal">
+			<dojo:button text="Left"/>
+			<dojo:splitPane width="100%" height="100%" orientation="vertical">
+				<dojo:button text="Top"/>
+				<dojo:button text="Bottom"/>
+			</dojo:splitPane>	
+		</dojo:splitPane>
+		
+
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Propchange: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/tabPane.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPane.html?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPane.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPane.html Mon Aug 28 17:19:19 2006
@@ -0,0 +1,27 @@
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <title>Button</title>
+
+	<style type="text/css">
+      <!--
+          @import url(../../css/xapDefault.css);
+      -->
+    </style>
+    
+	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+	<script type="text/javascript">
+		djConfig = {
+			parseWidgets: false
+		};
+	</script>    
+	
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+   <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+    
+ </head>
+  
+ <body  onload="Xap.createAllPredefinedSessions();">
+	<div xapId="ButtonExample" xapSrc="tabPane.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

Propchange: incubator/xap/trunk/WebContent/examples/widgets/tabPane.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal?rev=437886&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal Mon Aug 28 17:19:19 2006
@@ -0,0 +1,81 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
+
+
+	<mco:mco 
+		xmlns:mco="http://www.openxal.org/mco" 
+		id="attributeSetter" 
+		src="AttributeTester"
+	/>
+
+
+
+	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
+	<xm:append select="/xal">
+	
+		<dojo:tabPane width="200px" height="100px"
+		id="testComponent" >
+			<dojo:tab text="Tab1">
+				<dojo:button text="button1"/>
+				<dojo:button text="button2"/>
+				<dojo:button text="button3"/>
+			</dojo:tab>
+			<dojo:tab text="Tab2">
+				<dojo:button text="buttonA"/>
+				<dojo:button text="buttonB"/>
+				<dojo:button text="buttonC"/>
+			</dojo:tab>
+		</dojo:tabPane>
+		
+				
+		<!--standard test things -->
+		
+		
+
+		<dojo:button width="200px" height="25px" 
+			text="borderWidth -> '25'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderWidth' ,'25')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderStyle -> 'solid'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderStyle' ,'solid')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="borderColor -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'borderColor' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="width -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'width' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="height -> '300px'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'height' ,'300px')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontWeight -> 'bold'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontWeight' ,'bold')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="backgroundColor -> 'green'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'backgroundColor' ,'green')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="color -> 'red'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'color' ,'red')"/>
+
+		<dojo:button width="200px" height="25px" 
+			text="fontSize-> '24'"
+			onCommand="mco:attributeSetter.setAttribute(testComponent,
+				'fontSize' ,'24')"/>
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Propchange: incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
------------------------------------------------------------------------------
    svn:eol-style = native