incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r439433 - /incubator/xap/trunk/WebContent/examples/widgets/
Date Fri, 01 Sep 2006 19:29:03 GMT
Author: jmargaris
Date: Fri Sep  1 12:29:02 2006
New Revision: 439433

URL: http://svn.apache.org/viewvc?rev=439433&view=rev
Log:
new widgets and examples

Added:
    incubator/xap/trunk/WebContent/examples/widgets/complexExample.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/passwordField.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/testingNotes.txt   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/textArea.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/textArea.xal   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/textField.html   (with props)
    incubator/xap/trunk/WebContent/examples/widgets/textField.xal   (with props)
Removed:
    incubator/xap/trunk/WebContent/examples/widgets/boxPanel.html
    incubator/xap/trunk/WebContent/examples/widgets/boxPanel.xal
Modified:
    incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js
    incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal
    incubator/xap/trunk/WebContent/examples/widgets/button.xal
    incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal
    incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
    incubator/xap/trunk/WebContent/examples/widgets/index.html
    incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
    incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
    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?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/AttributeTester.js Fri Sep  1 12:29:02
2006
@@ -27,3 +27,7 @@
 	element.parentNode.removeChild(element);
 	alert("New dom node = " + element.parentNode.toXml());
 }
+
+AttributeTester.prototype.printElement = function( element ){
+	alert(element.toXml());
+}

Modified: incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal Fri Sep  1 12:29:02 2006
@@ -24,7 +24,10 @@
 
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Modified: incubator/xap/trunk/WebContent/examples/widgets/button.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/button.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/button.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/button.xal Fri Sep  1 12:29:02 2006
@@ -24,9 +24,14 @@
 			onCommand="mco:attributeSetter.setAttribute(testComponent,
 				'text','some new text')"/>
 				
-		<!--standard test things -->
 		
 		
+		<!--standard test things -->
+		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Added: incubator/xap/trunk/WebContent/examples/widgets/complexExample.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/complexExample.html?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/complexExample.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/complexExample.html Fri Sep  1 12:29:02
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="complexExample.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

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

Added: incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal Fri Sep  1 12:29:02
2006
@@ -0,0 +1,34 @@
+<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:borderPanel width="100%" height="100%">
+			<dojo:freePanel width="100%" height="100px" backgroundColor="red" borderPosition="north"/>
+
+			<dojo:splitPane>
+				<dojo:freePanel backgroundColor="yellow"/>
+				<dojo:tabPane>
+					<dojo:tab text="Package Explorer"/>
+					<dojo:tab text="JUnit"/>
+				</dojo:tabPane>
+			</dojo:splitPane>
+			<dojo:freePanel width="100%" height="100px" backgroundColor="green" borderPosition="south"/>
+
+		</dojo:borderPanel >
+		
+
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

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

Modified: incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal Fri Sep  1 12:29:02 2006
@@ -22,7 +22,10 @@
 
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Modified: incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal Fri Sep  1 12:29:02
2006
@@ -72,7 +72,10 @@
 		
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Modified: incubator/xap/trunk/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/index.html?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Fri Sep  1 12:29:02 2006
@@ -3,6 +3,7 @@
 <h2>Basic Tests</h2>
 <ul>
 <li><a href="button.html">&lt;button&gt;</a></li>
+<li><a href="textField.html">&lt;textField&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="freePanel.html">&lt;freePanel&gt;</a></li>

Added: incubator/xap/trunk/WebContent/examples/widgets/passwordField.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/passwordField.html?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/passwordField.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/passwordField.html Fri Sep  1 12:29:02
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="passwordField.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

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

Added: incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal Fri Sep  1 12:29:02
2006
@@ -0,0 +1,82 @@
+<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:passwordField width="200px" text="A text field"
+		id="testComponent" onEdit="mco:attributeSetter.reportEvent(event)"
+		/>
+		
+		
+		<!-- 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="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
+
+		<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/passwordField.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal Fri Sep  1 12:29:02 2006
@@ -21,7 +21,10 @@
 
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Modified: incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal Fri Sep  1 12:29:02 2006
@@ -14,22 +14,35 @@
 	
 		<dojo:tabPane width="200px" height="100px"
 		id="testComponent" >
-			<dojo:tab text="Tab1">
+			<dojo:tab text="Tab1" id="tab1"  onSelect="mco:attributeSetter.reportEvent(event)">
 				<dojo:button text="button1"/>
 				<dojo:button text="button2"/>
 				<dojo:button text="button3"/>
 			</dojo:tab>
