You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by bb...@apache.org on 2007/01/10 15:46:04 UTC

svn commit: r494859 [4/4] - in /incubator/xap/trunk/WebContent/examples/widgets: ./ images/

Modified: incubator/xap/trunk/WebContent/examples/widgets/textField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textField.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textField.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/textField.xal Wed Jan 10 07:46:01 2007
@@ -1,70 +1,48 @@
 <xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
-
-
+	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
 		id="attributeSetter" 
 		class="AttributeTester"
 		src="AttributeTester.js"
 	/>	
-
-
-	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-	<xm:append select="/ui">
 	
-		<horizontalBoxPane>
-		<verticalBoxPane>
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="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:textField id="testComponent"/>
+			</freePane>	
+			<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="textAttributeTests.xal" xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="formElementTests.xal" xmlns="http://openxal.org/core/xinclude"/>
 		<!-- textField specific properties -->
-			<xal:button width="200px" height="25px" 
-				text="text -> 'some new text'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'text','some new text')"/>
-			
-			<xal:button width="200px" height="25px" 
-				text="Limit to 8 chars."
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'maxLength','8')"/>			
-			
-			<xal:button width="200px" height="25px" 
-				text="...255 chars."
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'maxLength','255')"/>								
-			<xal:button width="200px" height="25px" 
-				text="Selectability ON"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'selectable', 'true')"/>
-			<xal:button width="200px" height="25px" 
-				text="Selectability OFF" 
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'selectable','false')"/>
-			
-			<xal:button width="200px" height="25px" 
-				text="Toggle editability"
-				onCommand="mco:attributeSetter.toggleBooleanAttribute(testComponent,
-				'editable')"/>				
-			
-			<xal:button width="200px" height="25px" 
-				text="Editability ON"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'editable', 'true')"/>
-			<xal:button width="200px" height="25px" 
-				text="Editability OFF" 
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'editable','false')"/>							
-		</verticalBoxPane>									
-				
-		
-		
-		<!--standard test things -->
-		
-		<verticalBoxPane>	
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-		</verticalBoxPane>
-		<verticalBoxPane>
-		<xal:textField width="200px" text="A text field"
-			id="testComponent"  onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCommand="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onEdit="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:a
 ttributeSetter.reportEvent(event)" onTextChange="mco:attributeSetter.reportEvent(event)"/>
-		</verticalBoxPane>
-		</horizontalBoxPane>
-	</xm:append> 	  		
-  	</xm:modifications>
+							<label text=" " height="25px"/>
+							<include href="editableFieldTests.xal" xmlns="http://openxal.org/core/xinclude"/>					
+						</verticalBoxPane>
+						<!--standard test things -->		
+						<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append> 	  		
+	</xm:modifications>
 </xal>

Added: incubator/xap/trunk/WebContent/examples/widgets/toggledFormElementTests.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/toggledFormElementTests.xal?view=auto&rev=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/toggledFormElementTests.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/toggledFormElementTests.xal Wed Jan 10 07:46:01 2007
@@ -0,0 +1,25 @@
+<verticalBoxPane xmlns="http://openxal.org/ui">
+    
+    <horizontalBoxPane width="500px">
+        <label width="100px" text="selected image:"/>
+        <radioButton group="selectedImage" width="150px" text="./images/lock_16x16.gif" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+        <radioButton group="selectedImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+    <horizontalBoxPane width="500px">
+        <label width="175px" text="selected mouseOver image:"/>
+        <radioButton group="mouseOverSelectedImage" width="150px" text="./images/error_16x16.gif" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+        <radioButton group="mouseOverSelectedImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+    <horizontalBoxPane width="500px">
+        <label width="175px" text="selected mouseDown image:"/>
+        <radioButton group="pressedSelectedImage" width="150px" text="./images/ok_16x16.gif" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+        <radioButton group="pressedSelectedImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+    <label text=" " height="25px"/>
+    <horizontalBoxPane width="500px">
+        <label width="100px" text="selected:"/>
+        <radioButton group="selected" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+        <radioButton group="selected" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+        <radioButton group="selected" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+    </horizontalBoxPane>
+</verticalBoxPane>
\ No newline at end of file

Modified: incubator/xap/trunk/WebContent/examples/widgets/tree.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tree.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tree.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/tree.xal Wed Jan 10 07:46:01 2007
@@ -1,6 +1,6 @@
 <xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
