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/26 00:12:17 UTC

svn commit: r758461 [10/47] - in /incubator/pivot/branches: ./ 1.1/ 1.1/charts-test/ 1.1/charts-test/src/ 1.1/charts-test/src/pivot/ 1.1/charts-test/src/pivot/charts/ 1.1/charts-test/src/pivot/charts/test/ 1.1/charts/ 1.1/charts/lib/ 1.1/charts/src/ 1....

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons.wtkx Wed Mar 25 23:08:38 2009
@@ -0,0 +1,215 @@
+<?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:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+                <FlowPane orientation="vertical">
+                    <Label text="Basic Push Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <PushButton buttonData="One"/>
+                        <PushButton buttonData="Two"/>
+                        <PushButton buttonData="Three" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Ungrouped Toggle Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <PushButton buttonData="One" toggleButton="true"/>
+                        <PushButton buttonData="Two" toggleButton="true"/>
+                        <PushButton buttonData="Three" toggleButton="true" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Grouped Toggle Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <PushButton buttonData="One" toggleButton="true" group="toggleButtons"/>
+                        <PushButton buttonData="Two" toggleButton="true" group="toggleButtons"/>
+                        <PushButton buttonData="Three" toggleButton="true" group="toggleButtons" selected="true" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Image Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <PushButton>
+                            <buttonData>
+                                <content:ButtonData icon="@bell.png" text="Bell"/>
+                            </buttonData>
+                        </PushButton>
+                        <PushButton>
+                            <buttonData>
+                                <content:ButtonData icon="@clock.png" text="Clock"/>
+                            </buttonData>
+                            <dataRenderer>
+                                <content:ButtonDataRenderer orientation="vertical"/>
+                            </dataRenderer>
+                        </PushButton>
+                        <PushButton enabled="false">
+                            <buttonData>
+                                <content:ButtonData icon="@house.png" text="House"/>
+                            </buttonData>
+                        </PushButton>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Toolbar Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <PushButton styles="{toolbar:true}">
+                            <buttonData>
+                                <content:ButtonData icon="@bell.png"/>
+                            </buttonData>
+                        </PushButton>
+                        <PushButton styles="{toolbar:true}">
+                            <buttonData>
+                                <content:ButtonData icon="@clock.png"/>
+                            </buttonData>
+                        </PushButton>
+                        <PushButton enabled="false" styles="{toolbar:true}">
+                            <buttonData>
+                                <content:ButtonData icon="@house.png"/>
+                            </buttonData>
+                        </PushButton>
+                    </FlowPane>
+                </FlowPane>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+                <FlowPane orientation="vertical">
+                    <Label text="Basic Radio Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <RadioButton buttonData="One" group="radioButtons"/>
+                        <RadioButton buttonData="Two" group="radioButtons"/>
+                        <RadioButton buttonData="Three" group="radioButtons" selected="true" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Image Radio Buttons" styles="{fontBold:true}"/>
+                    <FlowPane orientation="vertical">
+                        <RadioButton group="imageRadioButtons">
+                            <buttonData>
+                                <content:ButtonData icon="@bell.png" text="Bell"/>
+                            </buttonData>
+                        </RadioButton>
+                        <RadioButton group="imageRadioButtons">
+                            <buttonData>
+                                <content:ButtonData icon="@clock.png" text="Clock"/>
+                            </buttonData>
+                        </RadioButton>
+                        <RadioButton group="imageRadioButtons" selected="true" enabled="false">
+                            <buttonData>
+                                <content:ButtonData icon="@house.png" text="House"/>
+                            </buttonData>
+                        </RadioButton>
+                    </FlowPane>
+                </FlowPane>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+                <FlowPane orientation="vertical">
+                    <Label text="Basic Checkboxes" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <Checkbox buttonData="One"/>
+                        <Checkbox buttonData="Two"/>
+                        <Checkbox buttonData="Three" selected="true" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Image Checkboxes" styles="{fontBold:true}"/>
+                    <FlowPane orientation="vertical">
+                        <Checkbox>
+                            <buttonData>
+                                <content:ButtonData icon="@clock.png" text="Clock"/>
+                            </buttonData>
+                        </Checkbox>
+                        <Checkbox>
+                            <buttonData>
+                                <content:ButtonData icon="@bell.png" text="Bell"/>
+                            </buttonData>
+                        </Checkbox>
+                        <Checkbox selected="true" enabled="false">
+                            <buttonData>
+                                <content:ButtonData icon="@house.png" text="House"/>
+                            </buttonData>
+                        </Checkbox>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Tri-state Checkboxes" styles="{fontBold:true}"/>
+                    <FlowPane orientation="vertical">
+                        <Checkbox buttonData="Read" triState="true" state="selected"/>
+                        <Checkbox buttonData="Write" triState="true" state="unselected"/>
+                        <Checkbox buttonData="Execute" triState="true" state="mixed" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+                <FlowPane orientation="vertical">
+                    <Label text="Basic Link Buttons" styles="{fontBold:true}"/>
+                    <FlowPane>
+                        <LinkButton buttonData="One"/>
+                        <LinkButton buttonData="Two"/>
+                        <LinkButton buttonData="Three" enabled="false"/>
+                    </FlowPane>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Image Link Buttons" styles="{fontBold:true}"/>
+                    <FlowPane orientation="vertical">
+                        <LinkButton>
+                            <buttonData>
+                                <content:ButtonData icon="@bell.png" text="Bell"/>
+                            </buttonData>
+                        </LinkButton>
+                        <LinkButton>
+                            <buttonData>
+                                <content:ButtonData icon="@clock.png" text="Clock"/>
+                            </buttonData>
+                        </LinkButton>
+                        <LinkButton enabled="false">
+                            <buttonData>
+                                <content:ButtonData icon="@house.png" text="House"/>
+                            </buttonData>
+                        </LinkButton>
+                    </FlowPane>
+                </FlowPane>
+            </FlowPane>
+        </content>
+    </Border>
+</FlowPane>
+

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/Checkboxes.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/LinkButtons.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/PushButtons.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/RadioButtons.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/ToggleButtons.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/checkboxes.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/link_buttons.wtkx Wed Mar 25 23:08:38 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" orientation="horizontal" 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/push_buttons.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/radio_buttons.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png?rev=758461&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/resultset_next.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/resultset_previous.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/buttons/toggle_buttons.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/calendars.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/calendars.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/calendars.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/calendars.wtkx Wed Mar 25 23:08:38 2009
@@ -0,0 +1,60 @@
+<?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:content="pivot.wtk.content" xmlns="pivot.wtk">
+    <Border>
+        <content>
+            <FlowPane styles="{padding:{top:2, left:4, bottom:8, right:4}, spacing:10}">
+                <FlowPane orientation="vertical">
+                    <Label text="English (US)" styles="{fontBold:true}"/>
+                    <Border styles="{padding:0}">
+                        <content>
+                            <Calendar/>
+                        </content>
+                    </Border>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Français (FR)" styles="{fontBold:true}"/>
+                    <Border styles="{padding:0}">
+                        <content>
+                            <Calendar locale="{language:'fr'}"/>
+                        </content>
+                    </Border>
+                </FlowPane>
+
+                <FlowPane orientation="vertical">
+                    <Label text="Calendar Buttons" styles="{fontBold:true}"/>
+                    <Form>
+                        <sections>
+                            <Form.Section>
+                                <CalendarButton Form.name="English (US)"/>
+                                <CalendarButton Form.name="Españole (US)" locale="{language:'es', country:'us'}"/>
+                                <CalendarButton Form.name="Españole (ES)" locale="{language:'es', country:'es'}"/>
+                                <CalendarButton Form.name="Français (FR)" locale="{language:'fr'}"/>
+                                <CalendarButton Form.name="Français (CA)" locale="{language:'fr', country:'ca'}"/>
+                            </Form.Section>
+                        </sections>
+                    </Form>
+                </FlowPane>
+
+            </FlowPane>
+        </content>
+    </Border>
+</FlowPane>
+

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/clock.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/cup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Address.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Address.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Address.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Address.java Wed Mar 25 23:08:38 2009
@@ -0,0 +1,35 @@
+package pivot.tutorials.databinding;
+
+public class Address {
+	private String street;
+	private String city;
+	private String state;
+	private String zip;
+
+	public Address() {
+		this(null, null, null, null);
+	}
+
+	public Address(String street, String city, String state, String zip) {
+		this.street = street;
+		this.city = city;
+		this.state = state;
+		this.zip = zip;
+	}
+
+	public String getStreet() {
+		return street;
+	}
+
+	public String getCity() {
+		return city;
+	}
+
+	public String getState() {
+		return state;
+	}
+
+	public String getZip() {
+		return zip;
+	}
+}

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Contact.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Contact.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Contact.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/Contact.java Wed Mar 25 23:08:38 2009
@@ -0,0 +1,56 @@
+package pivot.tutorials.databinding;
+
+public class Contact {
+	private String id;
+	private String name;
+	private Address address;
+	private String phoneNumber;
+	private String emailAddress;
+	private IMAccount imAccount;
+
+	public Contact() {
+		this(null, null, new Address(), null, null, new IMAccount());
+	}
+
+	public Contact(String id, String name, Address address, String phoneNumber,
+		String emailAddress, IMAccount imAccount) {
+		this.id = id;
+		this.name = name;
+		this.address = address;
+		this.phoneNumber = phoneNumber;
+		this.emailAddress = emailAddress;
+		this.imAccount = imAccount;
+	}
+
+	public String getID() {
+		return id;
+	}
+
+	public String getId() {
+		return getID();
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public Address getAddress() {
+		return address;
+	}
+
+	public String getPhoneNumber() {
+		return phoneNumber;
+	}
+
+	public String getEmailAddress() {
+		return emailAddress;
+	}
+
+	public IMAccount getIMAccount() {
+		return imAccount;
+	}
+
+	public IMAccount getImAccount() {
+		return getIMAccount();
+	}
+}

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/DataBinding.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/DataBinding.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/DataBinding.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/DataBinding.java Wed Mar 25 23:08:38 2009
@@ -0,0 +1,90 @@
+package pivot.tutorials.databinding;
+
+import java.io.InputStream;
+
+import pivot.collections.Dictionary;
+import pivot.collections.Map;
+import pivot.serialization.JSONSerializer;
+import pivot.wtk.Application;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.Form;
+import pivot.wtk.Label;
+import pivot.wtk.PushButton;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class DataBinding implements Application {
+	private Window window = null;
+	private Form form = null;
+	private PushButton loadJavaButton = null;
+	private PushButton loadJSONButton = null;
+	private PushButton clearButton = null;
+	private Label sourceLabel = null;
+
+	private static final Contact CONTACT = new Contact("101", "Joe Smith",
+		new Address("123 Main St.", "Cambridge", "MA", "02142"),
+		"(617) 555-1234", "joe_smith@foo.com",
+		new IMAccount("jsmith1234", "AIM"));
+
+	public void startup(Display display, Dictionary<String, String> properties)
+		throws Exception {
+		// Load the UI
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("data_binding.wtkx")));
+        form = (Form)wtkxSerializer.getObjectByName("form");
+        loadJavaButton = (PushButton)wtkxSerializer.getObjectByName("loadJavaButton");
+        loadJSONButton = (PushButton)wtkxSerializer.getObjectByName("loadJSONButton");
+        clearButton = (PushButton)wtkxSerializer.getObjectByName("clearButton");
+        sourceLabel = (Label)wtkxSerializer.getObjectByName("sourceLabel");
+
+        // Open the window
+        window.setMaximized(true);
+        window.open(display);
+
+        loadJavaButton.getButtonPressListeners().add(new ButtonPressListener() {
+        	public void buttonPressed(Button button) {
+        		form.load(CONTACT);
+        		sourceLabel.setText("Java");
+        	}
+        });
+
+        loadJSONButton.getButtonPressListeners().add(new ButtonPressListener() {
+        	@SuppressWarnings("unchecked")
+        	public void buttonPressed(Button button) {
+        		JSONSerializer serializer = new JSONSerializer();
+        		InputStream inputStream = getClass().getResourceAsStream("contact.json");
+
+        		try {
+            		form.load((Map<String, Object>)serializer.readObject(inputStream));
+            		sourceLabel.setText("JSON");
+        		} catch(Exception exception) {
+        			System.out.println(exception);
+        		}
+
+        		button.setEnabled(true);
+        	}
+        });
+
+        clearButton.getButtonPressListeners().add(new ButtonPressListener() {
+        	public void buttonPressed(Button button) {
+        		form.load(new Contact());
+        		sourceLabel.setText(null);
+        	}
+        });
+	}
+
+	public boolean shutdown(boolean optional) {
+		window.close();
+		return false;
+	}
+
+
+	public void suspend() {
+	}
+
+	public void resume() {
+	}
+}

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/IMAccount.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/IMAccount.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/IMAccount.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/IMAccount.java Wed Mar 25 23:08:38 2009
@@ -0,0 +1,27 @@
+package pivot.tutorials.databinding;
+
+public class IMAccount {
+	private String id;
+	private String type;
+
+	public IMAccount() {
+		this(null, null);
+	}
+
+	public IMAccount(String id, String type) {
+		this.id = id;
+		this.type = type;
+	}
+
+	public String getID() {
+		return id;
+	}
+
+	public String getId() {
+		return getID();
+	}
+
+	public String getType() {
+		return type;
+	}
+}

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/contact.json
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/contact.json?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/contact.json (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/contact.json Wed Mar 25 23:08:38 2009
@@ -0,0 +1,19 @@
+{   id: 101,
+    name: "Joe Smith",
+
+    address: {
+        street: "123 Main St.",
+        city: "Cambridge",
+        state: "MA",
+        zip: "02142"
+    },
+
+    phoneNumber: "(617) 555-1234",
+    emailAddress: "joe_smith@foo.com",
+
+    imAccount: {
+        id: "jsmith1234",
+        type: "AIM"
+    }
+}
+

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/data_binding.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/data_binding.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/data_binding.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/databinding/data_binding.wtkx Wed Mar 25 23:08:38 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<Border styles="{thickness:0, padding:8}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <content>
+	    <FlowPane orientation="vertical" styles="{spacing:10, horizontalAlignment:'justify'}">
+            <Form wtkx:id="form">
+                <sections>
+                    <Form.Section>
+                        <Label Form.name="ID" textKey="id"/>
+                        <Label Form.name="Name" textKey="name"/>
+
+                        <FlowPane Form.name="Address" orientation="vertical" contextKey="address">
+                            <Label textKey="street"/>
+                            <FlowPane>
+                                <Label textKey="city"/>
+                                <Label textKey="state"/>
+                                <Label textKey="zip"/>
+                            </FlowPane>
+                        </FlowPane>
+
+                        <Label Form.name="Phone" textKey="phoneNumber"/>
+                        <Label Form.name="Email" textKey="emailAddress"/>
+
+                        <FlowPane Form.name="IM" contextKey="imAccount">
+                            <Label textKey="id"/>
+                            <Label textKey="type"/>
+                        </FlowPane>
+
+                        <Label wtkx:id="sourceLabel" Form.name="Source" styles="{fontItalic:true}"/>
+                    </Form.Section>
+                </sections>
+            </Form>
+
+            <Separator/>
+
+            <FlowPane styles="{horizontalAlignment:'right'}">
+                <PushButton wtkx:id="loadJavaButton" buttonData="Load Java"/>
+                <PushButton wtkx:id="loadJSONButton" buttonData="Load JSON"/>
+                <PushButton wtkx:id="clearButton" buttonData="Clear"/>
+            </FlowPane>
+	    </FlowPane>
+    </content>
+</Border>
+

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/demo.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/demo.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/demo.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/demo.wtkx Wed Mar 25 23:08:38 2009
@@ -0,0 +1,88 @@
+<?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:effects="pivot.wtk.effects"
+    xmlns="pivot.wtk">
+    <content>
+        <Border styles="{padding:0}">
+            <content>
+                <ScrollPane wtkx:id="scrollPane" styles="{backgroundColor:11}"
+                    horizontalScrollBarPolicy="fillToCapacity"
+                    verticalScrollBarPolicy="fillToCapacity">
+                    <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="Calendars" styles="{fontBold:true, fontSize:12, color:13}"/>
+                                <wtkx:include namespace="calendars" src="calendars.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 &amp; Sliders" 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/branches/1.1/tutorials/src/pivot/tutorials/document-new.png
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/document-new.png?rev=758461&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/document-new.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/document-open.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

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

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/document-save.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/dragdrop.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/dragdrop.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/dragdrop.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/dragdrop.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/edit-copy.png
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-copy.png?rev=758461&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-copy.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-cut.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-delete.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-paste.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-redo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

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

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/edit-undo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/flag_red.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/folder.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/go-home.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/hello.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/hello.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/hello.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/hello.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/help.png
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/help.png?rev=758461&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/help.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/house.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/Labels.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/Labels.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/Labels.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/Labels.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/labels/labels.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/labels.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/labels.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/labels/labels.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/layout/03big.jpg
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/03big.jpg?rev=758461&view=auto
==============================================================================
Binary file - no diff available.

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

Added: incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/FlowPanes.java Wed Mar 25 23:08:38 2009
@@ -0,0 +1,166 @@
+/*
+ * 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.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 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/branches/1.1/tutorials/src/pivot/tutorials/layout/StackPanes.java
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/StackPanes.java?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/StackPanes.java (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/StackPanes.java Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/flowpanes.wtkx Wed Mar 25 23:08:38 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/branches/1.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx?rev=758461&view=auto
==============================================================================
--- incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx (added)
+++ incubator/pivot/branches/1.1/tutorials/src/pivot/tutorials/layout/stackpanes.wtkx Wed Mar 25 23:08:38 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>