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/27 17:09:23 UTC

svn commit: r830232 - in /incubator/pivot/trunk: ./ demos/src/org/apache/pivot/demos/explorer/ demos/src/org/apache/pivot/demos/explorer/border/ demos/src/org/apache/pivot/demos/explorer/boxpane/ demos/src/org/apache/pivot/demos/explorer/flowpane/ demo...

Author: tvolkert
Date: Tue Oct 27 16:09:22 2009
New Revision: 830232

URL: http://svn.apache.org/viewvc?rev=830232&view=rev
Log:
Updates to component explorer demo, updated build file to make demos project depend on tools

Added:
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentExplorer.java
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentNode.java
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/border.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/box_pane.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/flow_pane.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/folder.png   (with props)
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/magnifier.png   (with props)
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/scroll_bar.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0735_2.jpg   (with props)
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0767_2.jpg   (with props)
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/split_pane.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/table_pane.wtkx
Modified:
    incubator/pivot/trunk/build.xml
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/treeview/tree_view.wtkx

Modified: incubator/pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=830232&r1=830231&r2=830232&view=diff
==============================================================================
--- incubator/pivot/trunk/build.xml (original)
+++ incubator/pivot/trunk/build.xml Tue Oct 27 16:09:22 2009
@@ -418,11 +418,12 @@
     </target>
 
     <!-- Demos -->
-    <target name="demos" depends="core, wtk, web">
+    <target name="demos" depends="core, wtk, web, tools">
         <compile project="demos">
             <pathelement location="core/${folder.bin}"/>
             <pathelement location="web/${folder.bin}"/>
             <pathelement location="wtk/${folder.bin}"/>
