incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sb...@apache.org
Subject svn commit: r500296 [2/5] - in /incubator/xap/trunk/samples/WebContent/examples: ./ basic/ dataBinding/ demo/ demo/images/ dojo/ helloWorld/ html-xmodify/ urlResolution/ urlResolution/images/ urlResolution/xmodify/ widgets/ widgets/images/ widgets/incl...
Date Fri, 26 Jan 2007 18:22:21 GMT
Added: incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/html-xmodify/index.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,391 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"
+	xmlns:mco="http://openxal.org/core/mco" xmlns:macro="http://openxal.org/core/macro"
+	xmlns:xm="http://openxal.org/core/xmodify">
+
+
+	<mco xmlns="http://openxal.org/core/mco" id="XmodifyMCO" class="XmodifyMCO" src="xmodify.js"/>
+
+
+	<!--
+        Macro will change the text of all input fields in the browser to Yeppie!
+    -->
+	<macro:macro id="changeInputValues">
+		<xm:modifications document="html">
+			<xm:set-attribute select="//INPUT[@type='text']">
+				<xm:attribute name="value" value="Yeppie!"/>
+			</xm:set-attribute>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Disables all text input fields in the application
+    -->
+	<macro:macro id="disableInputText">
+		<xm:modifications document="html">
+			<xm:set-attribute select="//INPUT[@type='text']">
+				<xm:attribute name="disabled" value="true"/>
+			</xm:set-attribute>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Enable all text input fields in the application
+    -->
+	<macro:macro id="enableInputText">
+		<xm:modifications document="html">
+			<xm:set-attribute select="//INPUT[@type='text']">
+				<xm:attribute name="disabled" value="false"/>
+			</xm:set-attribute>
+			<xm:remove-attribute select="//INPUT[@type='text']">
+				<xm:attribute name="disabed"/>
+			</xm:remove-attribute>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Macro will remove all the input text and password fields.
+    -->
+	<macro:macro id="removeAllInputFields">
+		<xm:modifications document="html">
+			<xm:remove-element select="//INPUT[@type='text']"/>
+			<xm:remove-element select="//INPUT[@type='password']"/>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Macro will change the text of all input fields in the browser to Yeppie!
+    -->
+	<macro:macro id="clearTable">
+		<xm:modifications document="html">
+			<xm:remove-element select="//TR[@type='data']"/>
+		</xm:modifications>
+	</macro:macro>
+
+	<macro:macro id="fillTable">
+		<xm:modifications document="html">
+			<xm:append select="//TABLE[@id='myTable']/TBODY">
+				<tr type="data">
+					<td>10</td>
+					<td>Robert</td>
+					<td>bbuffone@acme.com</td>
+					<td>555 Boston Road Boston, MA</td>
+					<td>555-555-5555</td>
+					<td>20</td>
+				</tr>
+				<tr type="data">
+					<td>19</td>
+					<td>Robert</td>
+					<td>bbuffone@acme.com</td>
+					<td>555 Boston Road Boston, MA</td>
+					<td>555-555-5555</td>
+					<td>20</td>
+				</tr>
+				<tr type="data">
+					<td>18</td>
+					<td>Robert</td>
+					<td>bbuffone@acme.com</td>
+					<td>555 Boston Road Boston, MA</td>
+					<td>555-555-5555</td>
+					<td>20</td>
+				</tr>
+			</xm:append>
+		</xm:modifications>
+	</macro:macro>
+
+	<macro:macro id="insertBefore">
+		<xm:modifications document="html">
+			<xm:insert-before select="//TR[@type='insertRow']">
+				<tr type="data">
+					<td colspan="6">This row was inserted using the insert before modification
+						statement</td>
+				</tr>
+			</xm:insert-before>
+		</xm:modifications>
+	</macro:macro>
+
+	<macro:macro id="insertAfter">
+		<xm:modifications document="html">
+			<xm:insert-after select="//TR[@type='insertRow']">
+				<tr type="data">
+					<td colspan="6">This row was inserted using the insert after modification
+						statement </td>
+				</tr>
+			</xm:insert-after>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Macros handles the mouse overs for all controls. 
+    -->
+	<macro:macro id="onmouseoverdisable">
+		<xm:modifications document="html">
+			<xm:replace select="id('mouseInArea')">
+				<div style="height:100%;width:100%;background-color:#ff0000" id="mouseOverArea2">
+					<![CDATA[
+                    This button will disable all the fields.
+                    ]]>
+				</div>
+			</xm:replace>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Macro will change the text of all input fields in the browser to Yeppie!
+    -->
+	<macro:macro id="onmouseout">
+		<xm:modifications document="html">
+			<xm:replace select="id('mouseOverArea')">
+				<div style="height:100%;width:100%;background-color:#ff0000" id="mouseInArea"> Mouse
+					over a button to see the macro call. </div>
+			</xm:replace>
+		</xm:modifications>
+	</macro:macro>
+
+	<!--
+        Using percentages in a splitter will not work well in IE, it is better to use a
+        pixel value for splitPosition.
+    -->
+	<label width="0px" height="0px" onCreate="mco:XmodifyMCO.onInit(event)"/>
+			<xal:htmlView width="100%" height="100%">
+				<div style="valign:top; background-color: #FFFFFF; width: 100%; height: 100%">
+					<table height="100%" style="width:100%">
+						<tr>
+							<td valign="top" width="50%">
+								<table cellPadding="10" cellSpacing="10" height="100%" width="100%">
+									<tr>
+										<td class="surroundCell">
+											<table height="100%" width="100%">
+												<tr height="28px">
+												<td colspan="2">
+												<h1>Embedded HTML:</h1>
+												<hr/>
+												</td>
+												</tr>
+												<tr height="20px">
+												<td>
+												<table width="100%">
+												<tr>
+												<td class="fieldName" height="20px"
+												width="100px">Email</td>
+												<td height="20px">
+												<input
+												style="width:100%; height:20px"
+												type="text" id="username"/>
+												</td>
+												</tr>
+												<tr height="20px">
+												<td class="fieldName" width="100px"
+												>Password</td>
+												<td height="20px">
+												<input
+												style="width:100%; height:20px"
+												type="password"
+												id="password"/>
+												</td>
+												</tr>
+												<tr height="20px">
+												<td class="fieldName" width="100px"
+												>Password Confirm</td>
+												<td height="20px">
+												<input
+												style="width:100%; height:20px"
+												type="password"
+												id="passwordConfirm"/>
+												</td>
+												</tr>
+												<tr height="20px">
+												<td class="fieldName" width="100px"
+												>First name</td>
+												<td height="20px">
+												<input
+												style="width:100%; height:20px"
+												type="text" id="firstName"/>
+												</td>
+												</tr>
+												<tr height="20px">
+												<td class="fieldName" width="100px"
+												>Last name</td>
+												<td height="20px">
+												<input
+												style="width:100%; height:20px"
+												type="text" id="lastName"/>
+												</td>
+												</tr>
+												</table>
+												</td>
+												</tr>
+											</table>
+										</td>
+									</tr>
+								</table>
+							</td>
+							<td valign="top" width="50%">
+								<table cellPadding="10" cellSpacing="10" height="100%" width="100%">
+									<tr>
+										<td class="surroundCell">
+											<table height="100%" width="100%">
+												<tr height="28px">
+												<td colspan="2">
+												<h1>HTML Macros:</h1>
+												<hr/>
+												</td>
+												</tr>
+												<tr>
+												<td valign="top">
+												<table>
+												<tr>
+												<td>
+												<input type="submit"
+												value="Change Input Fields"
+												onclick="XmodifyMCOObj.executeMacro('changeInputValues')"
+												/>
+												</td>
+												<td width="60%" rowspan="4"
+												valign="top">
+												<div
+												style="height:100%;width:100%"
+												id="mouseOverArea">Mouse
+												over the &quot;Disable
+												Input Fields&quot;
+												button to see the macro
+												call.</div>
+												</td>
+												</tr>
+												<tr>
+												<td>
+												<input type="submit"
+												value="Disable Input Fields"
+												onclick="XmodifyMCOObj.executeMacro('disableInputText')"
+												onmouseout="XmodifyMCOObj.executeMacro('onmouseout')"
+												onmouseover="XmodifyMCOObj.executeMacro('onmouseoverdisable')"
+												/>
+												</td>
+												</tr>
+												<tr>
+												<td>
+												<input type="submit"
+												value="Enable Input Fields"
+												onclick="XmodifyMCOObj.executeMacro('enableInputText');alert('Can\'t re-enable fields becuase need to set property not attribute')"
+												/>
+												</td>
+												</tr>
+												<tr>
+												<td>
+												<input type="submit"
+												value="Delete Input Fields"
+												onclick="XmodifyMCOObj.executeMacro('removeAllInputFields')"
+												/>
+												</td>
+												</tr>
+												</table>
+												</td>
+												</tr>
+											</table>
+										</td>
+									</tr>
+								</table>
+							</td>
+						</tr>
+						<tr height="50%">
+							<td colspan="2">
+								<table cellPadding="10" cellSpacing="10" height="100%" width="100%">
+									<tr>
+										<td class="surroundCell">
+											<table height="100%" width="100%">
+												<tr height="28px">
+												<td colspan="2">
+												<h1>HTML table paging using Macros and
+												xModify:</h1>
+												<hr/>
+												</td>
+												</tr>
+												<tr>
+												<td valign="top">
+												<table width="100%" height="100%"
+												id="myTable">
+												<tr>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Customer ID</th>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Name</th>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Email</th>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Address</th>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Phone Number</th>
+												<th
+												style="border-bottom: 1px solid #000000"
+												>Pending Orders</th>
+												</tr>
+												<tr type="insertRow">
+												<td colspan="2">This row will is the
+												index for insert before and
+												after macros.</td>
+												</tr>
+												<tr type="data">
+												<td>1</td>
+												<td>Robert</td>
+												<td>bbuffone@acme.com</td>
+												<td>555 Boston Road Boston, MA</td>
+												<td>555-555-5555</td>
+												<td>20</td>
+												</tr>
+												<tr type="data">
+												<td>1</td>
+												<td>Robert</td>
+												<td>bbuffone@acme.com</td>
+												<td>555 Boston Road Boston, MA</td>
+												<td>555-555-5555</td>
+												<td>20</td>
+												</tr>
+												<tr type="data">
+												<td>1</td>
+												<td>Robert</td>
+												<td>bbuffone@acme.com</td>
+												<td>555 Boston Road Boston, MA</td>
+												<td>555-555-5555</td>
+												<td>20</td>
+												</tr>
+												<tr type="data">
+												<td>1</td>
+												<td>Robert</td>
+												<td>bbuffone@acme.com</td>
+												<td>555 Boston Road Boston, MA</td>
+												<td>555-555-5555</td>
+												<td>20</td>
+												</tr>
+												<tr height="95%">
+												<td colspan="6"
+												style="border-top:1px solid #000000"
+												/>
+												</tr>
+												</table>
+												</td>
+												<td width="30%" valign="top" align="right">
+												<input type="submit" value="Clear Table"
+												onclick="XmodifyMCOObj.executeMacro('clearTable')"/>
+												<input type="submit" value="Fill Table"
+												onclick="XmodifyMCOObj.executeMacro('fillTable')"/>
+												<input type="submit" value="Insert Before"
+												onclick="XmodifyMCOObj.executeMacro('insertBefore')"/>
+												<input type="submit" value="Insert After"
+												onclick="XmodifyMCOObj.executeMacro('insertAfter')"
+												/>
+												</td>
+												</tr>
+											</table>
+										</td>
+									</tr>
+								</table>
+							</td>
+						</tr>
+					</table>
+				</div>
+			</xal:htmlView>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/html-xmodify/xmodify.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/html-xmodify/xmodify.js?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/html-xmodify/xmodify.js (added)
+++ incubator/xap/trunk/samples/WebContent/examples/html-xmodify/xmodify.js Fri Jan 26 10:22:14 2007
@@ -0,0 +1,13 @@
+XmodifyMCO = function(){XmodifyMCOObj = this;}
+
+var XmodifyMCOObj;
+
+XmodifyMCO.prototype.onInit = function(event){
+	this._session = event.session;
+}
+
+XmodifyMCO.prototype.executeMacro = function(macro){
+    var mc = this._session.getMacroContainer();
+    var m = mc.get(macro);
+    m.execute();
+}
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/background.JPG
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/background.JPG?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/background.JPG
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/foreground.JPG
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/foreground.JPG?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/urlResolution/images/foreground.JPG
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.html?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.html (added)
+++ incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.html Fri Jan 26 10:22:14 2007
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
+		"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+	    <title>Simple XAP Widget Example</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>
+	</head>
+	  
+	<body onload="Xap.createEmbeddedApplications();">
+		<div startPage="label.xal"></div>
+	</body>
+</html>
+

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/urlResolution/label.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,15 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<verticalBoxPane id="panel">
+			<label richText="true" width="400px" text="When you press the button,
+				you should see the label change images and also a new label with
+				the same changed image, along with another button to re-call that same page"/>
+			<label id="testComponent" width="400px" height="100px" horizontalAlignment="center" verticalAlignment="top" 
+				text="MY PRECIOUS LABEL" image="images/foreground.JPG"/>
+				
+			<button text="Press this first" onCommand="xmodify/xmodify.xm"/>
+			</verticalBoxPane>
+		</xm:append>
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify.xm
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify.xm?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify.xm (added)
+++ incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify.xm Fri Jan 26 10:22:14 2007
@@ -0,0 +1,14 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="id('panel')">
+			<label image="../images/background.JPG" />
+			<button text="Press this second" onCommand="xmodify2.xm"/>
+		</xm:append>
+  	</xm:modifications>
+  	
+  	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:set-attribute select="id('testComponent')">			
+			<attribute name="image" value="../images/background.JPG"/>
+		</xm:set-attribute>   	
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify2.xm
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify2.xm?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify2.xm (added)
+++ incubator/xap/trunk/samples/WebContent/examples/urlResolution/xmodify/xmodify2.xm Fri Jan 26 10:22:14 2007
@@ -0,0 +1,14 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="id('panel')">
+			<label image="../images/foreground.JPG" />
+			<button text="Press to call xmodify statement" onCommand="xmodify.xm"/>
+		</xm:append>
+  	</xm:modifications>
+  	
+  	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:set-attribute select="id('testComponent')">			
+			<attribute name="image" value="../images/foreground.JPG"/>
+		</xm:set-attribute>   	
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/borderPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/borderPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/borderPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/borderPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,126 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests" src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+				id="testComponentFreePane">
+				<xal:borderPane id="testComponent" width="300px" height="300px">
+					<xal:freePane backgroundColor="red" width="20px" height="20px" id="north"
+						borderPosition="north" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="foo" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane backgroundColor="green" width="20px" height="20px" id="south"
+						borderPosition="south" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="foo" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane backgroundColor="blue" width="20px" height="20px" id="east"
+						borderPosition="east" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="foo" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane backgroundColor="yellow" width="20px" height="20px" id="west"
+						borderPosition="west" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="foo" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane backgroundColor="orange" width="20px" height="20px" id="center"
+						borderPosition="center" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="foo" x="0" y="0"/>
+					</xal:freePane>
+				</xal:borderPane>
+			</freePane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label fontStyle="italic" autoWrap="true"
+								text="Note: Due to a bug, the height for this component has been pre-set in this component test. It can be changed without a problem, but its current displayed height is not its default"/>
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<horizontalBoxPane width="500px">
+								<label width="100px" text="gapHorizontal:"/>
+								<radioButton group="gapHorizontal" width="75px" text="0px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapHorizontal" width="75px" text="2px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapHorizontal" width="75px" text="6px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapHorizontal" width="75px" text="(none)"
+									onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"
+								/>
+							</horizontalBoxPane>
+							<horizontalBoxPane width="500px">
+								<label width="100px" text="gapVertical:"/>
+								<radioButton group="gapVertical" width="75px" text="0px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapVertical" width="75px" text="2px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapVertical" width="75px" text="6px"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="gapVertical" width="75px" text="(none)"
+									onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"
+								/>
+							</horizontalBoxPane>
+							<horizontalBoxPane width="500px">
+								<label width="100px" text="orientation:"/>
+								<radioButton group="orientation" width="75px" text="horizontal"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="orientation" width="75px" text="vertical"
+									onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="orientation" width="75px" text="(none)"
+									onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"
+								/>
+							</horizontalBoxPane>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal" xmlns="http://openxal.org/core/xinclude"
+						/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<xal:button width="200px" height="25px" text="remove north"
+								onCommand="mco:attributeSetter.remove(north)"/>
+
+							<xal:button width="200px" height="25px" text="remove south"
+								onCommand="mco:attributeSetter.remove(south)"/>
+
+							<xal:button width="200px" height="25px" text="remove east"
+								onCommand="mco:attributeSetter.remove(east)"/>
+
+							<xal:button width="200px" height="25px" text="remove west"
+								onCommand="mco:attributeSetter.remove(west)"/>
+
+							<xal:button width="200px" height="25px" text="remove center"
+								onCommand="mco:attributeSetter.remove(center)"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text=" " fontWeight="bold"/>
+							<xal:button width="200px" height="25px" text="add north"
+								onCommand="mco:attributeSetter.addBorderComponent(testComponent, 'north')"/>
+
+							<xal:button width="200px" height="25px" text="add south"
+								onCommand="mco:attributeSetter.addBorderComponent(testComponent, 'south')"/>
+
+							<xal:button width="200px" height="25px" text="add east"
+								onCommand="mco:attributeSetter.addBorderComponent(testComponent, 'east')"/>
+
+							<xal:button width="200px" height="25px" text="add west"
+								onCommand="mco:attributeSetter.addBorderComponent(testComponent, 'west')"/>
+
+							<xal:button width="200px" height="25px" text="add center"
+								onCommand="mco:attributeSetter.addBorderComponent(testComponent, 'center')"
+							/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/button.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/button.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/button.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/button.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,69 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests" src="src-js/SmokeTests.js"/>
+
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+				id="testComponentFreePane">
+				<button id="testComponent" text="Belly Button"/>
+				<button id="smokeTestCompareButton" x="0px" y="100px" visible="false"
+					text="Belly Button" onCommand="mco:attributeSetter.reportEvent(event)" onCreate="mco:attributeSetter.registerElement(this)"/>
+			</freePane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<include href="includes/textAttributeTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="includes/imageAttributeTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="includes/formElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="50px"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal" xmlns="http://openxal.org/core/xinclude"
+						/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button text="Autowrapped Long text with image"
+								onCommand="mco:SmokeTests.buttonLongTextWithImage(testComponent, smokeTestCompareButton)"/>
+							<label text="The text should all be to the left of the image."/>
+							<button text="Changer"
+								onCommand="mco:SmokeTests.buttonImageResizing(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Changes the button around. It should always return to its original state and resemble the bottom button in the end. Things changed: image size, border size, text alignment, image alignment, font size"
+							/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text=" " fontWeight="bold"/>
+							<button text="TextPlacement"
+								onCommand="mco:SmokeTests.textPlacement(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Sets horizontalTextToImagePlacement to left, verticalTextToImagePlacement to bottom, so the text should be to the bottom left of the image"/>
+							<button text="images"
+								onCommand="mco:SmokeTests.images(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Sets images for the button for background, foreground, disabled, mouseover, mousedown"
+							/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/cell.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/cell.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/cell.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/cell.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,194 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+
+    <mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+        src="src-js/AttributeTester.js"/>
+
+    <mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+        src="src-js/SmokeTests.js"/>
+
+    <mco:mco xmlns:mco="http://openxal.org/core/mco" id="tableMco" class="TableMco"
+        src="src-js/TableMco.js"/>
+
+    <macro:macro id="addColumn" xmlns:macro="http://openxal.org/core/macro">
+        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+            <xm:insert-after select="id('column3')">
+                <column>
+                    <header text="Column 4"/>
+                </column>
+            </xm:insert-after>
+            <xm:append select="id('row1')">
+                <cell text="New Cell"/>
+            </xm:append>
+            <xm:append select="id('myRow')">
+                <cell text="New Cell"/>
+            </xm:append>
+            <xm:append select="id('row3')">
+                <cell text="New Cell"/>
+            </xm:append>
+        </xm:modifications>
+    </macro:macro>
+
+    <macro:macro id="intoBranch" xmlns:macro="http://openxal.org/core/macro">
+        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+            <xm:append select="id('myBranch')">
+                <row>
+                    <cell text="New Cell 1"/>
+                    <cell text="New Cell 2"/>
+                    <cell text="New Cell 3"/>
+                </row>
+            </xm:append>
+        </xm:modifications>
+    </macro:macro>
+
+    <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('myRow')"/>
+        </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')"/>
+        </xm:modifications>
+    </macro:macro>
+
+    <macro:macro id="removeAllBranches" xmlns:macro="http://openxal.org/core/macro">
+        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+            <xm:remove-element select="//row/row"/>
+        </xm:modifications>
+    </macro:macro>
+
+
+    <macro:macro id="branch" xmlns:macro="http://openxal.org/core/macro">
+        <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+            <xm:append select="id('testComponent')">
+                <row>
+                    <cell text="New Cell 1"/>
+                    <cell text="New Cell 2"/>
+                    <cell text="New Cell 3"/>
+                    <row>
+                        <cell text="depth 3 a"/>
+                        <cell text="depth 3 b"/>
+                        <cell text="depth 3 c"/>
+                    </row>
+                    <row>
+                        <cell text="depth 3 a"/>
+                        <cell text="depth 3 b"/>
+                        <cell text="depth 3 c"/>
+                        <row>
+                            <cell text="depth 4 a"/>
+                            <cell text="depth 4 b"/>
+                            <cell text="depth 4 c"/>
+                        </row>
+                        <row>
+                            <cell text="depth 4 a"/>
+                            <cell text="depth 4 b"/>
+                            <cell text="depth 4 c"/>
+                        </row>
+                        <row>
+                            <cell text="depth 4 a"/>
+                            <cell text="depth 4 b"/>
+                            <cell text="depth 4 c"/>
+                            <row>
+                                <cell text="depth 5 a"/>
+                                <cell text="depth 5 b"/>
+                                <cell text="depth 5 c"/>
+                                <row>
+                                    <cell text="depth 6 a"/>
+                                    <cell text="depth 6 b"/>
+                                    <cell text="depth 6 c"/>
+                                    <row>
+                                        <cell text="depth 7 a"/>
+                                        <cell text="depth 7 b"/>
+                                        <cell text="depth 7 c"/>
+                                        <row>
+                                            <cell text="depth 8 a"/>
+                                            <cell text="depth 8 b"/>
+                                            <cell text="depth 8 c"/>
+                                        </row>
+                                    </row>
+                                </row>
+                            </row>
+                        </row>
+
+                    </row>
+                </row>
+            </xm:append>
+        </xm:modifications>
+    </macro:macro>
+
+    <xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+        <xm:append select="/ui">
+            <horizontalBoxPane>
+                <freePane width="500px" height="300px" backgroundColor="#EEEEFF"
+                    id="testComponentFreePane">
+                    <table>
+                        <column id="column1">
+                            <header text="Column 1"/>
+                        </column>
+                        <column>
+                            <header text="Column 2"/>
+                        </column>
+                        <column id="column3">
+                            <header text="Column 3"/>
+                        </column>
+                        <row id="row1">
+                            <cell text="testComponent" id="testComponent"/>
+                            <cell text="b"/>
+                            <cell text="c"/>
+                            <row id="myBranch">
+                                <cell text="depth 2 a"/>
+                                <cell text="depth 2 b"/>
+                                <cell text="depth 2 c"/>
+                                <row>
+                                    <cell text="depth 3 a"/>
+                                    <cell text="depth 3 b"/>
+                                    <cell text="depth 3 c"/>
+                                </row>
+                            </row>
+                        </row>
+                        <row id="myRow">
+                            <cell text="x"/>
+                            <cell text="y"/>
+                            <cell text="z"/>
+                        </row>
+                        <row id="row3">
+                            <cell text="aaaaaaaaaaaaaaaaaa"/>
+                            <cell text="bbbbbb"/>
+                            <cell text="ccccc"/>
+                        </row>
+                    </table>
+                </freePane>
+            </horizontalBoxPane>
+            <scrollPane width="1100px" height="500px"
+                onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+                <verticalBoxPane>
+                    <horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+                        <verticalBoxPane width="500px">
+                            <label height="25px" text="Specific tests:" fontWeight="bold"/>
+                            <include href="includes/textAttributeTests.xal"
+                                xmlns="http://openxal.org/core/xinclude"/>
+                            <label text=" " height="25px"/>
+                        </verticalBoxPane>
+                        <!--standard test things -->
+                        <include href="includes/standardButtons.xal"
+                            xmlns="http://openxal.org/core/xinclude"/>
+                    </horizontalBoxPane>
+                    <horizontalBoxPane>
+                        <label height="25px" text="Smoke tests:" fontWeight="bold"/>
+                        <include href="includes/attributeAutoTest.xal"
+                            xmlns="http://openxal.org/core/xinclude"/>
+                    </horizontalBoxPane>
+                </verticalBoxPane>
+            </scrollPane>
+        </xm:append>
+    </xm:modifications>
+
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/checkBox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/checkBox.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/checkBox.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/checkBox.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,91 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="200px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<checkBox id="testComponent" text="My Checkbox"/>
+				</freePane>
+				<freePane width="500px" height="200px" backgroundColor="#CCCCCC"
+					id="testComponentFreePane2">
+					<checkBox id="testComponent2" x="0px" y="0px" width="200px" height="30px"
+						text="Checkbox 1 group 1" group="group1"
+						onStateChange="mco:attributeSetter.reportEvent(event)"
+						onSelect="mco:attributeSetter.reportEvent(event)"
+						onCreate="mco:attributeSetter.registerElement(this)"/>
+					<checkBox id="testComponent3" x="0px" y="30px" width="200px" height="30px"
+						text="Checkbox 2 group 1" group="group1"
+						onStateChange="mco:attributeSetter.reportEvent(event)"
+						onSelect="mco:attributeSetter.reportEvent(event)"
+						onCreate="mco:attributeSetter.registerElement(this)"/>
+					<checkBox id="testComponent4" x="0px" y="60px" width="200px" height="30px"
+						text="Checkbox 3 group 1" group="group1"
+						onStateChange="mco:attributeSetter.reportEvent(event)"
+						onSelect="mco:attributeSetter.reportEvent(event)"
+						onCreate="mco:attributeSetter.registerElement(this)"/>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<include href="includes/textAttributeTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="includes/imageAttributeTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<include href="includes/toggledFormElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<include href="includes/formElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="50px"/>
+
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button text="Autowrapped Long text with image"
+								onCommand="mco:SmokeTests.buttonLongTextWithImage(testComponent, smokeTestCompareButton)"/>
+							<label text="The text should all be to the left of the image."/>
+							<button text="Changer"
+								onCommand="mco:SmokeTests.buttonImageResizing(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Changes the component around. It should always return to its original state and resemble the bottom button in the end. Things changed: image size, border size, text alignment, image alignment, font size"/>
+							<button width="200px" height="25px"
+								text="Print Dark Grey Right-Hand Frame XAL"
+								onCommand="mco:attributeSetter.printElement(testComponentFreePane2)"
+							/>
+						</verticalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text=" " fontWeight="bold"/>
+							<button text="TextPlacement"
+								onCommand="mco:SmokeTests.textPlacement(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Sets horizontalTextToImagePlacement to left, verticalTextToImagePlacement to bottom, so the text should be to the bottom left of the image"/>
+							<button text="images"
+								onCommand="mco:SmokeTests.images(testComponent, smokeTestCompareButton)"/>
+							<label autoWrap="true" width="500px"
+								text="Sets images for the label for background, foreground"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/combobox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/combobox.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/combobox.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/combobox.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,77 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+	<macro:macro id="insertNode" xmlns:macro="http://openxal.org/core/macro">
+		<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+			<xm:insert-before select="id('testOption2')">
+				<listItem text="Option 1.5" value="Value 1.5"/>
+			</xm:insert-before>
+		</xm:modifications>
+	</macro:macro>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="200px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<comboBox id="testComponent">
+						<listBox id="testComponentListBox"
+							onCreate="mco:attributeSetter.registerElement(this)">
+							<listItem text="Option 1" value="Value 1"/>
+							<listItem id="testOption2" text="Option 2" value="Value 2"
+								onCreate="mco:attributeSetter.registerElement(this)"/>
+							<listItem text="Option 3" value="Value 3"/>
+							<listItem text="Option 4" value="Value 4"/>
+						</listBox>
+					</comboBox>
+				</freePane>
+				<freePane width="500px" height="200px" backgroundColor="#CCCCCC">
+					<comboBox height="25px" text="ComboBox" width="200px">
+						<listBox>
+							<listItem text="listItem #1"/>
+							<listItem text="listItem (selected)" selected="true"/>
+							<listItem text="listItem #3"/>
+						</listBox>
+					</comboBox>
+
+
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="50%">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+
+							<include href="includes/formElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="50px"/>
+
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<include href="includes/listItemSmokeTests0.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<!-- separated so they can be in different columns -->
+						<include href="includes/listItemSmokeTests1.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/desktopPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/desktopPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/desktopPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/desktopPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,100 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+		
+		
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+
+			<xal:desktopPane width="100%" height="100%" id="testComponent">
+				<xal:window title="No min,max,close or resize" x="200px" resizable="false"
+					minimizable="false" maximizable="false" closable="false"/>
+				<xal:window title="A window" onClose="mco:attributeSetter.reportEvent(event)"
+					onMinimize="mco:attributeSetter.reportEvent(event)"
+					onMaximize="mco:attributeSetter.reportEvent(event)"
+					onMinimizing="mco:attributeSetter.reportEvent(event)"
+					onMaximizing="mco:attributeSetter.reportEvent(event)"
+					onClosing="mco:attributeSetter.reportEvent(event)"
+					onRestore="mco:attributeSetter.reportEvent(event)"
+					onRestoring="mco:attributeSetter.reportEvent(event)">
+					<xal:borderPane backgroundColor="green">
+						<xal:menuBar borderPosition="north">
+							<xal:menuBarItem text="Edit">
+								<xal:menu>
+									<xal:menuItem text="Cut"
+										onCommand="mco:attributeSetter.reportEvent(event)"/>
+									<xal:menuItem text="Copy"/>
+									<xal:horizontalSeparator/>
+									<xal:menuItem text="Paste"/>
+								</xal:menu>
+							</xal:menuBarItem>
+
+							<xal:menuBarItem text="File">
+								<xal:menu>
+									<xal:menuItem text="Open"/>
+									<xal:menuItem text="Close"/>
+									<xal:menuItem text="Preferences.">
+										<xal:menu>
+											<xal:menuItem text="A preference"/>
+											<xal:menuItem text="A different preference"/>
+										</xal:menu>
+									</xal:menuItem>
+								</xal:menu>
+							</xal:menuBarItem>
+
+							<xal:menuBarItem text="Format">
+								<xal:menu>
+									<xal:menuItem text="Cut"/>
+									<xal:menuItem text="Copy"/>
+									<xal:menuItem text="Paste"/>
+								</xal:menu>
+							</xal:menuBarItem>
+
+							<xal:menuBarItem text="Run">
+								<xal:menu>
+									<xal:menuItem text="Open"/>
+									<xal:menuItem text="Close"/>
+									<xal:menuItem text="Preferences..."/>
+								</xal:menu>
+							</xal:menuBarItem>
+
+						</xal:menuBar>
+
+						<xal:verticalBoxPane borderPosition="center">
+							<xal:button text="Button 1"/>
+							<xal:button text="Button 2"/>
+						</xal:verticalBoxPane>
+					</xal:borderPane>
+
+				</xal:window>
+
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+
+			</xal:desktopPane>
+
+
+
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/editableCombobox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/editableCombobox.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/editableCombobox.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/editableCombobox.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,68 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" id="testComponentFreePane"
+					backgroundColor="#F0F0F0">
+					<editableComboBox id="testComponent">
+						<listBox id="testComponentListBox"
+							onCreate="mco:attributeSetter.registerElement(this)">
+							<listItem text="ba: Option 1" value="Value 1" id="optionItem1"/>
+							<listItem text="aa: Option 2" id="optionItem2" value="Value 2"
+								onCreate="mco:attributeSetter.registerElement(this)"/>
+							<listItem text="ab: Option 3" value="Value 3" id="optionItem3"/>
+							<listItem text="bb: Option 4" value="Value 4" id="optionItem4"/>
+						</listBox>
+					</editableComboBox>
+				</freePane>
+				<freePane width="500px" height="300px" backgroundColor="#CCCCCC">
+					<editableComboBox id="testComponent2" selectionMode="singleRow" height="100px"
+						backgroundColor="white">
+						<listBox id="testComponentListBox2" selectionMode="singleRow"
+							color="#ccccff" width="300px" fontWeight="bold" fontSize="24px"
+							onCreate="mco:attributeSetter.registerElement(this)">
+							<listItem text="Option 1" value="Value 1"/>
+							<listItem text="Option 2" value="Value 2"/>
+							<listItem text="Option 3" value="Value 3" selected="true"/>
+						</listBox>
+					</editableComboBox>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane width="500px">
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<include href="includes/formElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="includes/editableFieldTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<include href="includes/listItemSmokeTests0.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<include href="includes/listItemSmokeTests1.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/freePane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/freePane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/freePane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/freePane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,61 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<xal:freePane id="testComponent" width="300px" height="200px">
+						<label text="x and y not set"/>
+						<button text="x = 100, y not set" x="100px"/>
+						<checkBox text="y 100, x not set" y="100px"/>
+					</xal:freePane>
+				</freePane>
+				<freePane width="500px" height="300px" backgroundColor="#CCCCCC">
+					<xal:freePane width="200px" height="200px" backgroundColor="black"
+						id="testComponent2" orientation="horizontal">
+						<xal:freePane width="100px" height="100px" backgroundColor="red">
+							<label text="panel 1"/>
+						</xal:freePane>
+						<xal:freePane width="100px" height="100px" x="100px" backgroundColor="green">
+							<button text="my Button"/>
+						</xal:freePane>
+						<xal:freePane y="100px" height="50%" width="100%" backgroundColor="blue">
+							<checkBox text="my Checkbox"/>
+						</xal:freePane>
+					</xal:freePane>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label fontStyle="italic" autoWrap="true"
+								text="Note: Due to a bug, the height for this component has been pre-set in this component test. It can be changed without a problem, but its current displayed height is not its default"/>
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,50 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+
+			<xal:window title="One column" width="500px" height="500px">
+				<xal:gridPanel>
+					<xal:button text="B1"/>
+					<xal:button text="Wide Button 2"/>
+					<xal:button text="Button 3"/>
+					<xal:button text="B4"/>
+					<xal:button text="Button 5"/>
+				</xal:gridPanel>
+			</xal:window>
+			<xal:window title="Two columns">
+				<xal:gridPanel columns="2">
+					<xal:button text="B1"/>
+					<xal:button text="Wide Button 2"/>
+					<xal:button text="Button 3"/>
+					<xal:button text="B4"/>
+					<xal:button text="Button 5"/>
+				</xal:gridPanel>
+			</xal:window>
+
+			<xal:window title="Three columns">
+				<xal:gridPanel columns="3">
+					<xal:button text="B1"/>
+					<xal:button text="Wide Button 2"/>
+					<xal:button text="Button 3"/>
+					<xal:button text="B4"/>
+					<xal:button text="Button 5"/>
+				</xal:gridPanel>
+			</xal:window>
+
+			<xal:window title="Three columns, evenlySpaced">
+				<xal:gridPanel columns="3" evenlySpace="true">
+					<xal:button text="B1"/>
+					<xal:button text="Wide Button 2"/>
+					<xal:button text="Button 3"/>
+					<xal:button text="B4"/>
+					<xal:button text="Button 5"/>
+				</xal:gridPanel>
+			</xal:window>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane2.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane2.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane2.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane2.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,47 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+	
+	<xal:window>
+  		<xal:gridPanel columns="3"> 
+  			<xal:button text="B1" /> 
+  			<xal:button text="Wide Button 2" /> 
+  			<xal:button text="Button 3" /> 
+  			<xal:button text="B4" /> 
+  			<xal:button text="Colspan2, hAlign fill" columnSpan="2" hAlign="fill" />  	
+  		</xal:gridPanel>
+  	</xal:window>
+  	
+  	<xal:window>
+  		<xal:gridPanel columns="3"> 
+  			<xal:button text="B1" /> 
+  			<xal:button text="Colspan2, hAlign fill" columnSpan="2" hAlign="fill" /> 
+  			<xal:button text="Button 3" /> 
+  			<xal:button text="B4" /> 
+  			<xal:button text="Button 5" /> 	
+  		</xal:gridPanel>
+  	</xal:window>
+  	
+  	  <xal:window>
+  		<xal:gridPanel columns="3"> 
+  			<xal:button text="B1" /> 
+  			<xal:button text="Wide Button 2" /> 
+  			<xal:button text="rowspan2, vAlign fill" rowSpan="2" vAlign="fill" /> 
+  			<xal:button text="B4" /> 
+  			<xal:button text="Button 5" /> 
+  		</xal:gridPanel>
+  	</xal:window>
+  
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane3.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane3.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane3.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/gridPane3.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,41 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+	
+	<window xmlns="http://openxal.org/ui">
+  		<gridPanel columns="3"> 
+  			<label text="Dog's Name:" /> 
+ 		 	<textField columnSpan="2" hAlign="fill" /> 
+  			<label text="Breed" /> 
+  			<textField hAlign="fill" /> 
+  			<label text="Categories" hAlign="center" /> 
+  			<label text="Photo:" /> 
+  			<label backgroundColor="red" vGrabSpace="true" hGrabSpace="true" vAlign="fill" hAlign="fill" rowSpan="3" /> 
+			<listBox rowSpan="4" vAlign="fill">
+  				<listItem text="Loudest Bark" /> 
+  				<listItem text="Best of Breed" /> 
+  			</listBox>
+  			<button text="Browse..." /> 
+  			<button text="Delete" /> 
+  			<gridPanel borderColor="black" columns="2" columnSpan="2" borderStyle="solid" borderWidth="1px" caption="Owner Info" hAlign="fill">
+				<label text="Name:" /> 
+				<textField hGrabSpace="true" hAlign="fill" /> 
+				<label text="Phone:" /> 
+				<textField hGrabSpace="true" hAlign="fill" /> 
+  			</gridPanel>
+  			<button text="Enter" columnSpan="3" hAlign="end" /> 
+   		</gridPanel>
+	</window>
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalBoxPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalBoxPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalBoxPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalBoxPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,71 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests" src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+				id="testComponentFreePane">
+				<xal:horizontalBoxPane id="testComponent">
+
+					<xal:freePane flex="3" height="110px" width="20px" backgroundColor="red"
+						id="redComponent" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="flex:3 width:110" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane flex="4" height="120px" width="20px" backgroundColor="green"
+						id="greenComponent" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="flex:4 width:120" x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane flex="1" height="150px" width="20px" backgroundColor="yellow"
+						id="yellowComponent" onCreate="mco:attributeSetter.registerElement(this)">
+						<label
+							text="flex:1 width:150 Debug-Mon Nov 06 2006 14:29:05 GMT-0500 (Eastern Standard Time) (xap.taghandling.PluginRegistryImpl): Add tag mapping:binding:xap.data.bridge.BindingBridge"
+							x="0" y="0"/>
+					</xal:freePane>
+					<xal:freePane height="140px" width="20px" backgroundColor="blue"
+						id="blueComponent" onCreate="mco:attributeSetter.registerElement(this)">
+						<label text="flex:null width:140" x="0" y="0"/>
+					</xal:freePane>
+				</xal:horizontalBoxPane>
+			</freePane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<include href="includes/boxPaneTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal" xmlns="http://openxal.org/core/xinclude"
+						/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<verticalBoxPane>
+								<include href="includes/containerChildManipulation0.xal"
+									xmlns="http://openxal.org/core/xinclude"/>
+								<include href="includes/attributeAutoTest.xal"
+									xmlns="http://openxal.org/core/xinclude"/>
+							</verticalBoxPane>
+						</verticalBoxPane>
+						<verticalBoxPane width="500px">
+
+							<label height="25px" text=" " fontWeight="bold"/>
+							<include href="includes/containerChildManipulation1.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+
+
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalFlowPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalFlowPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalFlowPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalFlowPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,96 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<horizontalSplitPane width="400px" height="300px">
+						<left>
+							<horizontalFlowPane id="testComponent" backgroundColor="black">
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red" id="red1"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue" id="blue1"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:200px" height="25px" id="childToRemove"
+									width="200px" backgroundColor="yellow"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red" id="red2"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue" id="blue2"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:200px" height="25px" width="200px"
+									backgroundColor="yellow" id="yellow1"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red" id="red3"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue" id="blue3"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+								<label text="width:200px" height="25px" width="200px"
+									backgroundColor="yellow" id="yellow2"
+									onCreate="mco:attributeSetter.registerElement(this)"/>
+							</horizontalFlowPane>
+						</left>
+
+						<right>
+							<horizontalFlowPane backgroundColor="black">
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue"/>
+								<label text="width:200px" height="25px" width="200px"
+									backgroundColor="yellow"/>
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue"/>
+								<label text="width:200px" height="25px" width="200px"
+									backgroundColor="yellow"/>
+								<label text="width:150px" height="25px" width="150px"
+									backgroundColor="red"/>
+								<label text="width:80px" height="25px" width="80px"
+									backgroundColor="blue"/>
+								<label text="width:200px" height="25px" width="200px"
+									backgroundColor="yellow"/>
+							</horizontalFlowPane>
+						</right>
+					</horizontalSplitPane>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalSplitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalSplitPane.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalSplitPane.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalSplitPane.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,69 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<xal:horizontalSplitPane id="testComponent" width="300px" height="200px">
+						<xal:left id="left" onCreate="mco:attributeSetter.registerElement(this)">
+							<label text="foo"/>
+						</xal:left>
+						<xal:right id="right" onCreate="mco:attributeSetter.registerElement(this)">
+							<label text="bar"/>
+						</xal:right>
+					</xal:horizontalSplitPane>
+				</freePane>
+				<freePane width="500px" height="300px" backgroundColor="#CCCCCC"
+					id="testComponentFreePane2" onCreate="mco:attributeSetter.registerElement(this)">
+					<xal:horizontalSplitPane width="200px" height="100px">
+						<xal:top height="100px">
+							<label text="top" width="100px"/>
+						</xal:top>
+						<xal:bottom height="100px">
+							<label text="bottom" width="100px"/>
+						</xal:bottom>
+					</xal:horizontalSplitPane>
+					<xal:horizontalSplitPane x="200px" y="0px" width="200px" height="100px">
+						<xal:left width="100px">
+							<label text="left" width="100px"/>
+						</xal:left>
+						<xal:right width="100px">
+							<label text="right" width="100px"/>
+						</xal:right>
+					</xal:horizontalSplitPane>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label fontStyle="italic" autoWrap="true"
+								text="Note: Due to a bug, the height for this component has been pre-set in this component test. It can be changed without a problem, but its current displayed height is not its default"/>
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalToolBar.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalToolBar.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalToolBar.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/horizontalToolBar.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,46 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+					id="testComponentFreePane">
+					<horizontalToolBar id="testComponent">
+						<button text="Button 1" id="toolbarButton1"
+							onCreate="mco:attributeSetter.registerElement(this)"/>
+						<button text="Button 2"/>
+						<button text="Button 3"/>
+					</horizontalToolBar>
+				</freePane>
+			</horizontalBoxPane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/htmlView.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/htmlView.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/htmlView.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/htmlView.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,42 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+				id="testComponentFreePane">
+				<xal:htmlView id="testComponent"> here is some <b>bold text</b> in the html view. <A
+						HREF="http://issues.apache.org/jira/browse/XAP" TARGET="_tab">Here's a link
+						to our JIRA bug tracker.</A>
+				</xal:htmlView>
+			</freePane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/background.JPG
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/background.JPG?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/background.JPG
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/disabled.JPG
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/disabled.JPG?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/disabled.JPG
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/error_16x16.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/error_16x16.gif?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/error_16x16.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/foreground.JPG
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/foreground.JPG?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/foreground.JPG
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/loading.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/loading.gif?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/loading.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/lock_16x16.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/lock_16x16.gif?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/lock_16x16.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/ok_16x16.gif
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/ok_16x16.gif?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/ok_16x16.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/images/smiley.jpg
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/images/smiley.jpg?view=auto&rev=500296
==============================================================================
Binary file - no diff available.

