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 [2/4] - in /incubator/xap/trunk/WebContent/examples/widgets: ./ images/

Modified: incubator/xap/trunk/WebContent/examples/widgets/horizontalFlowPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalFlowPane.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalFlowPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalFlowPane.xal Wed Jan 10 07:46:01 2007
@@ -1,115 +1,73 @@
-<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"
-	xmlns:xm="http://openxal.org/core/xmodify">
-	
+
+
+<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"
-	/>		
+	/>	
 	
-	<!-- Page title -->
-	<xm:modifications document="html"> 
-		
-	</xm:modifications>
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="SmokeTests" 
+		class="SmokeTests"
+		src="SmokeTests.js"
+	/>	
 	
-	<xm:modifications>
+	
+	<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" />
+								<label text="width:80px" height="25px" width="80px" backgroundColor="blue" />
+								<label text="width:200px" height="25px" id="childToRemove" 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> 
+						</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>
-					<!-- button specific properties -->
-					<xal:button width="200px" height="25px" text="remove a child"
-						onCommand="mco:attributeSetter.remove(childToRemove)"/>
-						
-					<xal:button width="200px" height="25px" text="text -> 'some new text'"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'text','some new text')"/>
-					
-					<xal:button width="180px" height="25px" text="Limit to 8 chars."
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'maxLength','8')"/>
-					
-					<xal:button width="180px" height="25px" text="...255 chars."
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'maxLength','255')"/>
-					<xal:button width="180px" height="25px" text="Selectability ON"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'selectable', 'true')"/>
-					<xal:button width="180px" height="25px" text="Selectability OFF"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'selectable','false')"/>
-					
-					<xal:button width="180px" height="25px" text="Toggle editability"
-						onCommand="mco:attributeSetter.toggleBooleanAttribute(testComponent,
-						'editable')"/>
-					
-					<xal:button width="180px" height="25px" text="Editability ON"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'editable', 'true')"/>
-					<xal:button width="180px" height="25px" text="Editability OFF"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'editable','false')"/>
-						
-					<xal:button width="180px" height="25px" text="horizontalGap: 6px"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'horizontalGap','6px')"/>
-						
-					<xal:button width="180px" height="25px" text="verticalGap: 2px"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'verticalGap','2px')"/>
-						
-					<xal:button width="180px" height="25px" text="alignment: start"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'alignment','start')"/>						
-
-						
-					<xal:button width="180px" height="25px" text="alignment: end"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'alignment','end')"/>	
-
-						
-					<xal:button width="180px" height="25px" text="alignment: center"
-						onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'alignment','center')"/>							
-																		
-					<!--standard test things -->
-				</verticalBoxPane>
-				<verticalBoxPane>
-					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					<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>
-				
-				<horizontalSplitPane width="400px" height="400px">
-				<left>
-				<horizontalFlowPane id="testComponent" 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" id="childToRemove" 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> 
-				</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>
-				
-				
-			</horizontalBoxPane>
-		</xm:append>
+			</scrollPane>
+		</xm:append> 	  		
 	</xm:modifications>
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalSplitPane.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,46 +7,65 @@
 		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>
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">	
+				<xal:horizontalSplitPane id="testComponent" width="300px" height="200px">
+					<xal:left>
+						<label text="foo"/>
+					</xal:left>
+					<xal:right>
+						<label text="bar"/>
+					</xal:right>
+				</xal:horizontalSplitPane>
+			</freePane>	
+			<freePane width="500px" height="300px" backgroundColor="#CCCCCC" id="testComponentFreePane2">	
+				<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>
-					<xal:horizontalSplitPane 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:horizontalSplitPane>
-					<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 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>
+					<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>
-			</horizontalBoxPane>
+			</scrollPane>
 		</xm:append> 	  		
 	</xm:modifications>
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/horizontalToolBar.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalToolBar.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalToolBar.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalToolBar.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,28 +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">
-			<verticalBoxPane>
-			<horizontalToolBar id="testComponent" width="300px">
-				<button text="Button 1"/> 
-				<button text="Button 2"/> 
-				<button text="Button 3"/> 
-			</horizontalToolBar>
-			
-			<horizontalToolBar width="300px">
-				<button text="Button 1"/> 
-				<button text="Button 2"/> 
-				<button text="Button 3"/> 
-			</horizontalToolBar>
-			
-			<link text="asdadsad"/>
-			
-								
-			<!--standard test things -->		
-			<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-
-			</verticalBoxPane>
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">	
+					<horizontalToolBar id="testComponent">
+						<button text="Button 1"/> 
+						<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="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>
+	</xm:modifications>
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/widgets/htmlView.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/htmlView.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/htmlView.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/htmlView.xal Wed Jan 10 07:46:01 2007
@@ -1,5 +1,4 @@
-<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"
-	xmlns:xm="http://openxal.org/core/xmodify">
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
 	
 	<mco
 		xmlns="http://openxal.org/core/mco" 
