summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-04-17 22:13:58 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-04-17 22:13:58 +0000
commit7df272063ba2167d797bda383680bfcf648418f8 (patch)
treebf69c23fe6d2ea3a07fccb92fa8d9962660b81ad /sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite
parent7779274ac986c038ab2f444fe04bd21051153294 (diff)
Add a few sample and test apps. Refactor some of the utility components and adjusted apps to use them.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1094208 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite235
1 files changed, 87 insertions, 148 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite b/sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite
index 479cfa67e4..27e93dc15f 100644
--- a/sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite
+++ b/sca-cpp/trunk/modules/edit/apps/testwidgets/app.composite
@@ -18,192 +18,131 @@
* under the License.
-->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://testwidgets" name="testwidgets">
- <service name="page" promote="page"/>
- <component t:x="208" t:y="0" name="page" t:title="when page opens" t:color="green1">
- <t:implementation.python script="nuvem/page.py"/>
- <service name="page" t:visible="false">
- <t:binding.http uri="page"/>
- </service>
- <reference target="pair8" name="content"/>
- </component>
- <component t:x="516" t:y="121" name="pair" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name" name="name"/>
- <reference target="text" name="value"/>
- </component>
- <component t:x="571" t:y="121" name="name" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testh1</property>
+ <component t:x="708" t:y="619" name="property" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text9" name="value"/>
+ <property>testpath2</property>
</component>
- <component t:x="571" t:y="161" name="text" t:title="text" t:color="orange1">
+ <component t:x="905" t:y="615" name="text9" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
- <property>test header 1</property>
+ <property>test path</property>
</component>
- <component t:x="506" t:y="176" name="name3" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testentry</property>
+ <component t:x="413" t:y="315" name="property2" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="property" name="value"/>
+ <property>testpath1</property>
</component>
- <component t:x="506" t:y="216" name="text3" t:title="text" t:color="orange1">
- <t:implementation.python script="nuvem/text.py"/>
- <service name="text"/>
- <property>test entry field</property>
+ <component t:x="411" t:y="281" name="property3" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text6" name="value"/>
+ <property>testimg</property>
</component>
- <component t:x="458" t:y="392" name="text5" t:title="text" t:color="orange1">
+ <component t:x="927" t:y="304" name="text6" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
- <property>test checkbox</property>
+ <property>http://tuscany.apache.org/images/TuscanyLogo.jpg</property>
</component>
- <component t:x="459" t:y="263" name="name2" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testbutton</property>
+ <component t:x="410" t:y="247" name="property4" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text8" name="value"/>
+ <property>testtext</property>
</component>
- <component t:x="458" t:y="302" name="text2" t:title="text" t:color="orange1">
+ <component t:x="790" t:y="441" name="text8" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
- <property>test button</property>
+ <property>test text</property>
</component>
- <component t:x="458" t:y="352" name="name4" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
+ <component t:x="411" t:y="210" name="property5" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text4" name="value"/>
<property>testlink</property>
</component>
- <component t:x="464" t:y="444" name="name5" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testimg</property>
+ <component t:x="842" t:y="340" name="text4" t:title=" '{propval}'" t:color="orange1">
+ <t:implementation.python script="nuvem/text.py"/>
+ <service name="text"/>
+ <property>http://tuscany.apache.org</property>
</component>
- <component t:x="458" t:y="480" name="text6" t:title="text" t:color="orange1">
+ <component t:x="413" t:y="177" name="property6" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text5" name="value"/>
+ <property>testcheckbox</property>
+ </component>
+ <component t:x="790" t:y="336" name="text5" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
- <property>http://tuscany.apache.org/images/TuscanyLogo.jpg</property>
+ <property>test checkbox</property>
</component>
- <component t:x="405" t:y="268" name="pair3" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name3" name="name"/>
+ <component t:x="411" t:y="136" name="property7" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
<reference target="text3" name="value"/>
+ <property>testentry</property>
</component>
- <component t:x="407" t:y="355" name="pair5" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name7" name="name"/>
- <reference target="text5" name="value"/>
+ <component t:x="588" t:y="314" name="text3" t:title=" '{propval}'" t:color="orange1">
+ <t:implementation.python script="nuvem/text.py"/>
+ <service name="text"/>
+ <property>test entry field</property>
</component>
- <component t:x="409" t:y="178" name="pair6" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name2" name="name"/>
+ <component t:x="401" t:y="102" name="property8" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
<reference target="text2" name="value"/>
+ <property>testbutton</property>
</component>
- <component t:x="407" t:y="445" name="pair2" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name4" name="name"/>
- <reference target="text4" name="value"/>
+ <component t:x="775" t:y="212" name="text2" t:title=" '{propval}'" t:color="orange1">
+ <t:implementation.python script="nuvem/text.py"/>
+ <service name="text"/>
+ <property>test button</property>
</component>
- <component t:x="461" t:y="87" name="name6" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
+ <component t:x="411" t:y="66" name="property9" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text7" name="value"/>
<property>testsection</property>
</component>
- <component t:x="458" t:y="128" name="text7" t:title="text" t:color="orange1">
+ <component t:x="780" t:y="147" name="text7" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
<property>test section</property>
</component>
- <component t:x="458" t:y="352" name="name7" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testcheckbox</property>
- </component>
- <component t:x="385" t:y="0" name="name8" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>test</property>
- </component>
- <component t:x="460" t:y="660" name="pair4" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name5" name="name"/>
- <reference target="text6" name="value"/>
- </component>
- <component t:x="460" t:y="569" name="pair9" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name9" name="name"/>
- <reference target="text8" name="value"/>
- </component>
- <component t:x="102" t:y="92" name="name9" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testtext</property>
+ <component t:x="406" t:y="28" name="property10" t:title="{propval} :" t:color="orange1">
+ <t:implementation.python script="nuvem/assoc.py"/>
+ <service name="property"/>
+ <reference target="text" name="value"/>
+ <property>testh1</property>
</component>
- <component t:x="105" t:y="132" name="text8" t:title="text" t:color="orange1">
+ <component t:x="748" t:y="92" name="text" t:title=" '{propval}'" t:color="orange1">
<t:implementation.python script="nuvem/text.py"/>
<service name="text"/>
- <property>test text</property>
- </component>
- <component t:x="458" t:y="128" name="pair7" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name6" name="name"/>
- <reference target="text7" name="value"/>
- </component>
- <component t:x="330" t:y="0" name="pair8" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name8" name="name"/>
- <reference target="list" name="value"/>
+ <property>test header 1</property>
</component>
- <component t:x="385" t:y="40" name="list" t:title="list" t:color="yellow1">
+ <component t:x="308" t:y="37" name="list" t:title="list" t:color="yellow1">
<t:implementation.python script="nuvem/list_.py"/>
<service name="list"/>
- <reference target="pair" name="item" t:clonable="true"/>
- <reference target="pair7" name="item" t:clonable="true"/>
- <reference target="pair6" name="item" t:clonable="true"/>
- <reference target="pair3" name="item" t:clonable="true"/>
- <reference target="pair5" name="item" t:clonable="true"/>
- <reference target="pair2" name="item" t:clonable="true"/>
- <reference target="pair9" name="item" t:clonable="true"/>
- <reference target="pair4" name="item" t:clonable="true"/>
- <reference target="pair10" name="item" t:clonable="true"/>
+ <reference target="property10" name="item" t:clonable="true"/>
+ <reference target="property9" name="item" t:clonable="true"/>
+ <reference target="property8" name="item" t:clonable="true"/>
+ <reference target="property7" name="item" t:clonable="true"/>
+ <reference target="property6" name="item" t:clonable="true"/>
+ <reference target="property5" name="item" t:clonable="true"/>
+ <reference target="property4" name="item" t:clonable="true"/>
+ <reference target="property3" name="item" t:clonable="true"/>
+ <reference target="property2" name="item" t:clonable="true"/>
<reference name="item" t:clonable="true"/>
</component>
- <component t:x="513" t:y="520" name="text4" t:title="text" t:color="orange1">
- <t:implementation.python script="nuvem/text.py"/>
- <service name="text"/>
- <property>http://tuscany.apache.org</property>
- </component>
- <component t:x="515" t:y="541" name="name10" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testpath1</property>
- </component>
- <component t:x="512" t:y="568" name="pair11" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name11" name="name"/>
- <reference target="text9" name="value"/>
- </component>
- <component t:x="571" t:y="567" name="name11" t:title="name" t:color="orange1">
- <t:implementation.python script="nuvem/name.py"/>
- <service name="name"/>
- <property>testpath2</property>
- </component>
- <component t:x="567" t:y="596" name="text9" t:title="text" t:color="orange1">
- <t:implementation.python script="nuvem/text.py"/>
- <service name="text"/>
- <property>test path</property>
- </component>
- <component t:x="457" t:y="540" name="pair10" t:title="pair" t:color="yellow1">
- <t:implementation.python script="nuvem/pair.py"/>
- <service name="pair"/>
- <reference target="name10" name="name"/>
- <reference target="pair11" name="value"/>
+ <service name="appstart" promote="appstart"/>
+ <component t:x="208" t:y="18" name="appstart" t:title="start" t:color="green1">
+ <t:implementation.python script="nuvem/appstart.py"/>
+ <service name="appstart" t:visible="false">
+ <t:binding.http uri="appstart"/>
+ </service>
+ <reference target="list" name="content"/>
</component>
</composite>