incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sb...@apache.org
Subject svn commit: r500296 [5/5] - in /incubator/xap/trunk/samples/WebContent/examples: ./ basic/ dataBinding/ demo/ demo/images/ dojo/ helloWorld/ html-xmodify/ urlResolution/ urlResolution/images/ urlResolution/xmodify/ widgets/ widgets/images/ widgets/incl...
Date Fri, 26 Jan 2007 18:22:21 GMT
Added: incubator/xap/trunk/samples/WebContent/examples/widgets/textField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/textField.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/textField.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/textField.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,47 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+	<mco xmlns="http://openxal.org/core/mco" id="SmokeTests" class="SmokeTests"
+		src="src-js/SmokeTests.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<freePane width="500px" height="300px" backgroundColor="#F0F0F0"
+				id="testComponentFreePane">
+				<xal:textField id="testComponent"/>
+			</freePane>
+			<scrollPane width="1100px" height="500px"
+				onCreate="mco:attributeSetter.resizeScrollPane(this, testComponentFreePane)">
+				<verticalBoxPane>
+					<horizontalBoxPane borderStyle="solid" borderWidth="2px" borderColor="#000">
+						<verticalBoxPane width="50%">
+							<label height="25px" text="Specific tests:" fontWeight="bold"/>
+							<include href="includes/textAttributeTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<label text=" " height="25px"/>
+							<include href="includes/formElementTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+							<!-- textField specific properties -->
+							<label text=" " height="25px"/>
+							<include href="includes/editableFieldTests.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+						<!--standard test things -->
+						<include href="includes/standardButtons.xal"
+							xmlns="http://openxal.org/core/xinclude"/>
+					</horizontalBoxPane>
+					<horizontalBoxPane>
+						<verticalBoxPane>
+							<label height="25px" text="Smoke tests:" fontWeight="bold"/>
+							<include href="includes/attributeAutoTest.xal"
+								xmlns="http://openxal.org/core/xinclude"/>
+						</verticalBoxPane>
+					</horizontalBoxPane>
+				</verticalBoxPane>
+			</scrollPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/tooltip.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/tooltip.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/tooltip.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/tooltip.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,25 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui">
+
+
+	<mco xmlns="http://openxal.org/core/mco" id="attributeSetter" class="AttributeTester"
+		src="src-js/AttributeTester.js"/>
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<xal:verticalBoxPane>
+				<xal:button text="I have a tooltip" tooltip="Button Tooltip 1"/>
+				<xal:checkBox text="So do I."
+					tooltip="Checkbox\n tooltip\r\n&lt;br/&gt;on multiple lines."/>
+
+				<!-- TODO if you have a tooltip on the container and
+		child they both show up -->
+				<xal:verticalBoxPane
+					tooltip="Tooltip for red panel\n(&lt;font color='red'&gt;red&lt;/font&gt; panel's tooltip's &lt;b&gt;second&lt;/b&gt; line)"
+					width="300px" height="300px" backgroundColor="red">
+					<xal:button text="I have a tooltip" tooltip="Button Tooltip 2"/>
+				</xal:verticalBoxPane>
+			</xal:verticalBoxPane>
+		</xm:append>
+	</xm:modifications>
+</xal>

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

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

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

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

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

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/complexExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/complexExample.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/complexExample.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/complexExample.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,34 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+	
+		<xal:borderPane width="100%" height="100%">
+			<xal:freePane width="100%" height="100px" backgroundColor="red" borderPosition="north"/>
+
+			<xal:horizontalSplitPane>
+				<xal:freePane backgroundColor="yellow"/>
+				<xal:tabPane>
+					<xal:tab text="Package Explorer"/>
+					<xal:tab text="JUnit"/>
+				</xal:tabPane>
+			</xal:horizontalSplitPane>
+			<xal:freePane width="100%" height="100px" backgroundColor="green" borderPosition="south"/>
+
+		</xal:borderPane >
+		
+
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/rowCycling.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/rowCycling.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/rowCycling.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/rowCycling.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,29 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	
+	<mco:mco 
+		xmlns:mco="http://openxal.org/core/mco" 
+		id="cyclingMco" 
+		class="CyclingMco"
+		src="CyclingMco.js"
+	/>
+
+	
+
+	<table id="testComponent" width="300px" height="200px">
+		<column><header text="Column 1"/></column>
+		<column><header text="Column 2"/></column>
+		<column><header text="Column 3"/></column>
+		<row>
+			<cell text="aaa"/>
+			<cell text="bbb"/>
+			<cell text="ccc"/>
+		</row>
+	</table>
+	
+	<button text="Start cycling" onCommand="mco:cyclingMco.startCycling(testComponent)"/>
+	<button text="Stop cycling" onCommand="mco:cyclingMco.stopCycling(testComponent)"/>
+	<button text="Cycle once" onCommand="mco:cyclingMco.cycleOnce(testComponent)"/>
+	<button text="Clear" onCommand="mco:cyclingMco.clear(testComponent)"/>
+	<button text="Print stats" onCommand="mco:cyclingMco.printStats(event)"/>
+
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/splitPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/splitPaneExample.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/splitPaneExample.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/splitPaneExample.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,29 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+	
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+	
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+		<xm:append select="/ui">
+			<xal:horizontalSplitPane width="100%" height="400px" orientation="horizontal">
+				<xal:left width="100px">
+					<xal:button text="Left"/>
+				</xal:left>
+				<xal:right width="100px">
+					<xal:verticalSplitPane width="100%" height="100%" orientation="vertical">
+						<xal:top height="100px">
+							<xal:button text="Top"/>
+						</xal:top>
+						<xal:bottom height="100px">
+							<xal:button text="Bottom"/>
+						</xal:bottom>				
+					</xal:verticalSplitPane>	
+				</xal:right>				
+			</xal:horizontalSplitPane>
+		</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPane2.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPane2.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPane2.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPane2.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,16 @@
+<xal xmlns="http://openxal.org/ui/html">
+    
+    <verticalBoxPane width="600px" height="600px" borderWidth="1px" borderColor="blue" borderStyle="solid">
+        <tabPane width="500px" height="500px" borderColor="red" borderStyle="solid">
+            <tab text="First" width="400px" height="400px">
+                <label text="first label"/>    
+            </tab>
+            <tab text="Second" width="400px" height="400px">   
+                <label text="second label"/>  
+            </tab>
+            <tab text="Third" width="400px" height="400px"> 
+                <label text="third label"/>
+            </tab>  
+        </tabPane>
+    </verticalBoxPane>
+</xal>

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPaneExample.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPaneExample.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tabPaneExample.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,30 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+	
+		<xal:tabPane width="400px" height="600px">
+			<xal:tab text="Tab 1">
+				<xal:freePane width="100%" height="100%" backgroundColor="red"/>
+			</xal:tab>	
+			<xal:tab text="Tab 2">
+				<xal:freePane width="100%" height="100%" backgroundColor="blue"/>
+			</xal:tab>	
+
+		</xal:tabPane>
+		
+
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tableSorting.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tableSorting.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tableSorting.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/tableSorting.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,118 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+		<table id="testComponent" width="300px" height="500px">
+			<column dataType="string"><header text="Strings"/></column>
+			<column dataType="string"><header text="Strings"/></column>
+			<column dataType="number"><header text="Numbers"/></column>
+			<column dataType="number"><header text="Numbers"/></column>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+			<row>
+				<cell text="Aardvark"/><cell text="45"/><cell text="Aardvark"/><cell text="45"/>
+			</row>
+			<row>
+				<cell text="Zebra"/><cell text="450"/><cell text="Zebra"/><cell text="450"/>
+			</row>
+			<row>
+				<cell text="Gazelle"/><cell text="2.5"/><cell text="Gazelle"/><cell text="2.5"/>
+			</row>
+			<row>
+				<cell text="Bear"/><cell text="1000"/><cell text="Bear"/><cell text="1000"/>
+			</row>
+			<row>
+				<cell text="Panther"/><cell text="11"/><cell text="Panther"/><cell text="11"/>
+			</row>
+		</table>
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/verticalPanelExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/verticalPanelExample.xal?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/verticalPanelExample.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_examples/verticalPanelExample.xal Fri Jan 26 10:22:14 2007
@@ -0,0 +1,60 @@
+<xal xmlns="http://openxal.org/ui" xmlns:xal="http://openxal.org/ui"> 
+
+
+	<mco
+		xmlns="http://openxal.org/core/mco" 
+		id="attributeSetter" 
+		class="AttributeTester"
+		src="src-js/AttributeTester.js"
+	/>	
+
+
+	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
+	<xm:append select="/ui">
+
+	<xal:freePane width="800px" height="800px">
+	
+		<xal:verticalBoxPane width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black">
+		
+		<xal:freePane width="100" height="20" backgroundColor="red"/>
+		<xal:freePane width="100" height="20" backgroundColor="green"/>
+		<xal:freePane width="100" height="20" backgroundColor="blue"/>
+		
+		</xal:verticalBoxPane >
+
+		
+		<xal:verticalBoxPane x="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" pack="end">
+		
+		<xal:freePane width="100" height="20" backgroundColor="red"/>
+		<xal:freePane width="100" height="20" backgroundColor="green"/>
+		<xal:freePane width="100" height="20" backgroundColor="blue"/>
+
+		</xal:verticalBoxPane >
+
+			
+
+		<xal:verticalBoxPane y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" align="stretch">
+
+		<xal:freePane width="100" height="20" backgroundColor="red"/>
+		<xal:freePane width="100" height="20" backgroundColor="green"/>
+		<xal:freePane width="100" height="20" backgroundColor="blue"/>
+
+		</xal:verticalBoxPane >
+
+
+
+		<xal:verticalBoxPane x="250px" y="250px" width="200px" height="200px" borderWidth="1" borderStyle="solid" borderColor="black" align="end">
+
+		<xal:freePane width="100" height="20" backgroundColor="red"/>
+		<xal:freePane width="100" height="20" backgroundColor="green"/>
+		<xal:freePane width="100" height="20" backgroundColor="blue"/>
+
+		</xal:verticalBoxPane >
+
+		
+	</xal:freePane>
+		
+
+	</xm:append> 	  		
+  	</xm:modifications>
+</xal>
\ No newline at end of file