-
-
+	
+	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
 		id="attributeSetter" 
@@ -8,6 +8,12 @@
 		src="AttributeTester.js"
 	/>	
 	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
 	
 	<mco:mco 
 		xmlns:mco="http://openxal.org/core/mco" 
@@ -33,12 +39,12 @@
 			<xm:append select="id('row1')">
 				<cell text="New Cell"/>
 			</xm:append>
-				<xm:append select="id('myRow')">
+			<xm:append select="id('myRow')">
 				<cell text="New Cell"/>
-				</xm:append>
-				<xm:append select="id('row3')">
+			</xm:append>
+			<xm:append select="id('row3')">
 				<cell text="New Cell"/>
-				</xm:append>
+			</xm:append>
 		</xm:modifications>
 	</macro:macro>
 	
@@ -54,7 +60,13 @@
 	
 	<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('myBranch')"/>
+			<xm:remove-element select="id('testComponent')/row[1]"/>
+		</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="id('testComponent')/row"/> 
 		</xm:modifications>
 	</macro:macro>
 	
@@ -104,71 +116,78 @@
 		</xm:modifications>
 	</macro:macro>
 	
-
-
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-	<xm:append select="/ui">
-	
-
-	<horizontalBoxPane>
-
-	<verticalBoxPane>
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Start table updating" 
-			onCommand="mco:tableMco.startUpdates(testComponent)" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Stop table updating" 
-			onCommand="mco:tableMco.stopUpdates(testComponent)" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add basic row" 
-			onCommand="macro:addRow.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add Branches" 
-			onCommand="macro:branch.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Insert Into Branch" 
-			onCommand="macro:intoBranch.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Remove Row" 
-			onCommand="macro:removeRow.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Remove Branch" 
-			onCommand="macro:removeBranch.execute()" />
-
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add Column" 
-			onCommand="macro:addColumn.execute()" />
-		 
-	
-		 
-</verticalBoxPane> 
-<verticalBoxPane>
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-		 </verticalBoxPane>
-		<verticalBoxPane>
-			<tree id="testComponent" width="200px" height="100px" 
-				onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onAfterSort="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCollapse="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onEdit="mco:attributeSetter.reportEvent(event)" onExpand="mco:attributeSetter.reportEvent(event)" onFirstExpand="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.r
 eportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)" onPositionChange="mco:attributeSetter.reportEvent(event)" onSelect="mco:attributeSetter.reportEvent(event)" onSort="mco:attributeSetter.reportEvent(event)" onStateChange="mco:attributeSetter.reportEvent(event)"
-				>
-				<column><header text="Column 1"  onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCommand="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"/></column>
-				<column><header text="Column 2"/></column>
-				<column id="column3"><header text="Column 3"/></column>
-				<row id="row1"  onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)">
-					<cell text="a"  onDoubleClick="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"/><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"/>
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#FFFFFF" id="testComponentFreePane">	
+					<tree id="testComponent">
+						<column><header text="Column 1"/></column>
+						<column><header text="Column 2"/></column>
+						<column id="column3"><header text="Column 3"/></column>
+						<row id="row1">
+							<cell text="a"/><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>
-				</row>
-				<row id="myRow">
-					<cell text="a"/><cell text="b"/><cell text="c"/>
-				</row>
-				<row id="row3">
-					<cell text="aaaaaaaaaaaaaaaaaa"/><cell text="bbbbbb"/><cell text="ccccc"/>
-				</row>
-			</tree>
-		</verticalBoxPane>
-		 </horizontalBoxPane>
-		
-	</xm:append> 	  		
-  	</xm:modifications>
+						<row id="myRow">
+							<cell text="a"/><cell text="b"/><cell text="c"/>
+						</row>
+						<row id="row3">
+							<cell text="aaaaaaaaaaaaaaaaaa"/><cell text="bbbbbb"/><cell text="ccccc"/>
+						</row>
+					</tree>
+				</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="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Start table updating" 
+								onCommand="mco:tableMco.startUpdates(testComponent)" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Stop table updating" 
+								onCommand="mco:tableMco.stopUpdates(testComponent)" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add basic row" 
+								onCommand="macro:addRow.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add Branches" 
+								onCommand="macro:branch.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert Into Branch" 
+								onCommand="macro:intoBranch.execute()" />
+						</verticalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text=" " fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Row" 
+								onCommand="macro:removeRow.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove All Rows" 
+								onCommand="macro:removeAllRows.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Branch" 
+								onCommand="macro:removeBranch.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add Column" 
+								onCommand="macro:addColumn.execute()" />
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append> 	  		
+	</xm:modifications>
+	
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/treeTable.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/treeTable.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/treeTable.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/treeTable.xal Wed Jan 10 07:46:01 2007
@@ -1,6 +1,6 @@
 <xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
