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/03/16 17:36:28 UTC

svn commit: r754936 [8/38] - in /incubator/pivot/tags/v1.0.1: ./ charts-test/ charts-test/src/ charts-test/src/pivot/ charts-test/src/pivot/charts/ charts-test/src/pivot/charts/test/ charts/ charts/lib/ charts/src/ charts/src/pivot/ charts/src/pivot/ch...

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.buttons;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.Checkbox;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.ImageView;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class Checkboxes implements Application {
+    private class ButtonPressHandler implements ButtonPressListener {
+        public void buttonPressed(Button button) {
+            ImageView imageView = (ImageView)button.getUserData();
+            imageView.setDisplayable(!imageView.isDisplayable());
+        }
+    }
+
+    private Window window = null;
+    private ButtonPressHandler buttonPressHandler = new ButtonPressHandler();
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/checkboxes.wtkx");
+
+        // Wire up user data and event listeners
+        Checkbox bellCheckbox =
+            (Checkbox)wtkxSerializer.getObjectByName("bellCheckbox");
+        ImageView bellImageView =
+            (ImageView)wtkxSerializer.getObjectByName("bellImageView");
+        bellCheckbox.setUserData(bellImageView);
+        bellCheckbox.getButtonPressListeners().add(buttonPressHandler);
+
+        Checkbox clockCheckbox =
+            (Checkbox)wtkxSerializer.getObjectByName("clockCheckbox");
+        ImageView clockImageView =
+            (ImageView)wtkxSerializer.getObjectByName("clockImageView");
+        clockCheckbox.setUserData(clockImageView);
+        clockCheckbox.getButtonPressListeners().add(buttonPressHandler);
+
+        Checkbox houseCheckbox =
+            (Checkbox)wtkxSerializer.getObjectByName("houseCheckbox");
+        ImageView houseImageView =
+            (ImageView)wtkxSerializer.getObjectByName("houseImageView");
+        houseCheckbox.setUserData(houseImageView);
+        houseCheckbox.getButtonPressListeners().add(buttonPressHandler);
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.buttons;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.CardPane;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.LinkButton;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class LinkButtons implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/link_buttons.wtkx");
+
+        final CardPane cardPane = (CardPane)wtkxSerializer.getObjectByName("cardPane");
+
+        LinkButton nextButton = (LinkButton)wtkxSerializer.getObjectByName("nextButton");
+        nextButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                cardPane.setSelectedIndex(1);
+            }
+        });
+
+        LinkButton previousButton = (LinkButton)wtkxSerializer.getObjectByName("previousButton");
+        previousButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                cardPane.setSelectedIndex(0);
+            }
+        });
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.buttons;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Alert;
+import pivot.wtk.Application;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.MessageType;
+import pivot.wtk.PushButton;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class PushButtons implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/push_buttons.wtkx");
+
+        // Get a reference to the button and add a button press listener
+        PushButton pushButton =
+            (PushButton)wtkxSerializer.getObjectByName("pushButton");
+        pushButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                Alert.alert(MessageType.INFO, "You clicked me!", window);
+            }
+        });
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.buttons;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Alert;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.Display;
+import pivot.wtk.MessageType;
+import pivot.wtk.PushButton;
+import pivot.wtk.RadioButton;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class RadioButtons implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/radio_buttons.wtkx");
+
+        // Get a reference to the button group
+        RadioButton oneButton =
+            (RadioButton)wtkxSerializer.getObjectByName("oneButton");
+        final Button.Group numbersGroup = oneButton.getGroup();
+
+        // Add a button press listener
+        PushButton selectButton =
+            (PushButton)wtkxSerializer.getObjectByName("selectButton");
+
+        selectButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                String message = "You selected \""
+                    + numbersGroup.getSelection().getButtonData()
+                    + "\".";
+                Alert.alert(MessageType.INFO, message, window);
+            }
+        });
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.buttons;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class ToggleButtons implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/buttons/toggle_buttons.wtkx");
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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="{showHorizontalGridLines: true, showVerticalGridLines:true, padding:4, horizontalSpacing:1, verticalSpacing:1, gridColor:10}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">>
+    <columns>
+        <TablePane.Column width="-1"/>
+        <TablePane.Column width="24"/>
+    </columns>
+
+    <rows>
+        <TablePane.Row height="24">
+            <FlowPane styles="{verticalAlignment:'center'}">
+                <Checkbox wtkx:id="bellCheckbox" buttonData="Bell"/>
+            </FlowPane>
+            <ImageView wtkx:id="bellImageView" image="pivot/tutorials/bell.png" displayable="false"/>
+        </TablePane.Row>
+
+        <TablePane.Row height="24">
+            <FlowPane styles="{verticalAlignment:'center'}">
+                <Checkbox wtkx:id="clockCheckbox" buttonData="Clock"/>
+            </FlowPane>
+            <ImageView wtkx:id="clockImageView" image="pivot/tutorials/clock.png" displayable="false"/>
+        </TablePane.Row>
+
+        <TablePane.Row height="24">
+            <FlowPane styles="{verticalAlignment:'center'}">
+                <Checkbox wtkx:id="houseCheckbox" buttonData="House"/>
+            </FlowPane>
+            <ImageView wtkx:id="houseImageView" image="pivot/tutorials/house.png" displayable="false"/>
+        </TablePane.Row>
+    </rows>
+</TablePane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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.
+-->
+
+<CardPane wtkx:id="cardPane" selectedIndex="0"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <FlowPane orientation="vertical" styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+        <ImageView image="pivot/tutorials/IMG_0735_2.jpg"/>
+        <LinkButton wtkx:id="nextButton">
+            <buttonData>
+                <content:ButtonData text="Next" icon="@resultset_next.png"/>
+            </buttonData>
+        </LinkButton>
+    </FlowPane>
+
+    <FlowPane orientation="vertical" styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+        <ImageView image="pivot/tutorials/IMG_0767_2.jpg"/>
+        <LinkButton wtkx:id="previousButton">
+            <buttonData>
+                <content:ButtonData text="Previous" icon="@resultset_previous.png"/>
+            </buttonData>
+        </LinkButton>
+    </FlowPane>
+</CardPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 styles="{padding:4, horizontalAlignment:'center', verticalAlignment:'center'}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <PushButton wtkx:id="pushButton" buttonData="Click Me!"/>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 orientation="vertical" styles="{padding:4}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <RadioButton wtkx:id="oneButton" buttonData="One" group="numbers" selected="true"/>
+    <RadioButton wtkx:id="twoButton" buttonData="Two" group="numbers"/>
+    <RadioButton wtkx:id="threeButton" buttonData="Three" group="numbers"/>
+    <PushButton wtkx:id="selectButton" buttonData="Select"/>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_previous.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_previous.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/resultset_previous.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 styles="{padding:4, horizontalAlignment:'center', verticalAlignment:'center'}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <PushButton toggleButton="true">
+        <buttonData>
+            <content:ButtonData text="Anchor" icon="pivot/tutorials/anchor.png"/>
+        </buttonData>
+    </PushButton>
+    <PushButton toggleButton="true">
+        <buttonData>
+            <content:ButtonData text="Cup" icon="pivot/tutorials/cup.png"/>
+        </buttonData>
+    </PushButton>
+    <PushButton toggleButton="true">
+        <buttonData>
+            <content:ButtonData text="Star" icon="pivot/tutorials/star.png"/>
+        </buttonData>
+    </PushButton>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/clock.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/clock.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/clock.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/cup.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/cup.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/cup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/demo.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/demo.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/demo.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/demo.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 styles="{backgroundColor:10, thickness:0, padding:8}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <content>
+        <Border styles="{padding:0}">
+            <content>
+                <ScrollPane wtkx:id="scrollPane" styles="{backgroundColor:11}">
+                    <view>
+                        <FlowPane orientation="vertical" styles="{padding:6}">
+                            <Rollup expanded="true">
+                                <Label text="Buttons" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="buttons" src="buttons.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Lists" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="lists" src="lists.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Text" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="text" src="text.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Navigation" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="navigation" src="navigation.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Splitters" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="splitters" src="splitters.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Menus" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="menus" src="menus.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Meters" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="meters" src="meters.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Spinners" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="spinners" src="spinners.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Tables" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="tables" src="tables.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Trees" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="trees" src="trees.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Drag &amp; Drop" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="dragdrop" src="dragdrop.wtkx"/>
+                            </Rollup>
+                            <Rollup>
+                                <Label text="Alerts &amp; Prompts" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="alerts" src="alerts.wtkx"/>
+                            </Rollup>
+                        </FlowPane>
+                    </view>
+                </ScrollPane>
+            </content>
+        </Border>
+    </content>
+</Border>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-new.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-new.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-new.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-open.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-open.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-open.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save-as.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save-as.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save-as.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/document-save.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/dragdrop.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/dragdrop.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/dragdrop.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/dragdrop.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <Border styles="{padding:0}">
+        <content>
+            <ImageView wtkx:id="imageView1" image="@go-home.png" preferredWidth="48" preferredHeight="48"/>
+        </content>
+    </Border>
+    <Border styles="{padding:0}">
+        <content>
+            <ImageView wtkx:id="imageView2" image="@weather-few-clouds.png" preferredWidth="48" preferredHeight="48"/>
+        </content>
+    </Border>
+    <Border styles="{padding:0}">
+        <content>
+            <ImageView wtkx:id="imageView3" preferredWidth="48" preferredHeight="48"/>
+        </content>
+    </Border>
+</FlowPane>
+

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-copy.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-copy.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-copy.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-cut.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-cut.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-cut.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-delete.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-delete.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-delete.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-paste.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-paste.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-paste.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-redo.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-redo.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-redo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-select-all.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-select-all.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-select-all.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-undo.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-undo.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/edit-undo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/flag_red.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/flag_red.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/flag_red.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/folder.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/folder.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/folder.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/go-home.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/go-home.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/go-home.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/hello.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/hello.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/hello.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/hello.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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.
+-->
+
+<Label text="Hello WTKX!"
+    styles="{font:'Arial bold 24', color:'#ff0000', horizontalAlignment:'center', verticalAlignment:'center'}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk"/>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/help.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/help.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/help.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/house.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/house.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/house.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/Labels.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/Labels.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/Labels.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/Labels.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.labels;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class Labels implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/labels/labels.wtkx");
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/labels.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/labels.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/labels.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/labels/labels.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 styles="{padding:4, verticalAlignment:'center'}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <ImageView image="pivot/tutorials/clock.png" cursor="crosshair"/>
+    <Label text="What time is it?"/>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/03big.jpg
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/03big.jpg?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/03big.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,174 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.layout;
+
+import pivot.collections.Dictionary;
+import pivot.util.Vote;
+import pivot.wtk.Application;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonStateListener;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.FlowPane;
+import pivot.wtk.HorizontalAlignment;
+import pivot.wtk.Orientation;
+import pivot.wtk.RadioButton;
+import pivot.wtk.Theme;
+import pivot.wtk.VerticalAlignment;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class FlowPanes implements Application, ButtonStateListener {
+    private FlowPane flowPane = null;
+    private RadioButton horizontalOrientationButton = null;
+    private RadioButton verticalOrientationButton = null;
+    private RadioButton horizontalAlignmentRightButton = null;
+    private RadioButton horizontalAlignmentLeftButton = null;
+    private RadioButton horizontalAlignmentCenterButton = null;
+    private RadioButton horizontalAlignmentJustifyButton = null;
+    private RadioButton verticalAlignmentTopButton = null;
+    private RadioButton verticalAlignmentBottomButton = null;
+    private RadioButton verticalAlignmentCenterButton = null;
+    private RadioButton verticalAlignmentJustifyButton = null;
+
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        String themeClassName = properties.get("themeClassName");
+
+        if (themeClassName != null) {
+            Class<?> themeClass = Class.forName(themeClassName);
+            Theme.setTheme((Theme)themeClass.newInstance());
+        }
+
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/layout/flowpanes.wtkx");
+
+        flowPane = (FlowPane)wtkxSerializer.getObjectByName("flowPane");
+
+        // Orientation
+        horizontalOrientationButton =
+            (RadioButton)wtkxSerializer.getObjectByName("horizontalOrientationButton");
+        horizontalOrientationButton.getButtonStateListeners().add(this);
+
+        verticalOrientationButton =
+            (RadioButton)wtkxSerializer.getObjectByName("verticalOrientationButton");
+        verticalOrientationButton.getButtonStateListeners().add(this);
+
+        // Horizontal alignment
+        horizontalAlignmentLeftButton =
+            (RadioButton)wtkxSerializer.getObjectByName("horizontalAlignmentLeftButton");
+        horizontalAlignmentLeftButton.getButtonStateListeners().add(this);
+
+        horizontalAlignmentRightButton =
+            (RadioButton)wtkxSerializer.getObjectByName("horizontalAlignmentRightButton");
+        horizontalAlignmentRightButton.getButtonStateListeners().add(this);
+
+        horizontalAlignmentCenterButton =
+            (RadioButton)wtkxSerializer.getObjectByName("horizontalAlignmentCenterButton");
+        horizontalAlignmentCenterButton.getButtonStateListeners().add(this);
+
+        horizontalAlignmentJustifyButton =
+            (RadioButton)wtkxSerializer.getObjectByName("horizontalAlignmentJustifyButton");
+        horizontalAlignmentJustifyButton.getButtonStateListeners().add(this);
+
+        // Vertical alignment
+        verticalAlignmentTopButton =
+            (RadioButton)wtkxSerializer.getObjectByName("verticalAlignmentTopButton");
+        verticalAlignmentTopButton.getButtonStateListeners().add(this);
+
+        verticalAlignmentBottomButton =
+            (RadioButton)wtkxSerializer.getObjectByName("verticalAlignmentBottomButton");
+        verticalAlignmentBottomButton.getButtonStateListeners().add(this);
+
+        verticalAlignmentCenterButton =
+            (RadioButton)wtkxSerializer.getObjectByName("verticalAlignmentCenterButton");
+        verticalAlignmentCenterButton.getButtonStateListeners().add(this);
+
+        verticalAlignmentJustifyButton =
+            (RadioButton)wtkxSerializer.getObjectByName("verticalAlignmentJustifyButton");
+        verticalAlignmentJustifyButton.getButtonStateListeners().add(this);
+
+        stateChanged(null, null);
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+
+    public Vote previewStateChange(Button button, Button.State state) {
+        return Vote.APPROVE;
+    }
+
+    public void stateChangeVetoed(Button button, Vote reason) {
+    }
+
+    public void stateChanged(Button button, Button.State previousState) {
+        Orientation orientation = null;
+        if (horizontalOrientationButton.isSelected()) {
+            orientation = Orientation.HORIZONTAL;
+        } else if (verticalOrientationButton.isSelected()) {
+            orientation = Orientation.VERTICAL;
+        }
+
+        if (orientation != null) {
+            flowPane.setOrientation(orientation);
+        }
+
+        HorizontalAlignment horizontalAlignment = null;
+        if (horizontalAlignmentLeftButton.isSelected()) {
+            horizontalAlignment = HorizontalAlignment.LEFT;
+        } else if (horizontalAlignmentRightButton.isSelected()) {
+            horizontalAlignment = HorizontalAlignment.RIGHT;
+        } else if (horizontalAlignmentCenterButton.isSelected()) {
+            horizontalAlignment = HorizontalAlignment.CENTER;
+        } else if (horizontalAlignmentJustifyButton.isSelected()) {
+            horizontalAlignment = HorizontalAlignment.JUSTIFY;
+        }
+
+        if (horizontalAlignment != null) {
+            flowPane.getStyles().put("horizontalAlignment", horizontalAlignment);
+        }
+
+        VerticalAlignment verticalAlignment = null;
+        if (verticalAlignmentTopButton.isSelected()) {
+            verticalAlignment = VerticalAlignment.TOP;
+        } else if (verticalAlignmentBottomButton.isSelected()) {
+            verticalAlignment = VerticalAlignment.BOTTOM;
+        } else if (verticalAlignmentCenterButton.isSelected()) {
+            verticalAlignment = VerticalAlignment.CENTER;
+        } else if (verticalAlignmentJustifyButton.isSelected()) {
+            verticalAlignment = VerticalAlignment.JUSTIFY;
+        }
+
+        if (verticalAlignment != null) {
+            flowPane.getStyles().put("verticalAlignment", verticalAlignment);
+        }
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/StackPanes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/StackPanes.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/StackPanes.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/StackPanes.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.layout;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class StackPanes implements Application {
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/layout/stackpanes.wtkx");
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <columns>
+        <TablePane.Column width="300"/>
+        <TablePane.Column width="-1"/>
+    </columns>
+
+    <rows>
+        <TablePane.Row height="-1">
+            <Border styles="{padding:6, color:'#999999'}">
+                <content>
+                    <FlowPane wtkx:id="flowPane">
+                        <PushButton buttonData="One"/>
+                        <PushButton buttonData="Two"/>
+                        <PushButton buttonData="Three"/>
+                    </FlowPane>
+                </content>
+            </Border>
+            <FlowPane orientation="vertical" styles="{padding:6, spacing:8}">
+                <Label text="Orientation" styles="{fontBold:true}"/>
+                <RadioButton wtkx:id="horizontalOrientationButton" buttonData="Horizontal" group="orientation" selected="true"/>
+                <RadioButton wtkx:id="verticalOrientationButton" buttonData="Vertical" group="orientation"/>
+
+                <Label text="Horizontal Alignment" styles="{fontBold:true}"/>
+                <RadioButton wtkx:id="horizontalAlignmentLeftButton" buttonData="Left" group="horizontalAlignment" selected="true"/>
+                <RadioButton wtkx:id="horizontalAlignmentRightButton" buttonData="Right" group="horizontalAlignment"/>
+                <RadioButton wtkx:id="horizontalAlignmentCenterButton" buttonData="Center" group="horizontalAlignment"/>
+                <RadioButton wtkx:id="horizontalAlignmentJustifyButton" buttonData="Justify" group="horizontalAlignment"/>
+
+                <Label text="Vertical Alignment" styles="{fontBold:true}"/>
+                <RadioButton wtkx:id="verticalAlignmentTopButton" buttonData="Top" group="verticalAlignment" selected="true"/>
+                <RadioButton wtkx:id="verticalAlignmentBottomButton" buttonData="Bottom" group="verticalAlignment"/>
+                <RadioButton wtkx:id="verticalAlignmentCenterButton" buttonData="Center" group="verticalAlignment"/>
+                <RadioButton wtkx:id="verticalAlignmentJustifyButton" buttonData="Justify" group="verticalAlignment"/>
+            </FlowPane>
+        </TablePane.Row>
+    </rows>
+</TablePane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+	<ImageView image="pivot/tutorials/layout/03big.jpg"
+	    styles="{horizontalAlignment:'left', verticalAlignment:'top',
+	        scaleX:1.5, scaleY:1.25}"/>
+	<Label text="StackPane Demo"
+   		styles="{font:'Helvetica bold 64', color:'#ffffff', wrapText:true,
+   		    horizontalAlignment:'center', verticalAlignment:'center'}"/>
+</StackPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:collections="pivot.collections"
+    xmlns:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <content>
+        <FlowPane styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:12}">
+            <FlowPane orientation="vertical" styles="{spacing:6}">
+                <Label text="Basic" styles="{fontBold:true}"/>
+                <Border styles="{padding:0, color:10}">
+                    <content>
+                        <ScrollPane preferredHeight="80">
+                            <view>
+                                <ListView selectMode="single" selectedIndex="0">
+                                    <listData>
+                                        <collections:ArrayList>
+                                            <content:ListItem text="Red"/>
+                                            <content:ListItem text="Orange"/>
+                                            <content:ListItem text="Yellow"/>
+                                            <content:ListItem text="Green"/>
+                                            <content:ListItem text="Blue"/>
+                                            <content:ListItem text="Purple"/>
+                                        </collections:ArrayList>
+                                    </listData>
+                                </ListView>
+                            </view>
+                        </ScrollPane>
+                    </content>
+                </Border>
+            </FlowPane>
+
+            <FlowPane orientation="vertical" styles="{spacing:6}">
+                <Label text="Multi-Select" styles="{fontBold:true}"/>
+                <Border styles="{padding:0, color:10}">
+                    <content>
+                        <ScrollPane preferredHeight="80">
+                            <view>
+                                <ListView wtkx:id="shapeListView" selectMode="multi">
+                                    <listData>
+                                        <collections:ArrayList>
+                                            <content:ListItem text="Circle"/>
+                                            <content:ListItem text="Ellipse"/>
+                                            <content:ListItem text="Square"/>
+                                            <content:ListItem text="Rectangle"/>
+                                            <content:ListItem text="Hexagon"/>
+                                            <content:ListItem text="Octagon"/>
+                                        </collections:ArrayList>
+                                    </listData>
+                                </ListView>
+                            </view>
+                        </ScrollPane>
+                    </content>
+                </Border>
+            </FlowPane>
+
+            <FlowPane orientation="vertical" styles="{spacing:6}">
+                <Label text="Image" styles="{fontBold:true}"/>
+                <Border styles="{padding:0, color:10}">
+                    <content>
+                        <ScrollPane preferredHeight="80">
+                            <view>
+                                <ListView wtkx:id="iconListView" selectMode="multi" selectedIndex="2">
+                                    <listData>
+                                        <collections:ArrayList>
+                                            <content:ListItem icon="@anchor.png" text="Anchor"/>
+                                            <content:ListItem icon="@bell.png" text="Bell"/>
+                                            <content:ListItem icon="@clock.png" text="Clock"/>
+                                            <content:ListItem icon="@cup.png" text="Cup"/>
+                                            <content:ListItem icon="@house.png" text="House"/>
+                                            <content:ListItem icon="@star.png" text="Star"/>
+                                        </collections:ArrayList>
+                                    </listData>
+                                    <itemRenderer>
+                                        <content:ListViewItemRenderer iconWidth="16" iconHeight="16"
+                                            showIcon="true"/>
+                                    </itemRenderer>
+                                </ListView>
+                            </view>
+                        </ScrollPane>
+                    </content>
+                </Border>
+            </FlowPane>
+
+            <FlowPane orientation="vertical" styles="{spacing:6}">
+                <Label text="List Buttons" styles="{fontBold:true}"/>
+                <Form>
+                    <sections>
+                        <Form.Section>
+	                        <ListButton Form.name="Basic" selectedIndex="0">
+	                            <listData>
+	                                <collections:ArrayList>
+                                        <content:ListItem text="Red"/>
+                                        <content:ListItem text="Orange"/>
+                                        <content:ListItem text="Yellow"/>
+                                        <content:ListItem text="Green"/>
+                                        <content:ListItem text="Blue"/>
+                                        <content:ListItem text="Purple"/>
+	                                </collections:ArrayList>
+	                            </listData>
+	                        </ListButton>
+
+	                        <ListButton Form.name="Image" selectedIndex="2">
+	                            <listData>
+	                                <collections:ArrayList>
+                                        <content:ListItem icon="@anchor.png" text="Anchor"/>
+                                        <content:ListItem icon="@bell.png" text="Bell"/>
+                                        <content:ListItem icon="@clock.png" text="Clock"/>
+                                        <content:ListItem icon="@cup.png" text="Cup"/>
+                                        <content:ListItem icon="@house.png" text="House"/>
+                                        <content:ListItem icon="@star.png" text="Star"/>
+	                                </collections:ArrayList>
+	                            </listData>
+	                            <itemRenderer>
+	                                <content:ListViewItemRenderer iconWidth="16" iconHeight="16"
+	                                    showIcon="true"/>
+	                            </itemRenderer>
+	                        </ListButton>
+                        </Form.Section>
+                    </sections>
+                </Form>
+            </FlowPane>
+        </FlowPane>
+    </content>
+</Border>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListButtons.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListButtons.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListButtons.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,95 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.lists;
+
+import java.net.URL;
+import pivot.collections.Dictionary;
+import pivot.wtk.Application;
+import pivot.wtk.ApplicationContext;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.ImageView;
+import pivot.wtk.ListButton;
+import pivot.wtk.ListButtonSelectionListener;
+import pivot.wtk.Window;
+import pivot.wtk.media.Image;
+import pivot.wtkx.WTKXSerializer;
+
+public class ListButtons implements Application {
+    private class ListButtonSelectionHandler
+        implements ListButtonSelectionListener {
+        @SuppressWarnings("unchecked")
+        public void selectedIndexChanged(ListButton listButton, int previousIndex) {
+            int index = listButton.getSelectedIndex();
+
+            if (index != -1) {
+                String item = (String)listButton.getListData().get(index);
+
+                // Get the image URL for the selected item
+                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
+                URL imageURL = classLoader.getResource("pivot/tutorials/" + item);
+
+                // If the image has not been added to the resource cache yet,
+                // add it
+                Image image = (Image)ApplicationContext.getResourceCache().get(imageURL);
+
+                if (image == null) {
+                    image = Image.load(imageURL);
+                    ApplicationContext.getResourceCache().put(imageURL, image);
+                }
+
+                // Update the image
+                imageView.setImage(image);
+            }
+        }
+
+    }
+
+    private ImageView imageView = null;
+    private Window window = null;
+
+    public void startup(Display display, Dictionary<String, String> properties) throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/lists/list_buttons.wtkx");
+
+        imageView = (ImageView)wtkxSerializer.getObjectByName("imageView");
+
+        ListButton listButton =
+            (ListButton)wtkxSerializer.getObjectByName("listButton");
+
+        listButton.getListButtonSelectionListeners().add(new
+            ListButtonSelectionHandler());
+
+        listButton.setSelectedIndex(0);
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListViews.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListViews.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListViews.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/ListViews.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2008 VMware, Inc.
+ *
+ * Licensed 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 pivot.tutorials.lists;
+
+import pivot.collections.Dictionary;
+import pivot.collections.Sequence;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.Label;
+import pivot.wtk.ListView;
+import pivot.wtk.ListViewSelectionListener;
+import pivot.wtk.Span;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class ListViews implements Application {
+    private Window window = null;
+
+    @SuppressWarnings("unchecked")
+    public void startup(Display display, Dictionary<String, String> properties)
+        throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/lists/list_views.wtkx");
+
+        final Label selectionLabel =
+            (Label)wtkxSerializer.getObjectByName("selectionLabel");
+
+        ListView listView = (ListView)wtkxSerializer.getObjectByName("listView");
+        listView.getListViewSelectionListeners().add(new ListViewSelectionListener() {
+            public void selectionChanged(ListView listView) {
+                String selectionText = "";
+
+                Sequence<Span> selectedRanges = listView.getSelectedRanges();
+                for (int i = 0, n = selectedRanges.getLength(); i < n; i++) {
+                    Span selectedRange = selectedRanges.get(i);
+
+                    for (int j = selectedRange.getStart();
+                        j <= selectedRange.getEnd();
+                        j++) {
+                        if (selectionText.length() > 0) {
+                            selectionText += ", ";
+                        }
+
+                        String text = (String)listView.getListData().get(j);
+                        selectionText += text;
+                    }
+                }
+
+                selectionLabel.setText(selectionText);
+            }
+        });
+
+        window = new Window();
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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="{showHorizontalGridLines: true, showVerticalGridLines:true, horizontalSpacing:1, verticalSpacing:1}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <columns>
+        <TablePane.Column width="-1"/>
+        <TablePane.Column width="1*"/>
+    </columns>
+    <rows>
+        <TablePane.Row height="340">
+            <FlowPane orientation="vertical" styles="{verticalAlignment:'top', padding: 4}">
+                <Label text="Picture:"/>
+                <ListButton wtkx:id="listButton"
+                    listData="['IMG_0725_2.jpg', 'IMG_0735_2.jpg', 'IMG_0767_2.jpg']"/>
+            </FlowPane>
+
+            <ImageView wtkx:id="imageView" styles="{backgroundColor:'#404040'}"/>
+        </TablePane.Row>
+    </rows>
+</TablePane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_views.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_views.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_views.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/lists/list_views.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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 styles="{padding:4, spacing:4}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <Border styles="{padding:0, color:10}">
+        <content>
+            <ScrollPane preferredWidth="80" preferredHeight="110"
+                horizontalScrollBarPolicy="fill"
+                verticalScrollBarPolicy="fillToCapacity">
+                <view>
+                    <ListView wtkx:id="listView" selectMode="multi"
+                        listData="['One', 'Two', 'Three', 'Four', 'Five',
+                            'Six', 'Seven', 'Eight', 'Nine', 'Ten']"/>
+                </view>
+            </ScrollPane>
+        </content>
+    </Border>
+
+    <FlowPane orientation="vertical" preferredWidth="120" styles="{horizontalAlignment:'justify'}">
+        <Label text="You selected:"/>
+        <Label wtkx:id="selectionLabel" styles="{wrapText:true}"/>
+    </FlowPane>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/magnifier.png
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/magnifier.png?rev=754936&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/magnifier.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_bar.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_bar.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_bar.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_bar.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) 2008 VMware, Inc.
+
+Licensed 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.
+-->
+
+<MenuBar xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <items>
+        <MenuBar.Item buttonData="File">
+            <menu>
+                <Menu>
+                    <sections>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="New" icon="@document-new.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Open" icon="@document-open.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Close"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Close All"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                        <Menu.Section>
+                            <Menu.Item enabled="false">
+                                <buttonData>
+                                    <content:ButtonData text="Save" icon="@document-save.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Save As" icon="@document-save-as.png"/>
+                                </buttonData>
+
+                                <menu>
+                                    <Menu>
+                                        <sections>
+                                            <Menu.Section>
+                                                <Menu.Item buttonData="JPEG"/>
+                                                <Menu.Item buttonData="PNG"/>
+                                                <Menu.Item buttonData="GIF"/>
+                                                <Menu.Item buttonData="PDF"/>
+                                            </Menu.Section>
+                                        </sections>
+                                    </Menu>
+                                </menu>
+                            </Menu.Item>
+                        </Menu.Section>
+                    </sections>
+                </Menu>
+            </menu>
+        </MenuBar.Item>
+
+        <MenuBar.Item buttonData="Edit">
+            <menu>
+                <Menu>
+                    <sections>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Undo" icon="@edit-undo.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Redo" icon="@edit-redo.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Cut" icon="@edit-cut.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Copy" icon="@edit-copy.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Paste" icon="@edit-paste.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Delete" icon="@edit-delete.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Select All" icon="@edit-select-all.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                    </sections>
+                </Menu>
+            </menu>
+        </MenuBar.Item>
+
+        <MenuBar.Item buttonData="Window">
+            <menu>
+                <Menu>
+                    <sections>
+                        <Menu.Section>
+                            <Menu.Item buttonData="Minimize"/>
+                            <Menu.Item buttonData="Maximize"/>
+                        </Menu.Section>
+                    </sections>
+                </Menu>
+            </menu>
+        </MenuBar.Item>
+
+        <MenuBar.Item>
+            <buttonData>
+                <content:ButtonData icon="@help.png"/>
+            </buttonData>
+            <menu>
+                <Menu>
+                    <sections>
+                        <Menu.Section>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Contents" icon="@book_open.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="Search" icon="@magnifier.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                            <Menu.Item>
+                                <buttonData>
+                                    <content:ButtonData text="About" icon="@application.png"/>
+                                </buttonData>
+                            </Menu.Item>
+                        </Menu.Section>
+                    </sections>
+                </Menu>
+            </menu>
+        </MenuBar.Item>
+    </items>
+</MenuBar>