incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r546647 - /incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal
Date Tue, 12 Jun 2007 22:05:16 GMT
Author: jmargaris
Date: Tue Jun 12 15:05:15 2007
New Revision: 546647

URL: http://svn.apache.org/viewvc?view=rev&rev=546647
Log:
changed to put defs under UI root where it is supposed to go

Modified:
    incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal

Modified: incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal?view=diff&rev=546647&r1=546646&r2=546647
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal (original)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/popupMenu.xal Tue Jun 12 15:05:15
2007
@@ -27,32 +27,36 @@
 
 
 	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-		<xm:append select="/ui">
+		<xm:append select="/ui">
+		
+			<xal:defs>
+				<xal:popupMenu id="testComponent">
+					<xal:menuItem text="Cut" id="OuterCut"
+						onCommand="mco:attributeSetter.reportEvent(event)"
+						onCreate="mco:attributeSetter.registerElement(this)"/>
+					<xal:menuItem text="Copy" id="OuterCopy"/>
+					<xal:horizontalSeparator/>
+					<xal:menuItem text="Paste" id="OuterPaste">
+						<xal:popupMenu>
+							<xal:menuItem text="Cut" id="innerCut" onCommand="mco:attributeSetter.reportEvent(event)"/>
+							<xal:menuItem text="Copy" id="innerCopy" onCommand="mco:attributeSetter.reportEvent(event)"/>
+							<xal:horizontalSeparator/>
+							<xal:menuItem text="Paste" id="innerPaste" onCommand="mco:attributeSetter.reportEvent(event)"/>
+						</xal:popupMenu>
+					</xal:menuItem>
+				</xal:popupMenu>
+			</xal:defs>
+
+			<xal:defs>
+				<xal:popupMenu id="testComponent2"
+					onCreate="mco:attributeSetter.registerElement(this)"> </xal:popupMenu>
+			</xal:defs>
+					
+					
 			<horizontalBoxPane>
 				<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
 					id="testComponentFreePane">
-					<xal:defs>
-						<xal:popupMenu id="testComponent">
-							<xal:menuItem text="Cut" id="OuterCut"
-								onCommand="mco:attributeSetter.reportEvent(event)"
-								onCreate="mco:attributeSetter.registerElement(this)"/>
-							<xal:menuItem text="Copy" id="OuterCopy"/>
-							<xal:horizontalSeparator/>
-							<xal:menuItem text="Paste" id="OuterPaste">
-								<xal:popupMenu>
-									<xal:menuItem text="Cut" id="innerCut" onCommand="mco:attributeSetter.reportEvent(event)"/>
-									<xal:menuItem text="Copy" id="innerCopy" onCommand="mco:attributeSetter.reportEvent(event)"/>
-									<xal:horizontalSeparator/>
-									<xal:menuItem text="Paste" id="innerPaste" onCommand="mco:attributeSetter.reportEvent(event)"/>
-								</xal:popupMenu>
-							</xal:menuItem>
-						</xal:popupMenu>
-					</xal:defs>
-
-					<xal:defs>
-						<xal:popupMenu id="testComponent2"
-							onCreate="mco:attributeSetter.registerElement(this)"> </xal:popupMenu>
-					</xal:defs>
+		
 
 					<xal:button id="HavePopup" name="Harvey" text="I have a popup" popup="#testComponent"/>
 



Mime
View raw message