-
-
+	
+	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
 		id="attributeSetter" 
@@ -8,6 +8,13 @@
 		src="AttributeTester.js"
 	/>	
 	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
+	
 	<mco:mco 
 		xmlns:mco="http://openxal.org/core/mco" 
 		id="tableMco" 
@@ -32,12 +39,12 @@
 			<xm:append select="id('row1')">
 				<cell text="New Cell"/>
 			</xm:append>
-				<xm:append select="id('myRow')">
+			<xm:append select="id('myRow')">
 				<cell text="New Cell"/>
-				</xm:append>
-				<xm:append select="id('row3')">
+			</xm:append>
+			<xm:append select="id('row3')">
 				<cell text="New Cell"/>
-				</xm:append>
+			</xm:append>
 		</xm:modifications>
 	</macro:macro>
 	
@@ -53,7 +60,13 @@
 	
 	<macro:macro id="removeRow" xmlns:macro="http://openxal.org/core/macro">
 		<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-			<xm:remove-element select="//treeTable/row[1]"/>
+			<xm:remove-element select="id('testComponent')/row[1]"/>
+		</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="id('testComponent')/row"/> 
 		</xm:modifications>
 	</macro:macro>
 	
@@ -103,71 +116,78 @@
 		</xm:modifications>
 	</macro:macro>
 	
-
-
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-	<xm:append select="/ui">
-	
-
-	<horizontalBoxPane>
-
-	<verticalBoxPane>
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Start table updating" 
-			onCommand="mco:tableMco.startUpdates(testComponent)" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Stop table updating" 
-			onCommand="mco:tableMco.stopUpdates(testComponent)" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add basic row" 
-			onCommand="macro:addRow.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add Branches" 
-			onCommand="macro:branch.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Insert Into Branch" 
-			onCommand="macro:intoBranch.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Remove Row" 
-			onCommand="macro:removeRow.execute()" />
-		
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Remove Branch" 
-			onCommand="macro:removeBranch.execute()" />
-
-		<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Add Column" 
-			onCommand="macro:addColumn.execute()" />
-		 
-	
-		 
-</verticalBoxPane> 
-<verticalBoxPane>
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-		 </verticalBoxPane>
-		<verticalBoxPane>
-			<treeTable id="testComponent" width="200px" height="100px" 
-				onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onAfterSort="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCollapse="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onEdit="mco:attributeSetter.reportEvent(event)" onExpand="mco:attributeSetter.reportEvent(event)" onFirstExpand="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.r
 eportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)" onPositionChange="mco:attributeSetter.reportEvent(event)" onSelect="mco:attributeSetter.reportEvent(event)" onSort="mco:attributeSetter.reportEvent(event)" onStateChange="mco:attributeSetter.reportEvent(event)"
-				>
-				<column><header text="Column 1"  onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onCommand="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"/></column>
-				<column><header text="Column 2"/></column>
-				<column id="column3"><header text="Column 3"/></column>
-				<row id="row1"  onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)">
-					<cell text="a"  onDoubleClick="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)"/><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"/>
+		<xm:append select="/ui">
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#FFFFFF" id="testComponentFreePane">	
+					<treeTable id="testComponent">
+						<column><header text="Column 1"/></column>
+						<column><header text="Column 2"/></column>
+						<column id="column3"><header text="Column 3"/></column>
+						<row id="row1">
+							<cell text="a"/><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>
-				</row>
-				<row id="myRow">
-					<cell text="a"/><cell text="b"/><cell text="c"/>
-				</row>
-				<row id="row3">
-					<cell text="aaaaaaaaaaaaaaaaaa"/><cell text="bbbbbb"/><cell text="ccccc"/>
-				</row>
-			</treeTable>
-		</verticalBoxPane>
-		 </horizontalBoxPane>
-		
-	</xm:append> 	  		
-  	</xm:modifications>
+						<row id="myRow">
+							<cell text="a"/><cell text="b"/><cell text="c"/>
+						</row>
+						<row id="row3">
+							<cell text="aaaaaaaaaaaaaaaaaa"/><cell text="bbbbbb"/><cell text="ccccc"/>
+						</row>
+					</treeTable>
+				</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="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Start table updating" 
+								onCommand="mco:tableMco.startUpdates(testComponent)" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Stop table updating" 
+								onCommand="mco:tableMco.stopUpdates(testComponent)" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add basic row" 
+								onCommand="macro:addRow.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add Branches" 
+								onCommand="macro:branch.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert Into Branch" 
+								onCommand="macro:intoBranch.execute()" />
+						</verticalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text=" " fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Row" 
+								onCommand="macro:removeRow.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove All Rows" 
+								onCommand="macro:removeAllRows.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Branch" 
+								onCommand="macro:removeBranch.execute()" />
+							
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Add Column" 
+								onCommand="macro:addColumn.execute()" />
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append> 	  		
+	</xm:modifications>
+	
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalBoxPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalBoxPane.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalBoxPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalBoxPane.xal Wed Jan 10 07:46:01 2007
@@ -1,113 +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="AttributeTester.js"
 	/>	