@@ -8,35 +7,39 @@
 		src="AttributeTester.js"
 	/>	
 	
-	<xm:modifications>
+	<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">
-				<xal:htmlView width="200px" height="200px"
-					text="This is some text" id="testComponent"
-					horizontalAlignment="right" verticalAlignment="center"
-					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)"
-					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:attributeSetter.reportEvent(event)"
-					onTextChange="mco:attributeSetter.reportEvent(event)">
-					here is some <b>bold text</b> in the html view
-					</xal:htmlView>			
+			<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>
-					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					<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>
+			</scrollPane>
+		</xm:append> 	  		
 	</xm:modifications>
-</xal>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/WebContent/examples/widgets/imageAttributeTests.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/imageAttributeTests.xal?view=auto&rev=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/imageAttributeTests.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/imageAttributeTests.xal Wed Jan 10 07:46:01 2007
@@ -0,0 +1,72 @@
+			<verticalBoxPane xmlns="http://openxal.org/ui">
+			    <horizontalBoxPane>
+			        <label width="175px" text="backgroundImage:"/>
+			        <radioButton group="backgroundImage" width="150px" text="./images/background.JPG" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="backgroundImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>
+			    <horizontalBoxPane>
+			        <label width="100px" text="image:"/>
+			        <radioButton group="image" width="150px" text="./images/foreground.JPG" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="image" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>	
+			    <horizontalBoxPane>
+			        <label width="100px" text="image disabled:"/>
+			        <radioButton group="disabledImage" width="150px" text="./images/disabled.JPG" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="disabledImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>	 
+			    <horizontalBoxPane>
+			        <label width="175px" text="image mouseOver:"/>
+			        <radioButton group="mouseOverImage" width="150px" text="./images/smiley.jpg" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="mouseOverImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>
+			    <horizontalBoxPane>
+			        <label width="175px" text="image mouseDown:"/>
+			        <radioButton group="pressedImage" width="150px" text="./images/loading.gif" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="pressedImage" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>
+			    <label text=" " height="25px"/>	
+			    <horizontalBoxPane width="500px">
+			        <label width="100px" text="imageWidth:"/>
+			        <radioButton group="imageWidth" width="75px" text="20px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageWidth" width="75px" text="50px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageWidth" width="75px" text="120px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    </horizontalBoxPane>	
+			    <horizontalBoxPane width="500px">
+			        <label width="100px" text=" "/>
+			        <radioButton group="imageWidth" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageWidth" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageWidth" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>	
+			    <horizontalBoxPane width="500px">
+			        <label width="100px" text="imageHeight:"/>
+			        <radioButton group="imageHeight" width="75px" text="20px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageHeight" width="75px" text="50px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageHeight" width="75px" text="120px" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    </horizontalBoxPane>	
+			    <horizontalBoxPane width="500px">
+			        <label width="100px" text=" "/>
+			        <radioButton group="imageHeight" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageHeight" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			        <radioButton group="imageHeight" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			    </horizontalBoxPane>		
+			    <horizontalBoxPane width="500px">
+			    	<label width="250px" text="verticalTextToImagePlacement:"/>
+			    	<radioButton group="verticalTextToImagePlacement" width="75px" text="top" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    	<radioButton group="verticalTextToImagePlacement" width="75px" text="center" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    </horizontalBoxPane>	
+				<horizontalBoxPane width="500px">
+					<label width="250px" text=" "/>
+					<radioButton group="verticalTextToImagePlacement" width="75px" text="bottom" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+					<radioButton group="verticalTextToImagePlacement" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>		
+			    </horizontalBoxPane>
+			    <horizontalBoxPane width="500px">
+			    	<label width="250px" text="horizontalTextToImagePlacement:"/>
+			    	<radioButton group="horizontalTextToImagePlacement" width="75px" text="left" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    	<radioButton group="horizontalTextToImagePlacement" width="75px" text="center" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+			    </horizontalBoxPane>	
+				<horizontalBoxPane width="500px">
+					<label width="250px" text=" "/>
+					<radioButton group="horizontalTextToImagePlacement" width="75px" text="right" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+					<radioButton group="horizontalTextToImagePlacement" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>		
+			    </horizontalBoxPane>
+			</verticalBoxPane>
\ No newline at end of file

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Modified: incubator/xap/trunk/WebContent/examples/widgets/label.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/label.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/label.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/label.xal Wed Jan 10 07:46:01 2007
@@ -1,104 +1,57 @@
 <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">