+            <pathelement location="tools/${folder.bin}"/>
         </compile>
     </target>
 

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentExplorer.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentExplorer.java?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentExplorer.java (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentExplorer.java Tue Oct 27 16:09:22 2009
@@ -0,0 +1,136 @@
+/*
+ * 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.
+ */
+package org.apache.pivot.demos.explorer;
+
+import java.io.IOException;
+
+import org.apache.pivot.collections.List;
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.collections.Sequence;
+import org.apache.pivot.collections.Sequence.Tree.Path;
+import org.apache.pivot.serialization.SerializationException;
+import org.apache.pivot.tools.wtk.ComponentInspector;
+import org.apache.pivot.tools.wtk.EventLogger;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.Component;
+import org.apache.pivot.wtk.ComponentMouseButtonListener;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.Mouse;
+import org.apache.pivot.wtk.ScrollPane;
+import org.apache.pivot.wtk.TreeView;
+import org.apache.pivot.wtk.TreeViewSelectionListener;
+import org.apache.pivot.wtk.Window;
+import org.apache.pivot.wtkx.WTKXSerializer;
+
+public class ComponentExplorer implements Application {
+    private Window window = null;
+    private TreeView treeView = null;
+    private ScrollPane scrollPane = null;
+    private ComponentInspector componentInspector = null;
+    private EventLogger eventLogger = null;
+
+    @Override
+    @SuppressWarnings({"unchecked"})
+    public void startup(Display display, Map<String, String> properties)
+        throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        window = (Window)wtkxSerializer.readObject(this, "component_explorer.wtkx");
+
+        treeView = wtkxSerializer.getValue("treeView");
+        scrollPane = wtkxSerializer.getValue("scrollPane");
+        componentInspector = wtkxSerializer.getValue("componentInspector");
+        eventLogger = wtkxSerializer.getValue("eventLogger");
+
+        treeView.getTreeViewSelectionListeners().add(new TreeViewSelectionListener.Adapter() {
+            @Override
+            public void selectedPathsChanged(TreeView treeView,
+                Sequence<Path> previousSelectedPaths) {
+                Component component = null;
+
+                Object node = treeView.getSelectedNode();
+                if (node instanceof ComponentNode) {
+                    ComponentNode componentNode = (ComponentNode)node;
+
+                    WTKXSerializer wtkxSerializer = new WTKXSerializer();
+                    try {
+                        component = (Component)wtkxSerializer.readObject(componentNode.getSrc());
+                    } catch (IOException exception) {
+                        throw new RuntimeException(exception);
+                    } catch (SerializationException exception) {
+                        throw new RuntimeException(exception);
+                    }
+
+                    scrollPane.setHorizontalScrollBarPolicy
+                        (componentNode.getHorizontalScrollBarPolicy());
+                    scrollPane.setVerticalScrollBarPolicy
+                        (componentNode.getVerticalScrollBarPolicy());
+                }
+
+                scrollPane.setView(component);
+                componentInspector.setSource(component);
+                eventLogger.setSource(component);
+            }
+        });
+
+        treeView.getComponentMouseButtonListeners().add(new ComponentMouseButtonListener.Adapter() {
+            @Override
+            public boolean mouseClick(Component component, Mouse.Button button, int x, int y,
+                int count) {
+                if (button == Mouse.Button.LEFT && count == 2) {
+                    Path path = treeView.getNodeAt(y);
+
+                    if (path != null) {
+                        List<?> treeData = treeView.getTreeData();
+                        Object treeNode = Sequence.Tree.get(treeData, path);
+
+                        if (treeNode instanceof List<?>) {
+                            treeView.setBranchExpanded(path, !treeView.isBranchExpanded(path));
+                        }
+                    }
+                }
+
+                return false;
+            }
+        });
+
+        treeView.expandAll();
+
+        window.open(display);
+    }
+
+    @Override
+    public boolean shutdown(boolean optional) throws Exception {
+        if (window != null) {
+            window.close();
+        }
+
+        return false;
+    }
+
+    @Override
+    public void suspend() {
+    }
+
+    @Override
+    public void resume() {
+    }
+
+    public static void main(String[] args) {
+        DesktopApplicationContext.main(ComponentExplorer.class, args);
+    }
+}

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentNode.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentNode.java?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentNode.java (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/ComponentNode.java Tue Oct 27 16:09:22 2009
@@ -0,0 +1,63 @@
+/*
+ * 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.
+ */
+package org.apache.pivot.demos.explorer;
+
+import java.net.URL;
+
+import org.apache.pivot.wtk.ScrollPane.ScrollBarPolicy;
+import org.apache.pivot.wtk.content.TreeNode;
+
+/**
+ * Node in the component explorer's tree view that represents a component type.
+ */
+public class ComponentNode extends TreeNode {
+    private URL src = null;
+    private ScrollBarPolicy horizontalScrollBarPolicy;
+    private ScrollBarPolicy verticalScrollBarPolicy;
+
+    public URL getSrc() {
+        return src;
+    }
+
+    public void setSrc(URL src) {
+        this.src = src;
+    }
+
+    public ScrollBarPolicy getHorizontalScrollBarPolicy() {
+        return horizontalScrollBarPolicy;
+    }
+
+    public void setHorizontalScrollBarPolicy(ScrollBarPolicy horizontalScrollBarPolicy) {
+        this.horizontalScrollBarPolicy = horizontalScrollBarPolicy;
+    }
+
+    public void setHorizontalScrollBarPolicy(String horizontalScrollBarPolicy) {
+        setHorizontalScrollBarPolicy(ScrollBarPolicy.valueOf(horizontalScrollBarPolicy.toUpperCase()));
+    }
+
+    public ScrollBarPolicy getVerticalScrollBarPolicy() {
+        return verticalScrollBarPolicy;
+    }
+
+    public void setVerticalScrollBarPolicy(ScrollBarPolicy verticalScrollBarPolicy) {
+        this.verticalScrollBarPolicy = verticalScrollBarPolicy;
+    }
+
+    public void setVerticalScrollBarPolicy(String verticalScrollBarPolicy) {
+        setVerticalScrollBarPolicy(ScrollBarPolicy.valueOf(verticalScrollBarPolicy.toUpperCase()));
+    }
+}

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/border.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/border.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/border.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/border/border.wtkx Tue Oct 27 16:09:22 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.
+-->
+
+<Border title="Border 1" styles="{padding:2}"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <content>
+        <Label text="Default border with title" styles="{horizontalAlignment:'center',
+            verticalAlignment:'center', wrapText:true}"/>
+    </content>
+</Border>

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/box_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/box_pane.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/box_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/boxpane/box_pane.wtkx Tue Oct 27 16:09:22 2009
@@ -0,0 +1,24 @@
+<?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.
+-->
+
+<BoxPane xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <PushButton buttonData="One"/>
+    <PushButton buttonData="Two"/>
+    <PushButton buttonData="Three"/>
+</BoxPane>

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=830232&r1=830231&r2=830232&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 Tue Oct 27 16:09:22 2009
@@ -18,40 +18,114 @@
 
 <Window title="Apache Pivot Component Explorer" maximized="true"
     xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns:content="org.apache.pivot.wtk.content"
     xmlns:tools="org.apache.pivot.tools.wtk"