-
-
-
+	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
+	
+	
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-	<xm:append select="/ui">
-	<horizontalBoxPane>
-		<verticalBoxPane>
-		<!-- container tests -->
-		<xal:button width="200px" height="25px" 
-			text="pack -> end"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'pack' ,'end')"/>
-				
-		<xal:button width="200px" height="25px" 
-			text="pack -> start"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'pack' ,'start')"/>
-				
-		<xal:button width="200px" height="25px" 
-			text="pack -> center"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'pack' ,'center')"/>
-
-
-		<xal:button width="200px" height="25px" 
-			text="alignment -> center"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'alignment' ,'center')"/>
-				
-		<xal:button width="200px" height="25px" 
-			text="alignment -> start"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'alignment' ,'start')"/>
-				
-		<xal:button width="200px" height="25px" 
-			text="alignment -> end"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'alignment' ,'end')"/>
-				
-		<xal:button width="200px" height="25px" 
-			text="alignment -> stretch"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'alignment' ,'stretch')"/>
-
-		<xal:button width="200px" height="25px" 
-			text="height -> 30px"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'height' ,'30px')"/>	
-				
-		<xal:button width="200px" height="25px" 
-			text="width -> 30px"
-			onCommand="mco:attributeSetter.setAttribute(testComponent,
-				'width' ,'30px')"/>							
-
-		<!-- container tests -->
-		
-		<xal:button width="200px" height="25px" 
-			text="insert before red"
-			onCommand="mco:attributeSetter.insertBefore(redComponent)"/>
-			
-		<xal:button width="200px" height="25px" 
-			text="insert before blue"
-			onCommand="mco:attributeSetter.insertBefore(blueComponent)"/>
-			
-		<xal:button width="200px" height="25px" 
-			text="insert before yellow"
-			onCommand="mco:attributeSetter.insertBefore(yellowComponent)"/>
-			
-		<xal:button width="200px" height="25px" 
-			text="insert before green"
-			onCommand="mco:attributeSetter.insertBefore(greenComponent)"/>
-
-		<xal:button width="200px" height="25px" 
-			text="remove green"
-			onCommand="mco:attributeSetter.remove(greenComponent)"/>
-</verticalBoxPane>
-
-
-		
-		<!--standard test things -->
-		
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">
+				<xal:verticalBoxPane id="testComponent">
+					
+					<xal:freePane flex="3" width="110px" height="20px" backgroundColor="red" id="redComponent">
+						<label text="flex:3 width:110" x="0" y="0" />
+					</xal:freePane>
+					<xal:freePane flex="4" width="120px" height="20px" backgroundColor="green" id="greenComponent">
+						<label text="flex:4 width:120" x="0" y="0" />
+					</xal:freePane>
+					<xal:freePane flex="1" width="150px" height="20px" backgroundColor="yellow" id="yellowComponent">
+						<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 width="140px" height="20px" backgroundColor="blue" id="blueComponent">
+						<label text="flex:null width:140" x="0" y="0" />
+					</xal:freePane>			
+				</xal:verticalBoxPane> 				
+			</freePane>	
+			<scrollPane width="1100px" height="500px" onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
 				<verticalBoxPane>
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-		</verticalBoxPane>
-		
-		<xal:verticalBoxPane width="200px" height="500px" backgroundColor="black"
-			id="testComponent">
-			
-			<xal:freePane boxFlex="3" width="110px" height="20px" backgroundColor="red" id="redComponent">
-				<label text="boxFlex:3 width:110" x="0" y="0" />
-			</xal:freePane>
-			<xal:freePane boxFlex="4" width="120px" height="20px" backgroundColor="green" id="greenComponent">
-				<label text="boxFlex:4 width:120" x="0" y="0" />
-			</xal:freePane>
-			<xal:freePane boxFlex="1" width="150px" height="20px" backgroundColor="yellow" id="yellowComponent">
-				<label text="boxFlex: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 width="140px" height="20px" backgroundColor="blue" id="blueComponent">
-				<label text="boxFlex:null width:140" x="0" y="0" />
-			</xal:freePane>			
-		</xal:verticalBoxPane> 
-</horizontalBoxPane>
-	</xm:append> 	  		
-  	</xm:modifications>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>				
+							<include href="boxPaneTests.xal" xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<!--standard test things -->		
+						<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane width="500px">
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+								<verticalBoxPane>					
+									<include href="containerChildManipulation0.xal" xmlns="http://openxal.org/core/xinclude"/>
+									
+								</verticalBoxPane>
+						</verticalBoxPane>
+						<verticalBoxPane width="500px">
+							
+							<label height="25px" text=" " fontWeight="bold"/>
+							<include href="containerChildManipulation1.xal" xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+				
+
+			</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append> 	  		
+	</xm:modifications>
 </xal>