Propchange: incubator/xap/trunk/samples/WebContent/examples/widgets/images/smiley.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/includes/attributeAutoTest.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/includes/attributeAutoTest.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/includes/attributeAutoTest.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/includes/attributeAutoTest.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,5 @@
+<verticalBoxPane xmlns="http://openxal.org/ui">
+    <button onCommand="mco:SmokeTests.runAttributeTests(testComponent)" text="Run attribute test"
+        width="200px" height="25px"/>
+    <label autoWrap="true" text="This attribute tester will run through a selection of attributes and values to set on the testComponent. Before it sets an attribute, it will ask you to confirm. This is so that you can confirm that the previous set attribute worked, and make any changes you want to the testComponent before the next attribute is set. To pause the test, click 'Cancel' in the confirm dialog. To resume the test, click the 'run attribute test' button again. The test will pick up where you left off."/>
+</verticalBoxPane>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/includes/boxPaneTests.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/includes/boxPaneTests.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/includes/boxPaneTests.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/includes/boxPaneTests.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,24 @@
+<verticalBoxPane xmlns="http://openxal.org/ui">
+    <horizontalBoxPane width="500px">
+        <label width="100px" text="pack:"/>
+        <radioButton group="pack" width="75px" text="start" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="pack" width="75px" text="center" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="pack" width="75px" text="end" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="pack" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+    <horizontalBoxPane width="500px">
+        <label width="100px" text="alignment:"/>
+        <radioButton group="alignment" width="75px" text="start" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="alignment" width="75px" text="center" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="alignment" width="75px" text="end" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>
+        <radioButton group="alignment" width="75px" text="stretch" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"
+            onCreate="mco:SmokeTests.addAttributeTest(this.group, this.text, this)"/>						
+        <radioButton group="alignment" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+</verticalBoxPane>
\ No newline at end of file



Mime
View raw message