diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-01-30 15:56:11 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-01-30 15:56:11 +0000 |
commit | f4c4803ce0c14585e3c2af3641d94b651877e04c (patch) | |
tree | 9f10df32f2d34a3c697aaee897bad0b180922095 /sca-cpp/trunk/hosting/server/data/apps/testwidgets | |
parent | 1b10f18fce6baeb721a725661ded630614831304 (diff) |
Refactor server hosting module, rename it and move it under a hosting dir, and refactor its datastore components into a single component.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1237740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/hosting/server/data/apps/testwidgets')
3 files changed, 244 insertions, 0 deletions
diff --git a/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.composite b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.composite new file mode 100644 index 0000000000..1cb1aee017 --- /dev/null +++ b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.composite @@ -0,0 +1,189 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="app" targetNamespace="http://app"> + <service name="start" promote="start"/> + <component x="170" y="330" name="htattrs1" title="html attrs:" color="cyan1"> + <implementation.python script="nuvem/htattrs.py"/> + <service name="htattrs"/> + <reference target="list2" name="value"/> + </component> + <component name="item" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text9" name="value"/> + <property>testpath2</property> + </component> + <component x="100" y="340" name="item1" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="htattrs1" name="value"/> + <property>testattrs</property> + </component> + <component name="item10" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text" name="value"/> + <property>testh1</property> + </component> + <component x="270" y="370" name="item11" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text10" name="value"/> + <property>onclick</property> + </component> + <component x="280" y="330" name="item12" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text1" name="value"/> + <property>value</property> + </component> + <component name="item2" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="item" name="value"/> + <property>testpath1</property> + </component> + <component name="item3" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text6" name="value"/> + <property>testimg</property> + </component> + <component name="item4" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text8" name="value"/> + <property>testtext</property> + </component> + <component name="item5" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text4" name="value"/> + <property>testlink</property> + </component> + <component name="item6" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text5" name="value"/> + <property>testcheckbox</property> + </component> + <component name="item7" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text3" name="value"/> + <property>testentry</property> + </component> + <component name="item8" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text2" name="value"/> + <property>testbutton</property> + </component> + <component name="item9" title="{propval}:" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text7" name="value"/> + <property>testsection</property> + </component> + <component name="list" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="item10" name="item" clonable="true"/> + <reference target="item9" name="item" clonable="true"/> + <reference target="item8" name="item" clonable="true"/> + <reference target="item7" name="item" clonable="true"/> + <reference target="item6" name="item" clonable="true"/> + <reference target="item5" name="item" clonable="true"/> + <reference target="item4" name="item" clonable="true"/> + <reference target="item3" name="item" clonable="true"/> + <reference target="item2" name="item" clonable="true"/> + <reference target="item1" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component name="list2" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="item12" name="item" clonable="true"/> + <reference target="item11" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component x="17" y="3" name="start" title="start" color="green1"> + <implementation.python script="nuvem/start.py"/> + <service name="start" visible="false"> + <binding.http uri="start"/> + </service> + <reference target="list" name="content"/> + </component> + <component name="text" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test header 1</property> + </component> + <component x="320" y="340" name="text1" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test html attrs</property> + </component> + <component x="370" y="370" name="text10" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>alert('hey')</property> + </component> + <component name="text2" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test button</property> + </component> + <component name="text3" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test entry field</property> + </component> + <component name="text4" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://tuscany.apache.org</property> + </component> + <component name="text5" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test checkbox</property> + </component> + <component name="text6" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://tuscany.apache.org/images/TuscanyLogo.jpg</property> + </component> + <component name="text7" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test section</property> + </component> + <component name="text8" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test text</property> + </component> + <component name="text9" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>test path</property> + </component> +</composite> diff --git a/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.stats b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.stats new file mode 100644 index 0000000000..6a66748ab1 --- /dev/null +++ b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/app.stats @@ -0,0 +1 @@ +((entry (title "Test widgets") (id "testwidgets")))
\ No newline at end of file diff --git a/sca-cpp/trunk/hosting/server/data/apps/testwidgets/htdocs/app.html b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/htdocs/app.html new file mode 100644 index 0000000000..d1422c10ac --- /dev/null +++ b/sca-cpp/trunk/hosting/server/data/apps/testwidgets/htdocs/app.html @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<DIV id="page"> + <SPAN id="testh1" class="h1" style="position: absolute; top: 9px; left: 11px; "> + <H1>=testh1</H1> + </SPAN> + <SPAN id="testsection" class="section" style="position: absolute; top: 45px; width: 100%; left: 11px; "> + <SPAN>=testsection</SPAN> + </SPAN> + <SPAN id="testimg" class="img" style="position: absolute; top: 90px; left: 263px; "> + <IMG src="/public/img.png"/> + </SPAN> + <SPAN id="testbutton" class="button" style="position: absolute; top: 99px; left: 11px; "> + <INPUT type="button" value="=testbutton" class="graybutton"/> + </SPAN> + <SPAN id="testentry" class="entry" style="position: absolute; top: 144px; left: 11px; "> + <INPUT type="text" value="=testentry" size="20" autocapitalize="off"/> + </SPAN> + <SPAN id="testcheckbox" class="checkbox" style="position: absolute; top: 180px; left: 11px; "> + <INPUT type="checkbox" value="=testcheckbox"/> + <SPAN>=testcheckbox</SPAN> + </SPAN> + <SPAN id="testlink" class="link" style="position: absolute; top: 216px; left: 11px; "> + <A href="=testlink"> + <SPAN>=testlink</SPAN> + </A> + </SPAN> + <SPAN id="testattrs" class="text" style="position: absolute; top: 216px; left: 272px; "> + <SPAN>=testattrs</SPAN> + </SPAN> + <SPAN id="testtext" class="text" style="position: absolute; top: 243px; left: 11px; "> + <SPAN>=testtext</SPAN> + </SPAN> + <SPAN id="testpath1.testpath2" class="text" style="position: absolute; top: 270px; left: 11px; "> + <SPAN>=testpath1.testpath2</SPAN> + </SPAN> +</DIV> |