+

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalPanelExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanelExample.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanelExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanelExample.xal Wed Jan 10 07:46:01 2007
@@ -33,7 +33,7 @@
 
 			
 
-		<xal:verticalBoxPane y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" alignment="stretch">
+		<xal:verticalBoxPane y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" align="stretch">
 
 		<xal:freePane width="100" height="20" backgroundColor="red"/>
 		<xal:freePane width="100" height="20" backgroundColor="green"/>
@@ -43,7 +43,7 @@
 
 
 
-		<xal:verticalBoxPane x="250px" y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" alignment="end">
+		<xal:verticalBoxPane x="250px" y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" align="end">
 
 		<xal:freePane width="100" height="20" backgroundColor="red"/>
 		<xal:freePane width="100" height="20" backgroundColor="green"/>

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalSplitPane.xal Wed Jan 10 07:46:01 2007
@@ -1,6 +1,5 @@
 <xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
 	
-	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
 		id="attributeSetter" 
@@ -8,28 +7,28 @@
 		src="AttributeTester.js"
 	/>	
 	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
 	
 	
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
 		<xm:append select="/ui">
 			<horizontalBoxPane>
-				
-				
-				
-				<!--standard test things -->
-				
-				<verticalBoxPane>
-					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-				</verticalBoxPane>
-				<verticalBoxPane>
-					<xal:verticalSplitPane width="200px" height="100px" id="testComponent" onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)">
-						<xal:top height="50px" backgroundColor="red" onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)">
-							<label text="foo" x="0" y="0"/>
-						</xal:top>
-						<xal:bottom height="50px" backgroundColor="blue" onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onDragDrop="mco:attributeSetter.reportEvent(event)" onDragEnd="mco:attributeSetter.reportEvent(event)" onDragStart="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)">
-							<label text="bar" x="0" y="0"/>
-						</xal:bottom>
-					</xal:verticalSplitPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">	
+					<xal:verticalSplitPane id="testComponent" width="300px" height="200px">
+						<xal:left>
+							<label text="foo"/>
+						</xal:left>
+						<xal:right>
+							<label text="bar"/>
+						</xal:right>
+						</xal:verticalSplitPane>
+				</freePane>	
+				<freePane width="500px" height="300px" backgroundColor="#CCCCCC" id="testComponentFreePane2">	
 					<xal:verticalSplitPane width="200px" height="100px">
 						<xal:top height="100px">
 							<label text="top" width="100px"/>
@@ -38,7 +37,7 @@
 							<label text="bottom" width="100px"/>
 						</xal:bottom>				
 					</xal:verticalSplitPane>
-					<xal:verticalSplitPane width="200px" height="100px">
+					<xal:verticalSplitPane x="200px" y="0px" width="200px" height="100px">
 						<xal:left width="100px">
 							<label text="left" width="100px"/>
 						</xal:left>
