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 mt...@apache.org on 2006/09/12 18:32:28 UTC
svn commit: r442669 -
/incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal
Author: mturyn
Date: Tue Sep 12 11:32:27 2006
New Revision: 442669
URL: http://svn.apache.org/viewvc?view=rev&rev=442669
Log:
Inserted all components in a FreePanel so that the x/y positions will mean something, now that Label instance's positioning style is back to "relative".
Modified:
incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal
Modified: incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal?view=diff&rev=442669&r1=442668&r2=442669
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.xal Tue Sep 12 11:32:27 2006
@@ -11,192 +11,194 @@
<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
<xm:append select="/xal">
- <xal:label
- id="topLabel"
- width="600px"
- height="40px"
- backgroundColor="#b0a0b0"
- text="Mco expressions and their resolved values:"
- />
-
- <xal:label
- y="50px"
- width="290px"
- height="40px"
- align="center"
- text="\{this\}"
- />
-
- <xal:label
- y="50px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{this}"
- id="testComponent_0"
- />
-
-
- <xal:label
- y="100px"
- width="290px"
- height="40px"
- align="center"
- text="\{this.width\}"
- />
-
- <xal:label
- y="100px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{this.width}"
- id="testComponent_1"
- />
-
-
-
+ <xal:freePanel>
- <xal:label
- y="150px"
- width="290px"
- height="40px"
- align="center"
- text="\{topLabel\}"
- />
-
- <xal:label
- y="150px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{topLabel}"
- id="testComponent_2"
- />
-
-
- <xal:label
- y="200px"
- width="290px"
- height="40px"
- align="center"
- text="\{topLabel.text\}"
- />
-
- <xal:label
- y="200px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{topLabel.text}"
- id="testComponent_3"
- />
-
- <xal:label
- y="250px"
- width="290px"
- height="40px"
- align="center"
- text="\{"A text message."\}"
- />
-
- <xal:label
- y="250px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{"A text message."}"
- id="testComponent_4"
- />
-
-
- <xal:label
- y="300px"
- width="290px"
- height="40px"
- align="center"
- text="\{3.1416\}"
- />
-
- <xal:label
- y="300px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{3.1416}"
- id="testComponent_5"
- />
-
- <xal:label
- y="350px"
- width="290px"
- height="40px"
- align="center"
- text="\{false\}"
- />
-
- <xal:label
- y="350px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{false}"
- id="testComponent_6"
- />
-
- <xal:label
- y="400px"
- width="290px"
- height="40px"
- align="center"
- text="\{mco:attributeGetter\}"
- />
-
- <xal:label
- y="400px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{mco:attributeGetter}"
- id="testComponent_7"
- />
-
- <xal:label
- y="450px"
- width="290px"
- height="40px"
- align="center"
- text="\{mco:attributeGetter.getText()\}"
- />
-
- <xal:label
- y="450px"
- x="310px"
- width="290px"
- height="40px"
- backgroundColor="#ffdddd"
- alignHorizontal="center"
- text="{mco:attributeGetter.getText()}"
- id="testComponent_8"
- />
+ <xal:label
+ id="topLabel"
+ width="600px"
+ height="40px"
+ backgroundColor="#b0a0b0"
+ text="Mco expressions and their resolved values:"
+ />
+
+ <xal:label
+ y="50px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{this\}"
+ />
+
+ <xal:label
+ y="50px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{this}"
+ id="testComponent_0"
+ />
+
+
+ <xal:label
+ y="100px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{this.width\}"
+ />
+
+ <xal:label
+ y="100px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{this.width}"
+ id="testComponent_1"
+ />
+
+
+
+
+ <xal:label
+ y="150px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{topLabel\}"
+ />
+
+ <xal:label
+ y="150px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{topLabel}"
+ id="testComponent_2"
+ />
+
+
+ <xal:label
+ y="200px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{topLabel.text\}"
+ />
+
+ <xal:label
+ y="200px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{topLabel.text}"
+ id="testComponent_3"
+ />
+
+ <xal:label
+ y="250px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{"A text message."\}"
+ />
+
+ <xal:label
+ y="250px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{"A text message."}"
+ id="testComponent_4"
+ />
+
+
+ <xal:label
+ y="300px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{3.1416\}"
+ />
+
+ <xal:label
+ y="300px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{3.1416}"
+ id="testComponent_5"
+ />
+
+ <xal:label
+ y="350px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{false\}"
+ />
+
+ <xal:label
+ y="350px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{false}"
+ id="testComponent_6"
+ />
+
+ <xal:label
+ y="400px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{mco:attributeGetter\}"
+ />
+
+ <xal:label
+ y="400px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{mco:attributeGetter}"
+ id="testComponent_7"
+ />
+
+ <xal:label
+ y="450px"
+ width="290px"
+ height="40px"
+ align="center"
+ text="\{mco:attributeGetter.getText()\}"
+ />
+
+ <xal:label
+ y="450px"
+ x="310px"
+ width="290px"
+ height="40px"
+ backgroundColor="#ffdddd"
+ alignHorizontal="center"
+ text="{mco:attributeGetter.getText()}"
+ id="testComponent_8"
+ />
-
+ </freePanel>
</xm:append>
</xm:modifications>
</xal>