Added: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html?view=auto&rev=500296
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html (added)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html Fri Jan 26 10:22:14 2007
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
+		"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+	<head>
+	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+	    <title>Simple XAP Widget Example</title>
+	
+		<style type="text/css">
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	    
+		<script type="text/javascript">
+			function getGetVar(name)
+			{
+			  var re = new RegExp("[\\?&]"+name+"=([^&#]*)");
+			  var val = re.exec(window.location.href);
+			  if( val == null ) return "";
+			  else return val[1];
+			}
+		//Keep dojo from trying to scan this whole page for dojoType'd tags:
+					
+			djConfig = {
+				parseWidgets: false
+			};
+			
+			// Debug?
+			var debugP = getGetVar("debug") ;
+			if( debugP){
+				window.debug_config = new Object() ;
+				if(debugP=="all"||debugP=="true"){
+					window.debug_config._debugAll=true ;				
+				} else {
+					window.debug_config._debugList = debugP.split(",") ;
+				}
+			}			
+			
+			
+		</script>    
+		
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+
+		<script language="JavaScript" type="text/javascript">
+		
+			window.onload = function(){
+				document.getElementById("xalDiv").setAttribute("startPage",getGetVar("xalFile"));
+				Xap.createEmbeddedApplications();
+			}
+			
+
+			
+		</script>
+	</head>
+	  
+	<body>
+		<div startPage="freePane.xal" id="xalDiv"></div>
+	</body>
+</html>

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



Mime
View raw message