@@ -46,8 +45,27 @@
 							<label text="right" width="100px"/>
 						</xal:right>				
 					</xal:verticalSplitPane>
-				</verticalBoxPane>
+				</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="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
 		</xm:append> 	  		
 	</xm:modifications>
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalToolBar.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalToolBar.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalToolBar.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalToolBar.xal Wed Jan 10 07:46:01 2007
@@ -1,5 +1,6 @@
-<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
 
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
 		id="attributeSetter" 
@@ -7,19 +8,43 @@
 		src="AttributeTester.js"
 	/>	
 	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
+	
+	
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
 		<xm:append select="/ui">
-
-			<verticalToolBar id="testComponent" height="300px">
-				<button text="Button 1"/> 
-				<button text="Button 2"/> 
-				<button text="Button 3"/> 
-			</verticalToolBar>
-								
-			<!--standard test things -->		
-			<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-
-		
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">	
+					<verticalToolBar id="testComponent">
+						<button text="Button 1"/> 
+						<button text="Button 2"/> 
+						<button text="Button 3"/> 
+					</verticalToolBar>
+				</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="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<label text="None right now"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
 		</xm:append> 	  		
-  	</xm:modifications>
-</xal>
\ No newline at end of file
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/WebContent/examples/widgets/widget_loader.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/widget_loader.html?view=auto&rev=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/widget_loader.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/widget_loader.html Wed Jan 10 07:46:01 2007
@@ -0,0 +1,42 @@
+<!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>
+		<script language="JavaScript" type="text/javascript">
+			window.onload = function(){
+				document.getElementById("xalDiv").setAttribute("startPage",getGetVar("xalFile"));
+				Xap.createEmbeddedApplications();
+			}
+			
+			function getGetVar(name)
+			{
+			  var re = new RegExp("[\\?&]"+name+"=([^&#]*)");
+			  var val = re.exec(window.location.href);
+			  if( val == null ) return "";
+			  else return val[1];
+			}
+			
+		</script>
+	</head>
+	  
+	<body>
+		<div startPage="freePane.xal" id="xalDiv"></div>
+	</body>
+</html>

Modified: incubator/xap/trunk/WebContent/examples/widgets/window.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/window.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/window.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/window.xal Wed Jan 10 07:46:01 2007
@@ -13,21 +13,11 @@
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
 	<xm:append select="/ui">
 	
-
-		<xal:window title="No min,max,close or resize" x="200px" resizable="false" minimizable="false" maximizable="false" closable="false" onClose="mco:attributeSetter.reportEvent(event)"
-			onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"/>
-	<xal:window title="A window" id="testComponent" minimized="true"
-		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)"
-		onActiveGained="mco:attributeSetter.reportEvent(event)" onActiveLost="mco:attributeSetter.reportEvent(event)" onBeforeActiveLost="mco:attributeSetter.reportEvent(event)" onContextMenu="mco:attributeSetter.reportEvent(event)" onDoubleClick="mco:attributeSetter.reportEvent(event)" onKeyChar="mco:attributeSetter.reportEvent(event)" onKeyDown="mco:attributeSetter.reportEvent(event)" onKeyUp="mco:attributeSetter.reportEvent(event)" onMouseDown="mco:attributeSetter.reportEvent(event)" onMouseDrag="mco:attributeSetter.reportEvent(event)" onMouseMove="mco:attributeSetter.reportEvent(event)" onMouseOut="mco:attributeSetter.reportEvent(event)" onMouseOver="mco:attributeSetter.reportEvent(event)"
-
-	>
+		<xal:window title="testComponent" id="testComponent">
+			<label text="foo"/>
+		</xal:window>
+		<xal:window title="No min,max,close or resize" x="200px" resizable="false" minimizable="false" maximizable="false" closable="false"/>
+	<xal:window title="A window" minimized="true">
 		<xal:borderPane backgroundColor="green">
 		<xal:menuBar borderPosition="north">
 			<xal:menu text="Edit">
@@ -80,7 +70,22 @@
 		
 		<!--standard test things -->
 		
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+		<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="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane>
+				<verticalBoxPane>
+					<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+					<label text="None right now"/>
+				</verticalBoxPane>
+			</horizontalBoxPane>
+		</verticalBoxPane>
 	</xm:append> 	  		
   	</xm:modifications>
 </xal>