-			<label id="testComponent" width="400px" height="100px"
-				text="MY PRECIOUS LABEL" />
-
-	<horizontalFlowPane width="825px">					
-				<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="'Hello World!'" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'text', '\'Hello World!\'')" />
-				 
-		<button width="200px" height="50px" text="&lt;b&gt;Hear me roar!&lt;/b&gt;" 
-			onCommand="mco:attributeSetter.setAttribute(testComponent, 'text', '&lt;b&gt;Hear me roar!!!&lt;/b&gt;')" />		 
-				
-				<button width="200px" height="50px"  text="Very long text" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'text', 'XAP is an XML-based declarative framework for building, deploying and maintaining rich, interactive Ajax powered web applications.  It aims to reduce the need for scripting and help solve the development and maintenance challenges associated with large scale JavaScript programming.')" />	
-				
-				<button width="200px" height="50px"  text="verticalTextToImagePlacement = top" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'verticalTextToImagePlacement', 'top')" />	
-		
-				<button width="200px" height="50px"  text="verticalTextToImagePlacement = bottom" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'verticalTextToImagePlacement', 'bottom')" />	
-		
-				<button width="200px" height="50px" text="horizontalTextToImagePlacement = left" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'horizontalTextToImagePlacement', 'left')" />	
-		
-				<button width="200px" height="50px"  text="horizontalTextToImagePlacement = right" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'horizontalTextToImagePlacement', 'right')" />	
-		
-				<button width="200px" height="50px"  text="horizontalAlignment = left" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'horizontalAlignment', 'left')" />	
-		
-				<button width="200px" height="50px"  text="horizontalAlignment = center" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'horizontalAlignment', 'center')" />	
-		
-				<button width="200px" height="50px"  text="horizontalAlignment = right" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'horizontalAlignment', 'right')" />
-				 
-				<button width="200px" height="50px"  text="verticalAlignment = top" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'verticalAlignment', 'top')" />	
-		
-				<button width="200px" height="50px"  text="verticalAlignment = center" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'verticalAlignment', 'center')" />	
-		
-				<button width="200px" height="50px"  text="verticalAlignment = bottom" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'verticalAlignment', 'bottom')" />
-				 
-				<button width="200px" height="50px"  text="autoWrap = true" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'autoWrap', 'true')" />
-				
-				<button width="200px" height="50px" text="autoWrap = false" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'autoWrap', 'false')" />  
-				 
-				<button width="200px" height="50px"  text="set background image" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'backgroundImage', '../background.JPG')" />   
-		
-				<button width="200px" height="50px"  text="set image" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'image', '../foreground.JPG')" />   
-		
-				<button width="200px" height="50px"  text="set disabled image" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'disabledImage', '../foreground_disabled.JPG')" />  
-		
-				<button width="200px" height="50px"  text="set disabled = true" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'disabled', 'true')" />  
-		
-				<button width="200px" height="50px"  text="set disabled = false" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'disabled', 'false')" />  
-				 
-				<button width="200px" height="50px"  text="set image width = 50" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'imageWidth', '50')" />   
-		
-				<button width="200px" height="50px"  text="set image height = 20" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'imageHeight', '20')" />   
-		
-				<button width="200px" height="50px"  text="selectable = true" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'selectable', 'true')" />   
-		
-				<button width="200px" height="50px"  text="selectable = false" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'selectable', 'false')" />  
-		
-				<button width="200px" height="50px" text="richText = true" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'richText', 'true')" />  
-	
-				<button width="200px" height="50px"  text="richText = false" 
-					onCommand="mco:attributeSetter.setAttribute(testComponent, 'richText', 'false')" />  	 
-				 
-				<!-- button specific properties -->
-				<button width="200px" height="25px" 
-					text="text -> 'some new text'"
-					onCommand="mco:attributeSetter.setAttribute(testComponent,
-						'text','some new text')"/>
-						
-				<!--standard test things -->
-			</horizontalFlowPane>					
-			<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-		
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">
+				<label id="testComponent" text="MY PRECIOUS LABEL"/>
+				<label id="smokeTestCompareButton" x="0px" y="100px" visible="false" text="MY PRECIOUS LABEL"/>
+			</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="imageAttributeTests.xal" xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="50px"/>
+						</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"/>
+							<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 label 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"/>
+						</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"/>				
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
 		</xm:append> 	  		
