You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/08/07 16:45:03 UTC
svn commit: r1370285 - in /pivot/site/trunk/deploy/assets-for-tests: ./
application_form.png dialog.bxml frame.bxml palette.bxml sheet.bxml
Author: smartini
Date: Tue Aug 7 14:45:03 2012
New Revision: 1370285
URL: http://svn.apache.org/viewvc?rev=1370285&view=rev
Log:
manual add some bxml (and related) resources (to simulate bxml files generated at server side), to make some loading test from Client applications
Added:
pivot/site/trunk/deploy/assets-for-tests/
pivot/site/trunk/deploy/assets-for-tests/application_form.png (with props)
pivot/site/trunk/deploy/assets-for-tests/dialog.bxml
pivot/site/trunk/deploy/assets-for-tests/frame.bxml
pivot/site/trunk/deploy/assets-for-tests/palette.bxml
pivot/site/trunk/deploy/assets-for-tests/sheet.bxml
Added: pivot/site/trunk/deploy/assets-for-tests/application_form.png
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/assets-for-tests/application_form.png?rev=1370285&view=auto
==============================================================================
Binary file - no diff available.
Propchange: pivot/site/trunk/deploy/assets-for-tests/application_form.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: pivot/site/trunk/deploy/assets-for-tests/dialog.bxml
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/assets-for-tests/dialog.bxml?rev=1370285&view=auto
==============================================================================
--- pivot/site/trunk/deploy/assets-for-tests/dialog.bxml (added)
+++ pivot/site/trunk/deploy/assets-for-tests/dialog.bxml Tue Aug 7 14:45:03 2012
@@ -0,0 +1,40 @@
+<?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.
+-->
+
+<Dialog bxml:id="dialog" title="Dialog" modal="true"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns="org.apache.pivot.wtk">
+ <TablePane preferredWidth="320" preferredHeight="210">
+ <columns>
+ <TablePane.Column width="1*"/>
+ </columns>
+
+ <TablePane.Row height="1*">
+ <Label text="This is a dialog."
+ preferredWidth="320" preferredHeight="210"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+ </TablePane.Row>
+
+ <TablePane.Row height="-1">
+ <BoxPane styles="{horizontalAlignment:'right'}">
+ <PushButton buttonData="Close"
+ ButtonPressListener.buttonPressed="dialog.close()"/>
+ </BoxPane>
+ </TablePane.Row>
+ </TablePane>
+</Dialog>
Added: pivot/site/trunk/deploy/assets-for-tests/frame.bxml
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/assets-for-tests/frame.bxml?rev=1370285&view=auto
==============================================================================
--- pivot/site/trunk/deploy/assets-for-tests/frame.bxml (added)
+++ pivot/site/trunk/deploy/assets-for-tests/frame.bxml Tue Aug 7 14:45:03 2012
@@ -0,0 +1,94 @@
+<?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.
+-->
+
+<Frame bxml:id="frame" icon="@application_form.png"
+ preferredWidth="480" preferredHeight="360"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns:content="org.apache.pivot.wtk.content"
+ xmlns="org.apache.pivot.wtk">
+ <bxml:define>
+ <bxml:include bxml:id="dialog" src="dialog.bxml"/>
+ <bxml:include bxml:id="sheet" src="sheet.bxml"/>
+ </bxml:define>
+
+ <bxml:script>
+ var palette = null;
+ </bxml:script>
+
+ <BoxPane orientation="vertical">
+ <PushButton buttonData="Show Alert">
+ <buttonPressListeners>
+ <![CDATA[
+ importPackage(org.apache.pivot.wtk);
+ function buttonPressed(button) {
+ Alert.alert("This is an Alert.", frame);
+ }
+ ]]>
+ </buttonPressListeners>
+ </PushButton>
+
+ <PushButton buttonData="Show Prompt">
+ <buttonPressListeners>
+ <![CDATA[
+ importPackage(org.apache.pivot.wtk);
+ function buttonPressed(button) {
+ Prompt.prompt("This is a Prompt.", frame);
+ }
+ ]]>
+ </buttonPressListeners>
+ </PushButton>
+
+ <PushButton buttonData="Show Dialog">
+ <buttonPressListeners>
+ <![CDATA[
+ importPackage(org.apache.pivot.wtk);
+ function buttonPressed(button) {
+ dialog.open(frame, null);
+ }
+ ]]>
+ </buttonPressListeners>
+ </PushButton>
+
+ <PushButton buttonData="Show Sheet">
+ <buttonPressListeners>
+ <![CDATA[
+ importPackage(org.apache.pivot.wtk);
+ function buttonPressed(button) {
+ sheet.open(frame, null);
+ }
+ ]]>
+ </buttonPressListeners>
+ </PushButton>
+
+ <PushButton buttonData="Show Palette">
+ <buttonPressListeners>
+ <![CDATA[
+ importPackage(org.apache.pivot.wtk);
+ function buttonPressed(button) {
+ if (palette == null) {
+ palette = application.load("palette.bxml");
+ palette.setLocation(frame.getX() + frame.getWidth() + 20, frame.getY() + 20);
+ }
+
+ palette.open(frame);
+ }
+ ]]>
+ </buttonPressListeners>
+ </PushButton>
+ </BoxPane>
+</Frame>
Added: pivot/site/trunk/deploy/assets-for-tests/palette.bxml
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/assets-for-tests/palette.bxml?rev=1370285&view=auto
==============================================================================
--- pivot/site/trunk/deploy/assets-for-tests/palette.bxml (added)
+++ pivot/site/trunk/deploy/assets-for-tests/palette.bxml Tue Aug 7 14:45:03 2012
@@ -0,0 +1,30 @@
+<?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.
+-->
+
+<Palette title="Palette" preferredWidth="60" preferredHeight="120"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns="org.apache.pivot.wtk">
+ <FlowPane styles="{padding:1}">
+ <PushButton buttonData="1" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ <PushButton buttonData="2" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ <PushButton buttonData="3" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ <PushButton buttonData="4" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ <PushButton buttonData="5" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ <PushButton buttonData="6" styles="{toolbar:true, minimumAspectRatio:1, maximumAspectRatio:1}"/>
+ </FlowPane>
+</Palette>
Added: pivot/site/trunk/deploy/assets-for-tests/sheet.bxml
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/assets-for-tests/sheet.bxml?rev=1370285&view=auto
==============================================================================
--- pivot/site/trunk/deploy/assets-for-tests/sheet.bxml (added)
+++ pivot/site/trunk/deploy/assets-for-tests/sheet.bxml Tue Aug 7 14:45:03 2012
@@ -0,0 +1,42 @@
+<?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.
+-->
+
+<Sheet bxml:id="sheet" title="Sheet"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns="org.apache.pivot.wtk">
+ <BoxPane styles="{verticalAlignment:'bottom'}">
+ <TablePane>
+ <columns>
+ <TablePane.Column width="1*"/>
+ </columns>
+
+ <TablePane.Row height="1*">
+ <Label text="This is a sheet."
+ preferredWidth="320" preferredHeight="210"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+ </TablePane.Row>
+
+ <TablePane.Row height="-1">
+ <BoxPane styles="{horizontalAlignment:'right'}">
+ <PushButton buttonData="Close"
+ ButtonPressListener.buttonPressed="sheet.close()"/>
+ </BoxPane>
+ </TablePane.Row>
+ </TablePane>
+ </BoxPane>
+</Sheet>