+    xmlns:explorer="org.apache.pivot.demos.explorer"
     xmlns="org.apache.pivot.wtk">
     <content>
-        <SplitPane orientation="vertical" splitRatio="0.6">
-            <top>
-                <SplitPane orientation="horizontal" splitRatio="0.6">
-                    <left>
-                        <Border>
-                            <content>
-                                <ScrollPane wtkx:id="scrollPane"
-                                    horizontalScrollBarPolicy="fill_to_capacity">
-                                    <view>
-                                        <wtkx:include src="treeview/tree_view.wtkx"/>
-                                    </view>
-                                </ScrollPane>
-                            </content>
-                        </Border>
-                    </left>
-                    <right>
+        <SplitPane orientation="horizontal" splitRatio="0.25">
+            <left>
+                <Border>
+                    <content>
+                        <TreeView wtkx:id="treeView">
+                            <nodeRenderer>
+                                <content:TreeViewNodeRenderer styles="{padding:1}"/>
+                            </nodeRenderer>
+                            <treeData>
+                                <content:TreeBranch>
+                                    <content:TreeBranch text="Buttons" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Lists" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Text" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Layout Containers" icon="@folder.png">
+                                        <explorer:ComponentNode text="FlowPane"
+                                            icon="@magnifier.png"
+                                            src="@flowpane/flow_pane.wtkx"
+                                            horizontalScrollBarPolicy="fill"
+                                            verticalScrollBarPolicy="fill"/>
+                                        <explorer:ComponentNode text="BoxPane"
+                                            icon="@magnifier.png"
+                                            src="@boxpane/box_pane.wtkx"
+                                            horizontalScrollBarPolicy="fill"
+                                            verticalScrollBarPolicy="fill"/>
+                                        <explorer:ComponentNode text="TablePane"
+                                            icon="@magnifier.png"
+                                            src="@tablepane/table_pane.wtkx"
+                                            horizontalScrollBarPolicy="fill"
+                                            verticalScrollBarPolicy="fill"/>
+                                        <explorer:ComponentNode text="Border"
+                                            icon="@magnifier.png"
+                                            src="@border/border.wtkx"
+                                            horizontalScrollBarPolicy="fill"
+                                            verticalScrollBarPolicy="fill"/>
+                                        <explorer:ComponentNode text="SplitPane"
+                                            icon="@magnifier.png"
+                                            src="@splitpane/split_pane.wtkx"
+                                            horizontalScrollBarPolicy="fill"
+                                            verticalScrollBarPolicy="fill"/>
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Navigation Containers" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Progress Indicators" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Bounded Range Components"
+                                        icon="@folder.png">
+                                        <explorer:ComponentNode text="ScrollBar"
+                                            icon="@magnifier.png"
+                                            src="@scrollbar/scroll_bar.wtkx"
+                                            horizontalScrollBarPolicy="auto"
+                                            verticalScrollBarPolicy="auto"/>
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Calendars" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Menus" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Table Views" icon="@folder.png">
+                                    </content:TreeBranch>
+                                    <content:TreeBranch text="Tree Views" icon="@folder.png">
+                                        <explorer:ComponentNode text="TreeView"
+                                            icon="@magnifier.png"
+                                            src="@treeview/tree_view.wtkx"
+                                            horizontalScrollBarPolicy="fill_to_capacity"
+                                            verticalScrollBarPolicy="auto"/>
+                                    </content:TreeBranch>
+                                </content:TreeBranch>
+                            </treeData>
+                        </TreeView>
+                    </content>
+                </Border>
+            </left>
+            <right>
+                <SplitPane orientation="vertical" splitRatio="0.6">
+                    <top>
+                        <SplitPane orientation="horizontal" splitRatio="0.5">
+                            <left>
+                                <Border>
+                                    <content>
+                                        <ScrollPane wtkx:id="scrollPane"/>
+                                    </content>
+                                </Border>
+                            </left>
+                            <right>
+                                <Border>
+                                    <content>
+                                        <tools:ComponentInspector wtkx:id="componentInspector"/>
+                                    </content>
+                                </Border>
+                            </right>
+                        </SplitPane>
+                    </top>
+                    <bottom>
                         <Border>
                             <content>