-  	</xm:modifications>
+	</xm:modifications>
 </xal>

Added: incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests0.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests0.xal?view=auto&rev=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests0.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests0.xal Wed Jan 10 07:46:01 2007
@@ -0,0 +1,7 @@
+						<verticalBoxPane width="500px" xmlns="http://openxal.org/ui">
+						    <label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert a new option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox,false)" />
+						    <label autoWrap="true" text="Option should not be selected. Its text is longer than the default text; look for expansion of the component."/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert a new selected option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox,true)" />
+						    <label text="Option should be selected"/>
+						</verticalBoxPane>	
\ No newline at end of file

Added: incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests1.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests1.xal?view=auto&rev=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests1.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/listItemSmokeTests1.xal Wed Jan 10 07:46:01 2007
@@ -0,0 +1,7 @@
+<verticalBoxPane width="500px" xmlns="http://openxal.org/ui">
+    <label height="25px" text=" " fontWeight="bold"/>
+    <button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Option 2 from testComponent" onCommand="mco:attributeSetter.remove(testOption2)" />
+    <label text="Be sure to look at keyboard navigation, DOM correctness, and placement at the end"/>
+    <button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Report attribute values of selected option" onCommand="mco:attributeSetter.reportTextValueAttributes(testComponent)" />
+    <label text="This will make an alert pop up with details on the selected option."/>	
+</verticalBoxPane>
\ No newline at end of file

Modified: incubator/xap/trunk/WebContent/examples/widgets/listbox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/listbox.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.xal Wed Jan 10 07:46:01 2007
@@ -1,49 +1,38 @@
-<xal xmlns="http://openxal.org/ui" xmlns:dojo="http://www.dojotoolkit.org/">
-
-
-
+<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">
-			<verticalBoxPane>
-
-				<freePane backgroundColor="rgb(255,255,245)"
-					width="1000px" height="200px" 
-						onDoubleClick="mco:attributeSetter.transportWidget(event)"
-				>
-					
-					<label x="120px" y="40px" height="100px" backgroundColor="rgb(255,245,255)" richText="true"
-						text="double-click around&lt;br/&gt; in this pane to move&lt;br/&gt; the widget"
-					/>
+			<horizontalBoxPane>
+				<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">
 
-					<listBox id="testComponent" color="green"
-						x="550px" y="15px" 
-						borderColor="yellow" borderWidth="6px" borderStyle="ridge"									
-						fontWeight="bold" fontSize="18px" 
-						selectionMode="multiRow"  height="200px"
-						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)"
-						onPositionChange="mco:attributeSetter.reportEvent(event)" onSelect="mco:attributeSetter.reportEvent(event)" onStateChange="mco:attributeSetter.reportEvent(event)">
-						<listItem id="testOption1" text="Option 1" value="Value 1" selected="true"/>
+					<listBox id="testComponent">
+						<listItem id="testOption1" text="Option 1" value="Value 1"/>
 						<listItem id="testOption2" text="Option 2" value="Value 2" />
-						<listItem id="testOption3" text="Option 3" value="Value 3" selected="true" />
+						<listItem id="testOption3" text="Option 3" value="Value 3"/>
 						<listItem id="testOption4" text="Option 4" value="Value 4" />
 						<listItem id="testOption5" text="Option 5" value="Value 5" />	
-						<listItem id="testOption6" text="Option 6" value="Value 6" selected="true" />
+						<listItem id="testOption6" text="Option 6" value="Value 6"/>
 						<listItem id="testOption7" text="Option 7" value="Value 7" />
 						<listItem id="testOption8" text="Option 8" value="Value 8" />																		
 					</listBox>
