incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r525931 - /incubator/xap/trunk/samples/WebContent/examples/widgets/treeTable.xal
Date Thu, 05 Apr 2007 19:04:20 GMT
Author: mturyn
Date: Thu Apr  5 12:04:19 2007
New Revision: 525931

URL: http://svn.apache.org/viewvc?view=rev&rev=525931
Log:
Backed out of most recent revision, which evidently wasn't intended for general use.

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

Modified: 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=diff&rev=525931&r1=525930&r2=525931
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/treeTable.xal (original)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/treeTable.xal Thu Apr  5 12:04:19
2007
@@ -1,142 +1,243 @@
-<xal xmlns="http://openxal.org/ui/html">
+<!--
+ - Licensed to the Apache Software Foundation (ASF) under one
+ -  or more contributor license agreements.  See the NOTICE file
+ -  distributed with this work for additional information
+ -  regarding copyright ownership.  The ASF licenses this file
+ -  to you under the Apache License, Version 2.0 (the
+ -  "License"); you may not use this file except in compliance
+ -  with the License.  You may obtain a copy of the License at
+ -
+ -	http://www.apache.org/licenses/LICENSE-2.0
+ -
+ -  Unless required by applicable law or agreed to in writing, software
+ -  distributed under the License is distributed on an "AS IS" BASIS,
+ -  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ -  See the License for the specific language governing permissions and
+ -  limitations under the License.
+ -
+-->
 
-  <macro:macro xmlns:macro="http://openxal.org/core/macro" name="hidetable">
-  	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-    <xm:set-attribute select="id('hideabletable')">
-    	<xm:attribute name="visible" value="false"/>
-    </xm:set-attribute>
-    </xm:modifications>
-  </macro:macro>
-  <macro:macro xmlns:macro="http://openxal.org/core/macro" name="showtable">
-  	<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
-    <xm:set-attribute select="id('hideabletable')">
-    	<xm:attribute name="visible" value="true"/>
-    </xm:set-attribute>
-    </xm:modifications>
-  </macro:macro>
-  
-  <rootPane>
-  <freePane width="1280px" height="1800px">
-    <tabPane id="resultpane" width="800px" height="150px">
-      <tab text="overview">
-        <treeTable id="schemaoverviewtable" height="100%" width="100%">
-          <column><header text="Schema Component"></header></column>
-          <column><header text="Client Bridge Class Name Information"></header></column>
-          <column dataType="number"><header text="Schema"></header></column>
-          <column dataType="number"><header text="Bridge"></header></column>
-          <column dataType="number"><header text="Missing"></header></column>
-          <column dataType="number"><header text="Extra"></header></column>
-          <column><header text="Missing Attributes"/></column>
-          <column><header text="Extra Attributes"/></column>
-          <row expanded="false">
-            <cell text="foo"/>
-            <cell text="bar"/>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-          </row>
-          <row expanded="false">
-            <cell text="foo2"/>
-            <cell text="bar2"/>
-            <row><cell/><cell/><cell text="2"/></row>
-          </row>
-          <row expanded="false">
-          	<cell text="next"/>
-          	<cell text="row"/>
-          </row>
-        </treeTable>
-      </tab>
-      <tab text="Tab bearing table">
-      	<table width="100%" height="100%">
-      		<column><header text="column 1"/></column>
-      		<column><header text="column 2"/></column>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-      	</table>
-      </tab>
-      <tab text="Tab bearing treetable">
-        <treeTable height="100%" width="100%">
-          <column><header text="Schema Component"></header></column>
-          <column><header text="Client Bridge Class Name Information"></header></column>
-          <column dataType="number"><header text="Schema"></header></column>
-          <column dataType="number"><header text="Bridge"></header></column>
-          <column dataType="number"><header text="Missing"></header></column>
-          <column dataType="number"><header text="Extra"></header></column>
-          <column><header text="Missing Attributes"/></column>
-          <column><header text="Extra Attributes"/></column>
-          <row>
-            <cell text="foo"/>
-            <cell text="bar"/>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-          </row>
-          <row>
-            <cell text="foo"/>
-            <cell text="bar"/>
-            <row><cell/><cell/><cell text="2"/></row>
-          </row>
-          <row>
-          	<cell text="next"/>
-          	<cell text="row"/>
-          </row>
-        </treeTable>
-      </tab>
-    </tabPane>
-    <treeTable x="0px" y="160px" width="800px" height="150px">
-          <column><header text="Schema Component"></header></column>
-          <column><header text="Client Bridge Class Name Information"></header></column>
-          <column dataType="number"><header text="Schema"></header></column>
-          <column dataType="number"><header text="Bridge"></header></column>
-          <column dataType="number"><header text="Missing"></header></column>
-          <column dataType="number"><header text="Extra"></header></column>
-          <column><header text="Missing Attributes"/></column>
-          <column><header text="Extra Attributes"/></column>
-          <row expanded="false">
-            <cell text="foo"/>
-            <cell text="bar"/>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-            <row><cell/><cell/><cell text="1"/></row>
-          </row>
-          <row expanded="false">
-            <cell text="foo"/>
-            <cell text="bar"/>
-            <row><cell/><cell/><cell text="2"/></row>
-          </row>
-          <row expanded="false">
-          	<cell text="next"/>
-          	<cell text="row"/>
-          </row>
-    </treeTable>
-    <table id="hideabletable" x="820px" y="160px" width="800px" height="150px" visible="false">
-      		<column><header text="column 1"/></column>
-      		<column><header text="column 2"/></column>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-      		<row>
-      			<cell text="foo"/>
-      			<cell text="bar"/>
-      		</row>
-    </table>
-    <button width="80px" height="25px" x="820px" y="320px" text="Hide table" onCommand="macro:hidetable.execute()"/>
-    <button width="80px" height="25px" x="890px" y="320px" text="Show table" onCommand="macro:showtable.execute()"/>
-  </freePane>
-  </rootPane>
-</xal>
\ No newline at end of file
+<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>



Mime
View raw message