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/03 22:47:01 UTC
svn commit: r439866 [1/2] - /incubator/xap/trunk/WebContent/examples/widgets/
Author: jmargaris
Date: Sun Sep 3 15:47:00 2006
New Revision: 439866
URL: http://svn.apache.org/viewvc?view=rev&rev=439866
Log:
new button, label, radioButton and checkBox widgets
Added:
incubator/xap/trunk/WebContent/examples/widgets/checkBox.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal (with props)
incubator/xap/trunk/WebContent/examples/widgets/label.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/label.xal (with props)
incubator/xap/trunk/WebContent/examples/widgets/radioButton.html (with props)
incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal (with props)
Modified:
incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal
incubator/xap/trunk/WebContent/examples/widgets/button.html
incubator/xap/trunk/WebContent/examples/widgets/button.xal
incubator/xap/trunk/WebContent/examples/widgets/complexExample.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/passwordField.xal
incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal
incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal
incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.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
incubator/xap/trunk/WebContent/examples/widgets/verticalPanelExample.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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/borderPanel.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,64 +12,64 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:borderPanel width="200px" height="200px" backgroundColor="black"
+ <xal:borderPanel width="200px" height="200px" backgroundColor="black"
id="testComponent" orientation="horizontal">
- <dojo:button text="north" borderPosition="north"/>
- <dojo:button text="south" borderPosition="south"/>
- <dojo:button text="east" borderPosition="east"/>
- <dojo:button text="west" borderPosition="west"/>
- <dojo:button text="center" borderPosition="center"/>
- </dojo:borderPanel>
+ <xal:button text="north" borderPosition="north"/>
+ <xal:button text="south" borderPosition="south"/>
+ <xal:button text="east" borderPosition="east"/>
+ <xal:button text="west" borderPosition="west"/>
+ <xal:button text="center" borderPosition="center"/>
+ </xal:borderPanel>
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
Modified: incubator/xap/trunk/WebContent/examples/widgets/button.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/button.html?view=diff&rev=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/button.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/button.html Sun Sep 3 15:47:00 2006
@@ -8,8 +8,7 @@
@import url(../../css/xapDefault.css);
-->
</style>
-
- <!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+
<script type="text/javascript">
djConfig = {
parseWidgets: false
@@ -17,11 +16,11 @@
</script>
<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
- <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
+ <script language="JavaScript" type="text/javascript" src="AttributeTester.js"></script>
</head>
- <body onload="Xap.createAllPredefinedSessions();">
+ <body onload="Xap.createAllPredefinedSessions()">
<div xapId="ButtonExample" xapSrc="button.xal" xapToolkit="dojo" xapContext="../../"></div>
</body>
</html>
Modified: incubator/xap/trunk/WebContent/examples/widgets/button.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/button.xal?view=diff&rev=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/button.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/button.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,72 +12,158 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:button width="200px" height="100px" text="A Button"
- id="testComponent"
- onCommand="mco:attributeSetter.reportEvent(event)"
- />
-
+
+
+
+ <button id="testComponent" width="300px" height="100px" text="Belly Button" />
- <!-- button specific properties -->
- <dojo:button width="200px" height="25px"
- text="text -> 'some new text'"
- onCommand="mco:attributeSetter.setAttribute(testComponent,
- 'text','some new text')"/>
+
+ <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')" />
+
+
+
+
- <!--standard test things -->
-
-
- <dojo:button width="200px" height="25px"
- text="print element"
- onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
+
+
+
+
+ <!--
+ <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>
Added: incubator/xap/trunk/WebContent/examples/widgets/checkBox.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/checkBox.html?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/checkBox.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/checkBox.html Sun Sep 3 15:47:00 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Checkbox</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="CheckboxExample" xapSrc="checkBox.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/checkBox.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/checkBox.xal Sun Sep 3 15:47:00 2006
@@ -0,0 +1,171 @@
+<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">
+
+
+
+
+ <checkBox id="testComponent" width="300px" height="100px" text="My Checkbox" onStateChange="javascript:alert('onStateChange specified in XAL!!!')" />
+
+
+ <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="textPlacementHorizontal = left"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementHorizontal ', 'left')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="textPlacementHorizontal = right"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementHorizontal ', 'right')" />
+
+ <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')" />
+
+
+
+
+ <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')"/>
+
+
+
+
+ <!--
+ <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/checkBox.xal
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal?view=diff&rev=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/complexExample.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,19 +12,19 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:borderPanel width="100%" height="100%">
- <dojo:freePanel width="100%" height="100px" backgroundColor="red" borderPosition="north"/>
+ <xal:borderPanel width="100%" height="100%">
+ <xal:freePanel width="100%" height="100px" backgroundColor="red" borderPosition="north"/>
- <dojo:splitPane>
- <dojo:freePanel backgroundColor="yellow"/>
- <dojo:tabPane>
- <dojo:tab text="Package Explorer"/>
- <dojo:tab text="JUnit"/>
- </dojo:tabPane>
- </dojo:splitPane>
- <dojo:freePanel width="100%" height="100px" backgroundColor="green" borderPosition="south"/>
+ <xal:splitPane>
+ <xal:freePanel backgroundColor="yellow"/>
+ <xal:tabPane>
+ <xal:tab text="Package Explorer"/>
+ <xal:tab text="JUnit"/>
+ </xal:tabPane>
+ </xal:splitPane>
+ <xal:freePanel width="100%" height="100px" backgroundColor="green" borderPosition="south"/>
- </dojo:borderPanel >
+ </xal:borderPanel >
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/freePanel.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,62 +12,62 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:freePanel width="200px" height="200px" backgroundColor="black"
+ <xal:freePanel width="200px" height="200px" backgroundColor="black"
id="testComponent" orientation="horizontal">
- <dojo:freePanel width="100px" height="100px" backgroundColor="red"/>
- <dojo:freePanel width="100px" height="100px" x="100px" backgroundColor="green"/>
- <dojo:freePanel y="100px" height="50%" width="100%" backgroundColor="blue"/>
- </dojo:freePanel>
+ <xal:freePanel width="100px" height="100px" backgroundColor="red"/>
+ <xal:freePanel width="100px" height="100px" x="100px" backgroundColor="green"/>
+ <xal:freePanel y="100px" height="50%" width="100%" backgroundColor="blue"/>
+ </xal:freePanel>
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/horizontalPanel.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,57 +12,57 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:horizontalPanel width="200px" height="200px" backgroundColor="black"
+ <xal:horizontalPanel width="200px" height="200px" backgroundColor="black"
id="testComponent">
- <dojo:freePanel width="20px" height="100px" backgroundColor="red"/>
- <dojo:freePanel width="20px" height="100px" backgroundColor="green" id="referenceComponent"/>
- <dojo:freePanel width="20px" height="100px" backgroundColor="blue"/>
- </dojo:horizontalPanel>
+ <xal:freePanel width="20px" height="100px" backgroundColor="red"/>
+ <xal:freePanel width="20px" height="100px" backgroundColor="green" id="referenceComponent"/>
+ <xal:freePanel width="20px" height="100px" backgroundColor="blue"/>
+ </xal:horizontalPanel>
<!-- container tests -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="pack -> end"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'pack' ,'end')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="pack -> start"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'pack' ,'start')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="pack -> center"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'pack' ,'center')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="align -> center"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'align' ,'center')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="align -> start"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'align' ,'start')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="align -> end"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'align' ,'end')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="align -> stretch"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'align' ,'stretch')"/>
<!-- container tests -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="insert before"
onCommand="mco:attributeSetter.insertBefore(referenceComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="remove"
onCommand="mco:attributeSetter.remove(referenceComponent)"/>
@@ -73,51 +73,51 @@
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/index.html Sun Sep 3 15:47:00 2006
@@ -3,7 +3,12 @@
<h2>Basic Tests</h2>
<ul>
<li><a href="button.html"><button></a></li>
+<li><a href="label.html"><label></a></li>
+<li><a href="checkBox.html"><checkBox></a></li>
+<li><a href="radioButton.html"><radioButton></a></li>
<li><a href="textField.html"><textField></a></li>
+<li><a href="textArea.html"><textArea></a></li>
+<li><a href="passwordField.html"><passwordField></a></li>
<li><a href="tabPane.html"><tabPane></a></li>
<li><a href="splitPane.html"><splitPane></a></li>
<li><a href="freePanel.html"><freePanel></a></li>
Added: incubator/xap/trunk/WebContent/examples/widgets/label.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/label.html?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/label.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/label.html Sun Sep 3 15:47:00 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Label</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="label.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/label.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/label.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/label.xal?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/label.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/label.xal Sun Sep 3 15:47:00 2006
@@ -0,0 +1,174 @@
+<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">
+
+
+
+
+ <label id="testComponent" width="400px" height="100px" alignHorizontal="center" alignVertical="top" text="MY PRECIOUS LABEL" textPlacementHorizontal="right" textPlacementVertical="top" />
+
+
+ <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')" />
+
+
+
+ <!-- button specific properties -->
+ <button width="200px" height="25px"
+ text="text -> 'some new text'"
+ onCommand="mco:attributeSetter.setAttribute(testComponent,
+ 'text','some new text')"/>
+
+ <!--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')"/>
+
+
+
+
+ <!--
+ <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/label.xal
------------------------------------------------------------------------------
svn:eol-style = native
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/passwordField.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,13 +12,13 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:passwordField width="200px" text="A text field"
+ <xal:passwordField width="200px" text="A text field"
id="testComponent" onEdit="mco:attributeSetter.reportEvent(event)"
/>
<!-- button specific properties -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="text -> 'some new text'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'text','some new text')"/>
@@ -28,51 +28,51 @@
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
Added: incubator/xap/trunk/WebContent/examples/widgets/radioButton.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/radioButton.html?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/radioButton.html (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/radioButton.html Sun Sep 3 15:47:00 2006
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>RadioButton</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="CheckboxExample" xapSrc="radioButton.xal" xapToolkit="dojo" xapContext="../../"></div>
+</body>
+</html>
Propchange: incubator/xap/trunk/WebContent/examples/widgets/radioButton.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal?view=auto&rev=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal (added)
+++ incubator/xap/trunk/WebContent/examples/widgets/radioButton.xal Sun Sep 3 15:47:00 2006
@@ -0,0 +1,174 @@
+<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">
+
+
+
+
+ <radioButton id="testComponent" width="300px" height="100px" text="RADIO 1" group="America" onStateChange="javascript:alert('onStateChange Radio Button 1!!!')" />
+ <radioButton width="300px" height="100px" text="RADIO 2" group="America" onStateChange="javascript:alert('onStateChange Radio Button 2!!!')" />
+ <radioButton width="300px" height="100px" text="RADIO 3" group="America" onStateChange="javascript:alert('onStateChange Radio Button 3!!!')" />
+ <radioButton width="300px" height="100px" text="RADIO 4" group="America" onStateChange="javascript:alert('onStateChange Radio Button 4!!!')" />
+
+
+ <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="textPlacementHorizontal = left"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementHorizontal ', 'left')" />
+
+ <button width="200px" height="50px" alignHorizontal="center" alignVertical="center" text="textPlacementHorizontal = right"
+ onCommand="mco:attributeSetter.setAttribute(testComponent, 'textPlacementHorizontal ', 'right')" />
+
+ <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')" />
+
+
+
+
+ <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')"/>
+
+
+
+
+ <!--
+ <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/radioButton.xal
------------------------------------------------------------------------------
svn:eol-style = native
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPane.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,61 +12,61 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:splitPane width="200px" height="100px"
+ <xal:splitPane width="200px" height="100px"
id="testComponent" >
- <dojo:button text="Left"/>
- <dojo:button text="right"/>
- </dojo:splitPane>
+ <xal:button text="Left"/>
+ <xal:button text="right"/>
+ </xal:splitPane>
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
Modified: incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal?view=diff&rev=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/splitPaneExample.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,13 +12,13 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:splitPane width="100%" height="100%" orientation="horizontal">
- <dojo:button text="Left"/>
- <dojo:splitPane width="100%" height="100%" orientation="vertical">
- <dojo:button text="Top"/>
- <dojo:button text="Bottom"/>
- </dojo:splitPane>
- </dojo:splitPane>
+ <xal:splitPane width="100%" height="100%" orientation="horizontal">
+ <xal:button text="Left"/>
+ <xal:splitPane width="100%" height="100%" orientation="vertical">
+ <xal:button text="Top"/>
+ <xal:button text="Bottom"/>
+ </xal:splitPane>
+ </xal:splitPane>
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=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPane.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,27 +12,27 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:tabPane width="200px" height="100px"
+ <xal:tabPane width="200px" height="100px"
id="testComponent" >
- <dojo:tab text="Tab1" id="tab1" onSelect="mco:attributeSetter.reportEvent(event)">
- <dojo:button text="button1"/>
- <dojo:button text="button2"/>
- <dojo:button text="button3"/>
- </dojo:tab>
- <dojo:tab text="Tab2" id="tab2" onSelect="mco:attributeSetter.reportEvent(event)">
- <dojo:button text="buttonA"/>
- <dojo:button text="buttonB"/>
- <dojo:button text="buttonC"/>
- </dojo:tab>
- </dojo:tabPane>
+ <xal:tab text="Tab1" id="tab1" onSelect="mco:attributeSetter.reportEvent(event)">
+ <xal:button text="button1"/>
+ <xal:button text="button2"/>
+ <xal:button text="button3"/>
+ </xal:tab>
+ <xal:tab text="Tab2" id="tab2" onSelect="mco:attributeSetter.reportEvent(event)">
+ <xal:button text="buttonA"/>
+ <xal:button text="buttonB"/>
+ <xal:button text="buttonC"/>
+ </xal:tab>
+ </xal:tabPane>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="selected(tab1)-> 'true'"
onCommand="mco:attributeSetter.setAttribute(tab1,
'selected' ,'true')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="selected(tab2)-> 'true'"
onCommand="mco:attributeSetter.setAttribute(tab2,
'selected' ,'true')"/>
@@ -40,51 +40,51 @@
<!--standard test things -->
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="print element"
onCommand="mco:attributeSetter.printElement(testComponent)"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderWidth -> '25'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderWidth' ,'25')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderStyle -> 'solid'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderStyle' ,'solid')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="borderColor -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'borderColor' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="width -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'width' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="height -> '300px'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'height' ,'300px')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontWeight -> 'bold'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontWeight' ,'bold')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="backgroundColor -> 'green'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'backgroundColor' ,'green')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="color -> 'red'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'color' ,'red')"/>
- <dojo:button width="200px" height="25px"
+ <xal:button width="200px" height="25px"
text="fontSize-> '24'"
onCommand="mco:attributeSetter.setAttribute(testComponent,
'fontSize' ,'24')"/>
Modified: incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal?view=diff&rev=439866&r1=439865&r2=439866
==============================================================================
--- incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal (original)
+++ incubator/xap/trunk/WebContent/examples/widgets/tabPaneExample.xal Sun Sep 3 15:47:00 2006
@@ -1,4 +1,4 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/">
+<xal xmlns="http://www.openxal.org/xal" xmlns:xal="http://www.openxal.org/xal">
<mco:mco
@@ -12,15 +12,15 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <dojo:tabPane width="400px" height="600px">
- <dojo:tab text="Tab 1">
- <dojo:freePanel width="100%" height="100%" backgroundColor="red"/>
- </dojo:tab>
- <dojo:tab text="Tab 2">
- <dojo:freePanel width="100%" height="100%" backgroundColor="blue"/>
- </dojo:tab>
+ <xal:tabPane width="400px" height="600px">
+ <xal:tab text="Tab 1">
+ <xal:freePanel width="100%" height="100%" backgroundColor="red"/>
+ </xal:tab>
+ <xal:tab text="Tab 2">
+ <xal:freePanel width="100%" height="100%" backgroundColor="blue"/>
+ </xal:tab>
- </dojo:tabPane>
+ </xal:tabPane>