-					
-					<listBox id="unstyled_listbox"  selectionMode="multiRow">
+				</freePane>
+				<freePane width="500px" height="300px" backgroundColor="#CCCCCC" id="testComponentFreePane2">	
+					<listBox selectionMode="multiRow" id="multiRowListBox">				
 						<listItem id="Item 0"  text="Text: Item 0" value="Value: Item 0" />
 						<listItem id="Item 1"  text="Text: Item 1" value="Value: Item 1" selected="true"/>
 						<listItem id="Item 2"  text="Text: Item 2" value="Value: Item 2" selected="true"/>
@@ -55,25 +44,42 @@
 						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" selected="true"/>
 					</listBox>
 				</freePane>
-
-				<horizontalBoxPane>
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)" />
-
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Insert a new option" onCommand="mco:attributeSetter.appendListItem(testComponent,false)" />
-
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Insert a new, selected, option" onCommand="mco:attributeSetter.appendListItem(testComponent,true)" />
-
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Multiselect on" onCommand="mco:attributeSetter.setAttribute(testComponent, 'selectionMode', 'multiRow')" />
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Multiselect off" onCommand="mco:attributeSetter.setAttribute(testComponent, 'selectionMode', 'single')" />					
-					
-					<button width="200px" height="50px" horizontalAlignment="center" verticalAlignment="center" text="Selected text/value" onCommand="mco:attributeSetter.reportTextValueAttributes(testComponent)" />
-
-				</horizontalBoxPane>
-					<!--standard test things -->
-
-					<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude" />
-
-			</verticalBoxPane>
-		</xm:append>
+			</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="formElementTests.xal" xmlns="http://openxal.org/core/xinclude"/>
+							<horizontalBoxPane width="500px">
+								<label width="100px" text="selectionMode:"/>
+								<radioButton group="selectionMode" width="75px" text="singleRow" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="selectionMode" width="75px" text="multiRow" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+								<radioButton group="selectionMode" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+							</horizontalBoxPane>	
+						</verticalBoxPane>
+						<!--standard test things -->		
+						<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane width="500px" xmlns="http://openxal.org/ui">
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert a new option" onCommand="mco:attributeSetter.appendListItem(testComponent,false)" />
+							<label autoWrap="true" text="Option should not be selected. Its text is longer than the default text; look for expansion of the component."/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Insert a new selected option" onCommand="mco:attributeSetter.appendListItem(testComponent,true)" />
+							<label text="Option should be selected"/>
+						</verticalBoxPane>	
+						<!-- separated so they can be in different columns -->
+						<verticalBoxPane width="500px" xmlns="http://openxal.org/ui">
+							<label height="25px" text=" " fontWeight="bold"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Remove Option 2 from testComponent" onCommand="mco:attributeSetter.remove(testOption2)" />
+							<label text="Be sure to look at keyboard navigation, DOM correctness, and placement at the end"/>
+							<button width="200px" height="25px" horizontalAlign="center" verticalAlign="center" text="Report attribute values of selected option" onCommand="mco:attributeSetter.reportTextValueAttributes(testComponent)" />
+							<label text="This will make an alert pop up with details on the selected option."/>	
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append> 	  		
 	</xm:modifications>
-</xal>
+</xal>
\ No newline at end of file

Modified: incubator/xap/trunk/WebContent/examples/widgets/menu.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/menu.xal?view=diff&rev=494859&r1=494858&r2=494859
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/menu.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/menu.xal Wed Jan 10 07:46:01 2007
@@ -1,22 +1,27 @@
 <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">
-	<!--- layout issues prevent putting the menu into a horizpanel-->
-	<xal:verticalBoxPane>
-		<xal:menuBar id="testComponent" height="50px" 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)">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0" id="testComponentFreePane">
+		<xal:menuBar id="testComponent">
 			<xal:menu text="Edit" id="testMenuBarItem">
-				<xal:popupMenu  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)" onMouseUp="mco:attributeSetter.reportEvent(event)">
-					<xal:menuItem text="Cut" 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)" onMouseUp="mco:attributeSetter.reportEvent(event)"/>
+				<xal:popupMenu>
+					<xal:menuItem text="Cut"/>
 					<xal:menuItem text="Copy" />
 					<xal:horizontalSeparator />
 					<xal:menuItem text="Paste"/>
@@ -54,210 +59,243 @@
 			
 		</xal:menuBar>			
 		