-                                <tools:ComponentInspector source="$treeView"/>
+                                <tools:EventLogger wtkx:id="eventLogger"/>
                             </content>
                         </Border>
-                    </right>
+                    </bottom>
                 </SplitPane>
-            </top>
-            <bottom>
-                <Border>
-                    <content>
-                        <tools:EventLogger source="$treeView"/>
-                    </content>
-                </Border>
-            </bottom>
+            </right>
         </SplitPane>
     </content>
 </Window>

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/flow_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/flow_pane.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/flow_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/flowpane/flow_pane.wtkx Tue Oct 27 16:09:22 2009
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<FlowPane xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <PushButton buttonData="0" styles="{minimumAspectRatio:1.5}"/>
+    <PushButton buttonData="1" styles="{minimumAspectRatio:1.5}"/>
+    <PushButton buttonData="2" styles="{minimumAspectRatio:1.5}"/>
+    <PushButton buttonData="3" preferredWidth="20" preferredHeight="20"/>
+    <PushButton buttonData="4" preferredWidth="30" preferredHeight="30"/>
+    <PushButton buttonData="5" preferredWidth="40" preferredHeight="40"/>
+    <PushButton buttonData="6" styles="{minimumAspectRatio:1.5}"/>
+    <PushButton buttonData="7" styles="{minimumAspectRatio:1.5}"/>
+</FlowPane>

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/folder.png
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/folder.png?rev=830232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/folder.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/magnifier.png
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/magnifier.png?rev=830232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/magnifier.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/scroll_bar.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/scroll_bar.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/scroll_bar.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/scrollbar/scroll_bar.wtkx Tue Oct 27 16:09:22 2009
@@ -0,0 +1,21 @@
+<?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.
+-->
+
+<ScrollBar start="0" end="100" extent="10" wtkx:id="scrollBar"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk"/>

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0735_2.jpg
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0735_2.jpg?rev=830232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0735_2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0767_2.jpg
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0767_2.jpg?rev=830232&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/IMG_0767_2.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/split_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/split_pane.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/split_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/splitpane/split_pane.wtkx Tue Oct 27 16:09:22 2009
@@ -0,0 +1,33 @@
+<?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.
+-->
+
+<SplitPane wtkx:id="splitPane" orientation="horizontal" splitRatio="0.5"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns:tools="org.apache.pivot.tools.wtk"
+    xmlns="org.apache.pivot.wtk">
+    <left>
+        <ImageView asynchronous="true"
+            image="@IMG_0735_2.jpg"
+            styles="{backgroundColor:'#404040'}"/>
+    </left>
+    <right>
+        <ImageView asynchronous="true"
+            image="@IMG_0767_2.jpg"
+            styles="{backgroundColor:'#404040'}"/>
+    </right>
+</SplitPane>

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/table_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/table_pane.wtkx?rev=830232&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/table_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/tablepane/table_pane.wtkx Tue Oct 27 16:09:22 2009
@@ -0,0 +1,52 @@
+<?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.
+-->
+
+<TablePane styles="{verticalSpacing:1, showHorizontalGridLines:true,
+    horizontalSpacing:1, showVerticalGridLines:true}"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <columns>
+        <TablePane.Column width="-1"/>
+        <TablePane.Column width="50"/>
+        <TablePane.Column width="-1"/>
+        <TablePane.Column width="1*"/>
+        <TablePane.Column width="2*"/>
+    </columns>
+
+    <rows>
+        <TablePane.Row height="-1">
+            <TablePane.Filler/>
+            <Label text="50" styles="{horizontalAlignment:'center'}"/>
+            <Label text="-1" styles="{horizontalAlignment:'center'}"/>
+            <Label text="1*" styles="{horizontalAlignment:'center'}"/>
+            <Label text="2*" styles="{horizontalAlignment:'center'}"/>
+        </TablePane.Row>
+        <TablePane.Row height="50">
+            <Label text="50" styles="{verticalAlignment:'center'}"/>
+        </TablePane.Row>
+        <TablePane.Row height="-1">
+            <Label text="-1" styles="{verticalAlignment:'center'}"/>
+        </TablePane.Row>
+        <TablePane.Row height="1*">
+            <Label text="1*" styles="{verticalAlignment:'center'}"/>
+        </TablePane.Row>
+        <TablePane.Row height="2*">
+            <Label text="2*" styles="{verticalAlignment:'center'}"/>
+        </TablePane.Row>
+    </rows>
+</TablePane>

