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 jm...@apache.org on 2006/09/08 02:21:12 UTC
svn commit: r441345 - /incubator/xap/trunk/WebContent/examples/widgets/
Author: jmargaris
Date: Thu Sep 7 19:21:11 2006
New Revision: 441345
URL: http://svn.apache.org/viewvc?view=rev&rev=441345
Log:
now using xinclude for the standard buttons
Added:
incubator/xap/trunk/WebContent/examples/widgets/table.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/table.xal (with props)
Modified:
incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal
incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal
incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal
incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
incubator/xap/trunk/WebContent/examples/widgets/index.html
incubator/xap/trunk/WebContent/examples/widgets/label.xal
incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal
incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal
incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
incubator/xap/trunk/WebContent/examples/widgets/standardButtons.xal
incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
incubator/xap/trunk/WebContent/examples/widgets/textArea.xal
incubator/xap/trunk/WebContent/examples/widgets/textField.xal
incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
Modified: incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal Thu Sep 7 19:21:11 2006
@@ -65,55 +65,7 @@
<!--standard test things -->
-
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal Thu Sep 7 19:21:11 2006
@@ -55,54 +55,7 @@
onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignVertical', 'bottom')" />
-
-
- <button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
-
-
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
<!--
Modified: incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal Thu Sep 7 19:21:11 2006
@@ -23,54 +23,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal Thu Sep 7 19:21:11 2006
@@ -73,54 +73,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/index.html?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Thu Sep 7 19:21:11 2006
@@ -15,6 +15,7 @@
<li><a href="verticalPanel.html"><verticalPanel></a></li>
<li><a href="horizontalPanel.html"><horizontalPanel></a></li>
<li><a href="borderPanel.html"><borderPanel></a></li>
+<li><a href="table.html"><table></a></li>
</ul>
<br>
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=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/label.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/label.xal Thu Sep 7 19:21:11 2006
@@ -59,53 +59,7 @@
<!--standard test things -->
-
- <button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
-
-
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
<!--
Modified: incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal Thu Sep 7 19:21:11 2006
@@ -27,55 +27,7 @@
<!--standard test things -->
-
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal Thu Sep 7 19:21:11 2006
@@ -60,50 +60,7 @@
- <button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
Modified: incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal Thu Sep 7 19:21:11 2006
@@ -22,54 +22,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/standardButtons.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/standardButtons.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/standardButtons.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/standardButtons.xal Thu Sep 7 19:21:11 2006
@@ -1,5 +1,8 @@
<verticalPanel xmlns="http://www.openxal.org/xal">
-
+ <button width="200px" height="25px"
+ text="print element"
+ onCommand="mco:attributeSetter.printElement(testComponent)"/>
+
<button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
Modified: incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal Thu Sep 7 19:21:11 2006
@@ -40,54 +40,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Added: incubator/xap/trunk/WebContent/examples/widgets/table.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/table.html?view=auto&rev=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/table.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/table.html Thu Sep 7 19:21:11 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Button</title>
+
+ <style type="text/css">
+ <!--
+ @import url(../../css/xapDefault.css);
+ -->
+ </style>
+
+ <script type="text/javascript">
+ djConfig = {
+ parseWidgets: false
+ };
+ </script>
+
+ <script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+ <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+
+ </head>
+
+ <body onload="Xap.createAllPredefinedSessions()">
+ <div xapId="ButtonExample" xapSrc="table.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/table.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/table.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/table.xal?view=auto&rev=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/table.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/table.xal Thu Sep 7 19:21:11 2006
@@ -0,0 +1,132 @@
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
+
+
+ <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">
+
+
+
+
+ <table id="testComponent" width="200px" height="100px">
+ <column><header text="Column 1"/></column>
+ <column><header text="Column 2"/></column>
+ <column><header text="Column 3"/></column>
+ <row>
+ <cell text="a"/><cell text="b"/><cell text="c"/>
+ </row>
+ <row>
+ <cell text="a"/><cell text="b"/><cell text="c"/>
+ </row>
+ <row>
+ <cell text="a"/><cell text="b"/><cell text="c"/>
+ </row>
+ </table>
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="Hello World!"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'text', 'Hello World!!!')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="Hear me roar!"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'text', 'Hear me roar!!!')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="textPlacementVertical = top"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementVertical', 'top')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="textPlacementVertical = bottom"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementVertical', 'bottom')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignHorizontal = left"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignHorizontal', 'left')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignHorizontal = center"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignHorizontal', 'center')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignHorizontal = right"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignHorizontal', 'right')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignVertical = top"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignVertical', 'top')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignVertical = center"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignVertical', 'center')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="alignVertical = bottom"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'alignVertical', 'bottom')" />
+
+
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
+
+
+
+
+ <!--
+ <label width="400px" height="100px" alignHorizontal="center" alignVertical="top" text="HCenterVTop" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="center" alignVertical="top" text="HCenterVTop" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="center" alignVertical="top" text="HCenterVTop" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="bottom" text="HCenter VBottom" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="bottom" text="HCenter VBottom" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="bottom" text="HCenter VBottom" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="bottom" text="HCenter VBottom" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="bottom" text="HCenter VBottom" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="center" text="HCenter VCenter" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="center" text="HCenter VCenter" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="center" text="HCenter VCenter" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="center" text="HCenter VCenter" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="700px" height="100px" alignHorizontal="center" alignVertical="center" text="HCenter VCenter" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="top" text="HRight VTop" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="top" text="HRight VTop" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="top" text="HRight VTop" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="top" text="HRight VTop" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="top" text="HRight VTop" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="bottom" text="HRight VBottom" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="bottom" text="HRight VBottom" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="bottom" text="HRight VBottom" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="bottom" text="HRight VBottom" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="bottom" text="HRight VBottom" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="center" text="HRight VCenter" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="center" text="HRight VCenter" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="center" text="HRight VCenter" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="center" text="HRight VCenter" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="right" alignVertical="center" text="HRight VCenter" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="top" text="HLeft VTop" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="top" text="HLeft VTop" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="top" text="HLeft VTop" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="top" text="HLeft VTop" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="top" text="HLeft VTop" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="bottom" text="HLeft VBottom" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="bottom" text="HLeft VBottom" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="bottom" text="HLeft VBottom" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="bottom" text="HLeft VBottom" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="bottom" text="HLeft VBottom" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter"/>
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="right" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="right" textPlacementVertical="bottom" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="left" textPlacementVertical="top" />
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="left" textPlacementVertical="bottom" />
+
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="right"/>
+ <label width="400px" height="100px" alignHorizontal="left" alignVertical="center" text="HLeft VCenter" textPlacementHorizontal="left"/>
+
+ -->
+
+ </xm:append>
+ </xm:modifications>
+</xal>
\ No newline at end of file
Propchange: incubator/xap/trunk/WebContent/examples/widgets/table.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/widgets/textArea.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textArea.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textArea.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/textArea.xal Thu Sep 7 19:21:11 2006
@@ -28,54 +28,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>
Modified: incubator/xap/trunk/WebContent/examples/widgets/textField.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/textField.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/textField.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/textField.xal Thu Sep 7 19:21:11 2006
@@ -28,55 +28,8 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
-
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
+
</xm:append>
</xm:modifications>
</xal>
Modified: incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal?view=diff&rev=441345&r1=441344&r2=441345
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/verticalPanel.xal Thu Sep 7 19:21:11 2006
@@ -73,54 +73,7 @@
<!--standard test things -->
- <xal:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
-
- <xal:button width="200px" height="25px"
- text="borderWidth -> '25'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderWidth' ,'25')"/>
-
- <xal:button width="200px" height="25px"
- text="borderStyle -> 'solid'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderStyle' ,'solid')"/>
-
- <xal:button width="200px" height="25px"
- text="borderColor -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'borderColor' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="width -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'width' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="height -> '300px'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'height' ,'300px')"/>
-
- <xal:button width="200px" height="25px"
- text="fontWeight -> 'bold'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontWeight' ,'bold')"/>
-
- <xal:button width="200px" height="25px"
- text="backgroundColor -> 'green'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'backgroundColor' ,'green')"/>
-
- <xal:button width="200px" height="25px"
- text="color -> 'red'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'color' ,'red')"/>
-
- <xal:button width="200px" height="25px"
- text="fontSize-> '24'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'fontSize' ,'24')"/>
+ <include href="standardButtons.xal" xmlns="http://www.openxal.org/xinclude"/>
</xm:append>
</xm:modifications>