-	
-		<horizontalFlowPane width="825px" xmlns="http://openxal.org/ui">
-			<label width="825px" height="25px" 
-					text="Menu Bar test"
-					fontWeight="bold"
-			/>	
-			<button width="200px" height="25px" 
-				text="print element"
-				onCommand="mco:attributeSetter.printElement(testComponent)"/>			
-			<button width="200px" height="25px" 
-				text="color -> 'red'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'color' ,'red')"/>
-			<button width="200px" height="25px" 
-				text="background color -> 'blue'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'backgroundColor' ,'blue')"/>
-			<button width="200px" height="25px" 
-				text="border color -> 'yellow'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'borderColor' ,'yellow')"/>		
-			<button width="200px" height="25px" 
-				text="border style -> 'dotted'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'borderStyle' ,'dotted')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '5px'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'borderWidth' ,'5px')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '1px'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'borderWidth' ,'1px')"/>	
-			<button width="200px" height="25px" 
-				text="font weight -> 'bold'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'fontWeight' ,'bold')"/>
-			<button width="200px" height="25px" 
-				text="font size -> '24px'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'fontSize' ,'24px')"/>	
-			<button width="200px" height="25px" 
-				text="font family -> 'serif'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'fontFamily' ,'serif')"/>	
-			<button width="200px" height="25px" 
-				text="font style -> 'italic'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'fontStyle' ,'italic')"/>	
-			<button width="200px" height="25px" 
-				text="enabled -> 'false'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'enabled' ,'false')"/>						
-			<button width="200px" height="25px" 
-				text="enabled -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'enabled' ,'true')"/>		
-			<button width="200px" height="25px" 
-				text="pack -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testComponent,
-					'pack' ,'true')"/>	 																																														
-		</horizontalFlowPane>		
-		<horizontalFlowPane width="825px" xmlns="http://openxal.org/ui">
-			<label width="825px" height="25px" 
-					text="MenuBarItem Edit"
-					fontWeight="bold"
-			/>	
-			<button width="200px" height="25px" 
-				text="print element"
-				onCommand="mco:attributeSetter.printElement(testMenuBarItem)"/>		
-			<button width="200px" height="25px" 
-				text="color -> 'red'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'color' ,'red')"/>
-			<button width="200px" height="25px" 
-				text="background color -> 'blue'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'backgroundColor' ,'blue')"/>
-			<button width="200px" height="25px" 
-				text="border color -> 'yellow'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'borderColor' ,'yellow')"/>		
-			<button width="200px" height="25px" 
-				text="border style -> 'dotted'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'borderStyle' ,'dotted')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '5px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'borderWidth' ,'5px')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '1px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'borderWidth' ,'1px')"/>	
-			<button width="200px" height="25px" 
-				text="font weight -> 'bold'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'fontWeight' ,'bold')"/>
-			<button width="200px" height="25px" 
-				text="font size -> '24px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'fontSize' ,'24px')"/>	
-			<button width="200px" height="25px" 
-				text="font family -> 'serif'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'fontFamily' ,'serif')"/>	
-			<button width="200px" height="25px" 
-				text="font style -> 'italic'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'fontStyle' ,'italic')"/>
-			<button width="200px" height="25px" 
-				text="visible -> 'false'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'visible' ,'false')"/>	
-			<button width="200px" height="25px" 
-				text="visible -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'visible' ,'true')"/>	
-			<button width="200px" height="25px" 
-				text="enabled -> 'false'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'enabled' ,'false')"/>	
-			<button width="200px" height="25px" 
-				text="enabled -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'enabled' ,'true')"/>	
-			<button width="200px" height="25px" 
-				text="text -> 'My Text'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuBarItem,
-					'text' ,'My Text')"/>																																																												
-		</horizontalFlowPane>	 
-	 
-		<horizontalFlowPane width="825px" xmlns="http://openxal.org/ui">
-			<label width="825px" height="25px" 
-					text="MenuItem Run > Open"
-					fontWeight="bold"
-			/>	
-			<button width="200px" height="25px" 
-				text="print element"
-				onCommand="mco:attributeSetter.printElement(testMenuItem)"/>			
-			<button width="200px" height="25px" 
-				text="color -> 'red'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'color' ,'red')"/>
-			<button width="200px" height="25px" 
-				text="background color -> 'blue'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'backgroundColor' ,'blue')"/>
-			<button width="200px" height="25px" 
-				text="border color -> 'yellow'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'borderColor' ,'yellow')"/>		
-			<button width="200px" height="25px" 
-				text="border style -> 'dotted'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'borderStyle' ,'dotted')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '5px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'borderWidth' ,'5px')"/>	
-			<button width="200px" height="25px" 
-				text="border width -> '1px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'borderWidth' ,'1px')"/>	
-			<button width="200px" height="25px" 
-				text="font weight -> 'bold'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'fontWeight' ,'bold')"/>
-			<button width="200px" height="25px" 
-				text="font size -> '24px'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'fontSize' ,'24px')"/>	
-			<button width="200px" height="25px" 
-				text="font family -> 'serif'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'fontFamily' ,'serif')"/>	
-			<button width="200px" height="25px" 
-				text="font style -> 'italic'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'fontStyle' ,'italic')"/>					
-			<button width="200px" height="25px" 
-				text="visible -> 'false'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'visible' ,'false')"/>	
-			<button width="200px" height="25px" 
-				text="visible -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'visible' ,'true')"/>	
-			<button width="200px" height="25px" 
-				text="enabled -> 'false'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'enabled' ,'false')"/>	
-			<button width="200px" height="25px" 
-				text="enabled -> 'true'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'enabled' ,'true')"/>
-			<button width="200px" height="25px" 
-				text="text -> 'My MenuItem'"
-				onCommand="mco:attributeSetter.setAttribute(testMenuItem,
-					'text' ,'My MenuItem')"/>																																								
-		</horizontalFlowPane>						
-		<!--standard test things -->
-		<include href="standardButtons.xal" xmlns="http://openxal.org/core/xinclude"/>
-	</xal:verticalBoxPane>
-	</xm:append> 	  		
-  	</xm:modifications>
-</xal>
+			</freePane>	
+			<scrollPane width="1100px" height="500px" onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="500px">
+			<label width="500px" height="25px" text="Menu Bar test" fontWeight="bold"/>		
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="enabled:"/>
+				<radioButton group="enabled" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+				<radioButton group="enabled" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+				<radioButton group="enabled" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="pack:"/>
+				<radioButton group="pack" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+				<radioButton group="pack" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testComponent, this.group ,this.text)"/>
+				<radioButton group="pack" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testComponent, this.group)"/>
+			</horizontalBoxPane> 				
+							<label text=" " height="25px"/>																																												
+			<label height="25px" text="Menu Bar >> Edit tests:" fontWeight="bold"/>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="borderWidth:"/>
+				<radioButton group="borderWidth" width="75px" text="1px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group ,this.text)"/>
+				<radioButton group="borderWidth" width="75px" text="5px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group ,this.text)"/>
+				<radioButton group="borderWidth" width="75px" text="25px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group ,this.text)"/>
+				<radioButton group="borderWidth" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="borderStyle:"/>
+				<radioButton group="borderStyle" width="75px" text="solid" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group ,this.text)"/>
+				<radioButton group="borderStyle" width="75px" text="dotted" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group ,this.text)"/>
+				<radioButton group="borderStyle" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="borderColor:"/>
+				<radioButton group="borderColor" width="75px" text="red" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="borderColor" width="75px" text="#33CCCC" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="borderColor" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<label text=" " height="25px"/>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="backgroundColor:"/>
+				<radioButton group="backgroundColor" width="75px" text="green" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="backgroundColor" width="75px" text="#FF00CC" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="backgroundColor" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="width:"/>
+				<radioButton group="width" width="75px" text="100px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="width" width="75px" text="300px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="width" width="75px" text="25%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text=""/>
+				<radioButton group="width" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="width" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="width" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="height:"/>
+				<radioButton group="height" width="75px" text="100px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="height" width="75px" text="300px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="height" width="75px" text="25%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text=""/>
+				<radioButton group="height" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="height" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="height" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<label text=" " height="25px"/>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="fontWeight:"/>
+				<radioButton group="fontWeight" width="75px" text="bold" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontWeight" width="75px" text="lighter" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontWeight" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="fontFamily:"/>
+				<radioButton group="fontFamily" width="75px" text="Arial" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontFamily" width="75px" text="serif" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontFamily" width="75px" text="sans-serif" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontFamily" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>		
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="fontStyle:"/>
+				<radioButton group="fontStyle" width="75px" text="normal" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontStyle" width="75px" text="italic" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontStyle" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>	
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="(font) color:"/>
+				<radioButton group="color" width="75px" text="#339966" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="color" width="75px" text="blue" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="color" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>				
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="fontSize:"/>
+				<radioButton group="fontSize" width="75px" text="8px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontSize" width="75px" text="12px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontSize" width="75px" text="24px" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="fontSize" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>	
+			<label text=" " height="25px"/>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="visible:"/>
+				<radioButton group="visible" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="visible" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="visible" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<horizontalBoxPane width="500px">
+				<label width="100px" text="hidden:"/>
+				<radioButton group="hidden" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="hidden" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testMenuBarItem, this.group, this.text)"/>
+				<radioButton group="hidden" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuBarItem, this.group)"/>
+			</horizontalBoxPane>
+			<label text=" " height="25px"/>
+			<horizontalBoxPane>
+				<button width="200px" height="25px" text="Print Element XAL" onCommand="mco:attributeSetter.printElement(testMenuBarItem)"/>
+				<button width="200px" height="25px" text="Assign Event Listeners to testMenuBarItem" onCommand="mco:attributeSetter.addEvents(testMenuBarItem)"/>
+			</horizontalBoxPane>
+			<label text=" " height="25px"/>		
+				<label height="25px" text="MenuItem Run > Open" fontWeight="bold"/>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="borderWidth:"/>
+					<radioButton group="borderWidth" width="75px" text="1px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group ,this.text)"/>
+					<radioButton group="borderWidth" width="75px" text="5px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group ,this.text)"/>
+					<radioButton group="borderWidth" width="75px" text="25px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group ,this.text)"/>
+					<radioButton group="borderWidth" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="borderStyle:"/>
+					<radioButton group="borderStyle" width="75px" text="solid" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group ,this.text)"/>
+					<radioButton group="borderStyle" width="75px" text="dotted" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group ,this.text)"/>
+					<radioButton group="borderStyle" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="borderColor:"/>
+					<radioButton group="borderColor" width="75px" text="red" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="borderColor" width="75px" text="#33CCCC" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="borderColor" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<label text=" " height="25px"/>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="backgroundColor:"/>
+					<radioButton group="backgroundColor" width="75px" text="green" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="backgroundColor" width="75px" text="#FF00CC" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="backgroundColor" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="width:"/>
+					<radioButton group="width" width="75px" text="100px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="width" width="75px" text="300px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="width" width="75px" text="25%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text=""/>
+					<radioButton group="width" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="width" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="width" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="height:"/>
+					<radioButton group="height" width="75px" text="100px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="height" width="75px" text="300px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="height" width="75px" text="25%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text=""/>
+					<radioButton group="height" width="75px" text="50%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="height" width="75px" text="100%" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="height" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<label text=" " height="25px"/>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="fontWeight:"/>
+					<radioButton group="fontWeight" width="75px" text="bold" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontWeight" width="75px" text="lighter" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontWeight" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="fontFamily:"/>
+					<radioButton group="fontFamily" width="75px" text="Arial" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontFamily" width="75px" text="serif" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontFamily" width="75px" text="sans-serif" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontFamily" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>		
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="fontStyle:"/>
+					<radioButton group="fontStyle" width="75px" text="normal" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontStyle" width="75px" text="italic" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontStyle" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>	
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="(font) color:"/>
+					<radioButton group="color" width="75px" text="#339966" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="color" width="75px" text="blue" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="color" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>				
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="fontSize:"/>
+					<radioButton group="fontSize" width="75px" text="8px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontSize" width="75px" text="12px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontSize" width="75px" text="24px" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="fontSize" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>	
+				<label text=" " height="25px"/>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="visible:"/>
+					<radioButton group="visible" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="visible" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="visible" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<horizontalBoxPane width="500px">
+					<label width="100px" text="hidden:"/>
+					<radioButton group="hidden" width="75px" text="false" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="hidden" width="75px" text="true" onSelect="mco:attributeSetter.setAttribute(testMenuItem, this.group, this.text)"/>
+					<radioButton group="hidden" width="75px" text="(none)" onSelect="mco:attributeSetter.removeAttribute(testMenuItem, this.group)"/>
+				</horizontalBoxPane>
+				<label text=" " height="25px"/>
+				<horizontalBoxPane>
+					<button width="200px" height="25px" text="Print Element XAL" onCommand="mco:attributeSetter.printElement(testMenuItem)"/>
+					<button width="200px" height="25px" text="Assign Event Listeners to testMenuItem" onCommand="mco:attributeSetter.addEvents(testMenuItem)"/>
+				</horizontalBoxPane>
+				<label text=" " height="25px"/>
+		</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