-			<dojo:tab text="Tab2">
+			<dojo:tab text="Tab2" id="tab2" onSelect="mco:attributeSetter.reportEvent(event)">
 				<dojo:button text="buttonA"/>
 				<dojo:button text="buttonB"/>
 				<dojo:button text="buttonC"/>
 			</dojo:tab>
 		</dojo:tabPane>
 		
+		
+		<dojo:button width="200px" height="25px" 
+			text="selected(tab1)-> 'true'"
+			onCommand="mco:attributeSetter.setAttribute(tab1,
+				'selected' ,'true')"/>
+			
+		<dojo:button width="200px" height="25px" 
+			text="selected(tab2)-> 'true'"
+			onCommand="mco:attributeSetter.setAttribute(tab2,
+				'selected' ,'true')"/>
 				
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"

Added: incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.html?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.html Fri Sep  1 12:29:02
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="tabPaneExample.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

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

Added: incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal Fri Sep  1 12:29:02
2006
@@ -0,0 +1,30 @@
+<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="400px" height="600px">
+			<dojo:tab text="Tab 1">
+				<dojo:freePanel width="100%" height="100%" backgroundColor="red"/>
+			</dojo:tab>	
+			<dojo:tab text="Tab 2">
+				<dojo:freePanel width="100%" height="100%" backgroundColor="blue"/>
+			</dojo:tab>	
+
+		</dojo:tabPane>
+		
+
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

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

Added: incubator/xap/trunk/WebContent/examples/widgets/testingNotes.txt
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/testingNotes.txt?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/testingNotes.txt (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/testingNotes.txt Fri Sep  1 12:29:02 2006
@@ -0,0 +1,35 @@
+1: Try various initial settings.
+2: Try changing settings on the fly.
+
+Events:
+1: Make sure events fire
+2: Make sure events DON'T fire because of XML, either initial or changes via MCO/
+xmodify, only because of user actions.
+3: Make sure XML DOM is always up-to-date
+
+For containers and complex components:
+
+1: Remove children on fly
+2: Append children on fly
+3: Insert children on fly
+
+
+
+
+Tab pane example:
+
+Create a tabbed pane with two inititial tabs, first one selected
+Create a tabbed pane with two inititial tabs, second one selected
+Create a tabbed pane with two inititial tabs, neither one selected
+
+Make sure onSelect fires when you click a tab.
+Make sure onSelect does not fire for initial selection or if changed via
+	mco/xmodify.
+After selecting a tab make sure selected tab has selected="true" on it
+and other tab does not.
+
+Remove a tab on the fly.
+Append a tab.
+Insert a tab before another tab.
+
+etc etc etc
\ No newline at end of file

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

Added: incubator/xap/trunk/WebContent/examples/widgets/textArea.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textArea.html?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textArea.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/textArea.html Fri Sep  1 12:29:02 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="textArea.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

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

Added: incubator/xap/trunk/WebContent/examples/widgets/textArea.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textArea.xal?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textArea.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/textArea.xal Fri Sep  1 12:29:02 2006
@@ -0,0 +1,82 @@
+<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:textArea width="200px" text="A text field"
+		id="testComponent" onEdit="mco:attributeSetter.reportEvent(event)"
+		/>
+		
+		
+		<!-- 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="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
+
+		<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/textArea.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/xap/trunk/WebContent/examples/widgets/textField.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textField.html?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textField.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/textField.html Fri Sep  1 12:29:02 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="textField.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>

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

Added: incubator/xap/trunk/WebContent/examples/widgets/textField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textField.xal?rev=439433&view=auto
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textField.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/textField.xal Fri Sep  1 12:29:02 2006
@@ -0,0 +1,82 @@
+<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:textField width="200px" text="A text field"
+		id="testComponent" onEdit="mco:attributeSetter.reportEvent(event)"
+		/>
+		
+		
+		<!-- 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="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
+
+		<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/textField.xal
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal?rev=439433&r1=439432&r2=439433&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal Fri Sep  1 12:29:02
2006
@@ -72,7 +72,10 @@
 		
 		<!--standard test things -->
 		
-		
+				
+		<dojo:button width="200px" height="25px" 
+			text="print element"
+			onCommand="mco:attributeSetter.printElement(testComponent)"/>		
 
 		<dojo:button width="200px" height="25px" 
 			text="borderWidth -> '25'"



Mime
View raw message