incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r470115 - in /incubator/xap/trunk/WebContent/examples/widgets: combobox.xal listbox.xal
Date Wed, 01 Nov 2006 22:00:01 GMT
Author: mturyn
Date: Wed Nov  1 14:00:00 2006
New Revision: 470115

URL: http://svn.apache.org/viewvc?view=rev&rev=470115
Log:
Fixed layouts.

Modified:
    incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
    incubator/xap/trunk/WebContent/examples/widgets/listbox.xal

Modified: incubator/xap/trunk/WebContent/examples/widgets/combobox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/combobox.xal?view=diff&rev=470115&r1=470114&r2=470115
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/combobox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/combobox.xal Wed Nov  1 14:00:00 2006
@@ -1,54 +1,46 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
+<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
 
 
-	<mco:mco 
-		xmlns:mco="http://www.openxal.org/mco" 
-		id="attributeSetter" 
-		src="AttributeTester"
-	/>
+	<mco:mco xmlns:mco="http://www.openxal.org/mco" id="attributeSetter" src="AttributeTester"
/>
 
 
 
 	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
-	<xm:append select="/xal">
-	<horizontalPanel>
-		<verticalPanel>
-		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Option 2 of ListBox via XAL DOM" 
-		 onCommand="mco:attributeSetter.remove(testOption2)" />
-		 
-		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" 
-		 onCommand="mco:attributeSetter.appendListItem(testComponentListBox)" />	
-		 
-		<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Multiselect" 
-		 onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')" />		
		 
-		 </verticalPanel>
-		 <verticalPanel>
-		<!--standard test things -->
-		
-		<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
-		</verticalPanel>
-		<verticalPanel>
-			<comboBox id="testComponent" selectionMode="singleRow"  height="100px" 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)" onEdit="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:a
 ttributeSetter.reportEvent(event)" onMouseUp="mco:attributeSetter.reportEvent(event)" onTextChange="mco:attributeSetter.reportEvent(event)">
-				<listBox  id="testComponentListBox" selectionMode="singleRow"  color="#ccccff" width="300px"
fontWeight="bold" fontSize="24px" 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 text="Option 1" value="Value 1" 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)"
onMouseUp="mco:attributeSetter.reportEvent(event)"/>
-				<listItem text="Option 2" value="Value 2" selected="true"/>
-				<listItem text="Option 3" value="Value 3"/>					
-			</listBox>
-		</comboBox>
-		
-		
-		<listBox id="blahblah" color="green" fontWeight="bold" fontSize="16px" selectionMode="multiRow"
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:attributeSett
 er.reportEvent(event)">
-			<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"/>
-		</listBox>
-		
-		<listBox id="googoo" selectionMode="singleRow">
-			<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW"/>
-			<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW"/>			
-		</listBox>	
-		</verticalPanel>
-		</horizontalPanel>
-	</xm:append> 	  		
-  	</xm:modifications>
-</xal>
\ No newline at end of file
+		<xm:append select="/xal">
+			<verticalPanel>
+				<horizontalPanel>
+					<comboBox id="testComponent" selectionMode="singleRow" height="100px" 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)"
+						onEdit="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)">
+						<listBox id="testComponentListBox" selectionMode="singleRow" color="#ccccff" width="300px"
fontWeight="bold" fontSize="24px" 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 text="Option 1" value="Value 1" 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)"
onMouseUp="mco:attributeSetter.reportEvent(event)" />
+							<listItem text="Option 2" value="Value 2" selected="true" />
+							<listItem text="Option 3" value="Value 3" />
+						</listBox>
+					</comboBox>
+				</horizontalPanel>
+				<horizontalPanel>
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)"
/>
+
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox)"
/>
+
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Multiselect" onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')"
/>
+				</horizontalPanel>
+
+				<!--standard test things -->
+				<horizontalPanel>
+					<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude" />
+				</horizontalPanel>				
+				
+			</verticalPanel>
+		</xm:append>
+	</xm:modifications>
+</xal>

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=470115&r1=470114&r2=470115
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/listbox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/listbox.xal Wed Nov  1 14:00:00 2006
@@ -7,20 +7,9 @@
 
 	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
 		<xm:append select="/xal">
-			<horizontalPanel>
-				<verticalPanel>
-					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)"
/>
-
-					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox)"
/>
+			<verticalPanel>
 
-					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Multiselect" onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')"
/>
-				</verticalPanel>
-				<verticalPanel>
-					<!--standard test things -->
-
-					<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude" />
-				</verticalPanel>
-				<verticalPanel>
+				<horizontalPanel>
 
 					<listBox id="blahblah" color="green" fontWeight="bold" fontSize="16px" selectionMode="multiRow"
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)"
@@ -36,8 +25,20 @@
 						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
 						<listItem text="NO EVENTS ONLY SINGLE ROW SELECT" value="SINGLE ROW" />
 					</listBox>
-				</verticalPanel>
-			</horizontalPanel>
+				</horizontalPanel>
+
+				<horizontalPanel>
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Remove Option 2 of ListBox via XAL DOM" onCommand="mco:attributeSetter.remove(testOption2)"
/>
+
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Insert a NEW Option" onCommand="mco:attributeSetter.appendListItem(testComponentListBox)"
/>
+
+					<button width="200px" height="50px" alignHorizontal="center" alignVertical="center"
text="Multiselect" onCommand="mco:attributeSetter.setAttribute(testOption1, 'selected', 'true')"
/>
+				</horizontalPanel>
+					<!--standard test things -->
+
+					<include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude" />
+
+			</verticalPanel>
 		</xm:append>
 	</xm:modifications>
 </xal>



Mime
View raw message