You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/10/28 15:04:26 UTC
svn commit: r830549 - in
/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer:
component_explorer.wtkx layout/background.png layout/form.wtkx
layout/panel.wtkx layout/stack_pane.wtkx navigation/tab_pane.wtkx
Author: tvolkert
Date: Wed Oct 28 14:04:25 2009
New Revision: 830549
URL: http://svn.apache.org/viewvc?rev=830549&view=rev
Log:
Updates to component explorer
Added:
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/background.png (with props)
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/form.wtkx
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/panel.wtkx
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/stack_pane.wtkx
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/navigation/tab_pane.wtkx
Modified:
incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx
Modified: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx?rev=830549&r1=830548&r2=830549&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx (original)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx Wed Oct 28 14:04:25 2009
@@ -86,11 +86,26 @@
src="@layout/border.wtkx"
horizontalScrollBarPolicy="fill"
verticalScrollBarPolicy="fill"/>
+ <explorer:ComponentNode text="StackPane"
+ icon="@magnifier.png"
+ src="@layout/stack_pane.wtkx"
+ horizontalScrollBarPolicy="fill"
+ verticalScrollBarPolicy="fill"/>
<explorer:ComponentNode text="SplitPane"
icon="@magnifier.png"
src="@layout/split_pane.wtkx"
horizontalScrollBarPolicy="fill"
verticalScrollBarPolicy="fill"/>
+ <explorer:ComponentNode text="Form"
+ icon="@magnifier.png"
+ src="@layout/form.wtkx"
+ horizontalScrollBarPolicy="fill"
+ verticalScrollBarPolicy="auto"/>
+ <explorer:ComponentNode text="Panel"
+ icon="@magnifier.png"
+ src="@layout/panel.wtkx"
+ horizontalScrollBarPolicy="fill"
+ verticalScrollBarPolicy="fill"/>
</content:TreeBranch>
<content:TreeBranch text="Navigation Containers"
icon="@folder.png">
@@ -99,6 +114,39 @@
src="@navigation/card_pane.wtkx"
horizontalScrollBarPolicy="fill"
verticalScrollBarPolicy="fill"/>
+ <explorer:ComponentNode text="TabPane"
+ icon="@magnifier.png"
+ src="@navigation/tab_pane.wtkx"
+ horizontalScrollBarPolicy="auto"
+ verticalScrollBarPolicy="auto"/>
+ <explorer:ComponentNode text="Accordion"
+ icon="@magnifier.png"
+ src="@navigation/accordion.wtkx"
+ horizontalScrollBarPolicy="auto"
+ verticalScrollBarPolicy="auto"/>
+ <explorer:ComponentNode text="Expander"
+ icon="@magnifier.png"
+ src="@navigation/expander.wtkx"
+ horizontalScrollBarPolicy="auto"
+ verticalScrollBarPolicy="auto"/>
+ <explorer:ComponentNode text="Rollup"
+ icon="@magnifier.png"
+ src="@navigation/rollup.wtkx"
+ horizontalScrollBarPolicy="auto"
+ verticalScrollBarPolicy="auto"/>
+ <content:TreeBranch text="Viewports"
+ icon="@folder.png">
+ <explorer:ComponentNode text="ScrollPane"
+ icon="@magnifier.png"
+ src="@navigation/scroll_pane.wtkx"
+ horizontalScrollBarPolicy="fill"
+ verticalScrollBarPolicy="fill"/>
+ <explorer:ComponentNode text="Panorama"
+ icon="@magnifier.png"
+ src="@navigation/panorama.wtkx"
+ horizontalScrollBarPolicy="fill"
+ verticalScrollBarPolicy="fill"/>
+ </content:TreeBranch>
</content:TreeBranch>
<content:TreeBranch text="Progress Indicators"
icon="@folder.png">
Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/background.png
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/background.png?rev=830549&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/background.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/form.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/form.wtkx?rev=830549&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/form.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/form.wtkx Wed Oct 28 14:04:25 2009
@@ -0,0 +1,57 @@
+<?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.
+-->
+
+<Form styles="{rightAlignLabels:true}"
+ xmlns:wtkx="http://pivot.apache.org/wtkx"
+ xmlns="org.apache.pivot.wtk">
+ <sections>
+ <Form.Section heading="Personal Information">
+ <BoxPane wtkx:id="nameBoxPane" Form.label="Name">
+ <TextInput wtkx:id="lastNameTextInput" prompt="Last"/>
+ <TextInput wtkx:id="firstNameTextInput" prompt="First"/>
+ </BoxPane>
+ </Form.Section>
+ <Form.Section heading="Addresses">
+ <BoxPane Form.label="Home" orientation="vertical">
+ <TextInput prompt="Street" textSize="24"/>
+ <BoxPane>
+ <TextInput prompt="City"/>
+ <TextInput prompt="State" textSize="6"/>
+ <TextInput prompt="Zip" textSize="10"/>
+ </BoxPane>
+ </BoxPane>
+ <BoxPane Form.label="Work" orientation="vertical">
+ <TextInput prompt="Street" textSize="24"/>
+ <BoxPane>
+ <TextInput prompt="City"/>
+ <TextInput prompt="State" textSize="6"/>
+ <TextInput prompt="Zip" textSize="10"/>
+ </BoxPane>
+ </BoxPane>
+ </Form.Section>
+ <Form.Section heading="Phone Numbers">
+ <TextInput Form.label="Home"/>
+ <TextInput Form.label="Work"/>
+ </Form.Section>
+ <Form.Section heading="Email Addresses">
+ <TextInput Form.label="Home"
+ Form.flag="{messageType:'info', message:'We won\'t spam you!'}"/>
+ <TextInput Form.label="Work"/>
+ </Form.Section>
+ </sections>
+</Form>
Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/panel.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/panel.wtkx?rev=830549&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/panel.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/panel.wtkx Wed Oct 28 14:04:25 2009
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<Panel xmlns:wtkx="http://pivot.apache.org/wtkx"
+ xmlns="org.apache.pivot.wtk">
+ <PushButton buttonData="Button 1"
+ x="30" y="30" width="120" height="24"/>
+ <PushButton buttonData="Button 2"
+ x="50" y="60" width="120" height="24"/>
+ <PushButton buttonData="Button 3"
+ x="70" y="90" width="120" height="24"/>
+</Panel>
Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/stack_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/stack_pane.wtkx?rev=830549&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/stack_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/stack_pane.wtkx Wed Oct 28 14:04:25 2009
@@ -0,0 +1,26 @@
+<?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.
+-->
+
+<StackPane xmlns:wtkx="http://pivot.apache.org/wtkx"
+ xmlns="org.apache.pivot.wtk">
+ <ImageView image="@background.png"
+ styles="{fill:true, preserveAspectRatio:false}"/>
+ <Label text="Stacked Label"
+ styles="{font:'Helvetica bold 64', color:'#ffffff', wrapText:true,
+ horizontalAlignment:'center', verticalAlignment:'center'}"/>
+</StackPane>
Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/navigation/tab_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/navigation/tab_pane.wtkx?rev=830549&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/navigation/tab_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/navigation/tab_pane.wtkx Wed Oct 28 14:04:25 2009
@@ -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.
+-->
+
+<TabPane xmlns:wtkx="http://pivot.apache.org/wtkx"
+ xmlns="org.apache.pivot.wtk">
+ <tabs>
+ <BoxPane TabPane.icon="org/apache/pivot/tutorials/bell.png" TabPane.label="Bell"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+ <Border styles="{padding:2}">
+ <content>
+ <Label text="120x90" preferredWidth="120" preferredHeight="90"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+ </content>
+ </Border>
+ </BoxPane>
+
+ <BoxPane TabPane.icon="org/apache/pivot/tutorials/clock.png" TabPane.label="Clock"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+ <Border styles="{padding:2}">
+ <content>
+ <Label text="240x180" preferredWidth="240" preferredHeight="180"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+ </content>
+ </Border>
+ </BoxPane>
+
+ <BoxPane TabPane.icon="org/apache/pivot/tutorials/house.png" TabPane.label="House"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+ <Border styles="{padding:2}">
+ <content>
+ <Label text="320x240" preferredWidth="320" preferredHeight="240"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+ </content>
+ </Border>
+ </BoxPane>
+
+ <BoxPane TabPane.icon="org/apache/pivot/tutorials/star.png" TabPane.label="Star" enabled="false"/>
+ </tabs>
+</TabPane>