Modified: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/treeview/tree_view.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/treeview/tree_view.wtkx?rev=830232&r1=830231&r2=830232&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/treeview/tree_view.wtkx (original)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/treeview/tree_view.wtkx Tue Oct 27 16:09:22 2009
@@ -19,7 +19,8 @@
 <TreeView wtkx:id="treeView"
     xmlns:wtkx="http://pivot.apache.org/wtkx"
     xmlns:content="org.apache.pivot.wtk.content"
-    xmlns="org.apache.pivot.wtk">
+    xmlns="org.apache.pivot.wtk"
+    ComponentListener.parentChanged="treeView.expandAll();">
     <nodeRenderer>
         <content:TreeViewNodeRenderer showIcon="true"/>
     </nodeRenderer>
@@ -28,6 +29,45 @@
             <content:TreeBranch text="Activity" icon="@folder.png">
                 <content:TreeBranch text="Games" icon="@folder.png">
                     <content:TreeNode text="Foosball" icon="@page_white.png"/>
+                    <content:TreeNode text="A very long game name that just serves to show how a wide tree node behaves" icon="@page_white.png"/>
+                    <content:TreeNode text="Ping Pong" icon="@page_white.png"/>
+                    <content:TreeNode text="Air Hockey" icon="@page_white.png"/>
+                </content:TreeBranch>
+                <content:TreeBranch text="Sports" icon="@folder.png">
+                    <content:TreeNode text="Baseball" icon="@page_white.png"/>
+                    <content:TreeNode text="Basketball" icon="@page_white.png"/>
+                    <content:TreeNode text="Football" icon="@page_white.png"/>
+                    <content:TreeNode text="Ice Hockey" icon="@page_white.png"/>
+                    <content:TreeNode text="Soccer" icon="@page_white.png"/>
+                    <content:TreeNode text="Softball" icon="@page_white.png"/>
+                </content:TreeBranch>
+                <content:TreeNode text="Camping" icon="@page_white.png"/>
+                <content:TreeNode text="Skiing" icon="@page_white.png"/>
+            </content:TreeBranch>
+            <content:TreeBranch text="Occasion" icon="@folder.png">
+                <content:TreeBranch text="Holidays" icon="@folder.png">
+                    <content:TreeNode text="Christmas" icon="@page_white.png"/>
+                    <content:TreeNode text="Independence Day" icon="@page_white.png"/>
+                    <content:TreeNode text="Labor Day" icon="@page_white.png"/>
+                    <content:TreeNode text="New Year's Day" icon="@page_white.png"/>
+                    <content:TreeNode text="President's Day" icon="@page_white.png"/>
+                    <content:TreeNode text="Thanksgiving" icon="@page_white.png"/>
+                    <content:TreeNode text="Valentine's Day" icon="@page_white.png"/>
+                    <content:TreeNode text="Veteran's Day" icon="@page_white.png"/>
+                </content:TreeBranch>
+                <content:TreeNode text="Anniversary" icon="@page_white.png"/>
+                <content:TreeNode text="Birthday" icon="@page_white.png"/>
+                <content:TreeNode text="Wedding" icon="@page_white.png"/>
+            </content:TreeBranch>
+            <content:TreeBranch text="Location" icon="@folder.png">
+                <content:TreeNode text="Africa" icon="@folder.png"/>
+                <content:TreeNode text="Antarctica" icon="@folder.png"/>
+                <content:TreeNode text="Asia" icon="@folder.png"/>
+                <content:TreeNode text="Australia" icon="@folder.png"/>
+                <content:TreeNode text="Europe" icon="@folder.png"/>
+                <content:TreeNode text="North America" icon="@folder.png"/>
+                <content:TreeBranch text="South America" icon="@folder.png">
+                    <content:TreeNode text="Peru" icon="@page_white.png"/>
                 </content:TreeBranch>
             </content:TreeBranch>
         </content:TreeBranch>