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 [9/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/menu_buttons.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_buttons.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_buttons.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_buttons.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,151 @@
+<Border xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:content="pivot.wtk.content" xmlns="pivot.wtk">
+	<content>
+		<FlowPane orientation="vertical"
+			styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+			<FlowPane orientation="vertical">
+				<Label text="Menu Buttons" styles="{fontBold:true}" />
+				<FlowPane orientation="vertical">
+			        <MenuButton 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>
+			        </MenuButton>
+
+			        <MenuButton styles="{spacing:2}">
+			            <buttonData>
+			                <content:ButtonData text="Edit" icon="@page_edit.png"/>
+			            </buttonData>
+			            <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>
+			        </MenuButton>
+
+			        <MenuButton tooltipText="Help" styles="{spacing:2, toolbar:true}">
+			            <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>
+			        </MenuButton>
+				</FlowPane>
+			</FlowPane>
+		</FlowPane>
+	</content>
+</Border>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_popup.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_popup.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_popup.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menu_popup.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,32 @@
+<?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.
+-->
+
+<Menu xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <sections>
+        <Menu.Section>
+            <Menu.Item buttonData="IMG_0725_2.jpg" toggleButton="true"
+                group="imageMenuGroup" userData="pivot/tutorials/IMG_0725_2.jpg"
+                action="selectImageAction"/>
+            <Menu.Item buttonData="IMG_0735_2.jpg" toggleButton="true"
+                group="imageMenuGroup" userData="pivot/tutorials/IMG_0735_2.jpg"
+                action="selectImageAction"/>
+            <Menu.Item buttonData="IMG_0767_2.jpg" toggleButton="true"
+                group="imageMenuGroup" userData="pivot/tutorials/IMG_0767_2.jpg"
+                action="selectImageAction"/>
+        </Menu.Section>
+    </sections>
+</Menu>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menus.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menus.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menus.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/menus.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,49 @@
+<?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>
+            <TablePane styles="{backgroundColor:'#404040'}">
+                <columns>
+                    <TablePane.Column width="1*" />
+                </columns>
+                <rows>
+                    <TablePane.Row height="-1">
+                        <wtkx:include wtkx:id="menuBar" src="menu_bar.wtkx" />
+                    </TablePane.Row>
+                    <TablePane.Row height="-1">
+                        <Separator styles="{padding:0}" />
+                    </TablePane.Row>
+                    <TablePane.Row height="1*">
+                        <ImageView wtkx:id="imageView"
+                            preferredWidth="480" preferredHeight="360"/>
+                    </TablePane.Row>
+                    <TablePane.Row height="-1">
+                        <Label wtkx:id="label" text="Right-click to see options"
+                            styles="{color:'#ffffff', horizontalAlignment:'center', verticalAlignment:'center', padding:4}" />
+                    </TablePane.Row>
+                </rows>
+            </TablePane>
+        </content>
+    </Border>
+
+    <wtkx:include src="menu_buttons.wtkx"/>
+</FlowPane>
+
+

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/meters.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/meters.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/meters.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/meters.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,44 @@
+<?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="pivot.wtk">
+    <content>
+        <FlowPane orientation="vertical" styles="{padding:6, spacing:8}">
+            <FlowPane styles="{spacing:6}">
+                <Meter percentage="0.4"/>
+                <Label text="40%"/>
+            </FlowPane>
+            <FlowPane styles="{spacing:6}">
+                <Meter percentage="0.4" styles="{gridFrequency:0.1}"/>
+                <Label text="40%"/>
+            </FlowPane>
+            <FlowPane styles="{spacing:6}">
+                <Meter percentage="0.75"/>
+                <Label text="75%"/>
+            </FlowPane>
+            <FlowPane styles="{spacing:6}">
+                <Meter percentage="0.75" styles="{gridFrequency:0.1}"/>
+                <Label text="75%"/>
+            </FlowPane>
+            <FlowPane styles="{spacing:6}">
+                <Meter percentage="0.95" styles="{color:'#ff0000', gridColor:'#000000'}"/>
+                <Label text="Danger: 95%!"/>
+            </FlowPane>
+        </FlowPane>
+    </content>
+</Border>
+

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/navigation.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/navigation.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/navigation.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/navigation.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,214 @@
+<?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>
+            <TablePane styles="{horizontalSpacing:8, verticalSpacing:8, padding:{top:2, left:4, bottom:4, right:4}}">
+                <columns>
+                    <TablePane.Column width="-1"/>
+                    <TablePane.Column width="-1"/>
+                </columns>
+                <rows>
+                    <TablePane.Row height="-1">
+                        <Label text="Horizontal Tabs" styles="{fontBold:true}"/>
+                        <Label text="Vertical Tabs" styles="{fontBold:true}"/>
+                    </TablePane.Row>
+
+                    <TablePane.Row height="-1">
+                        <TablePane styles="{horizontalSpacing:8, verticalSpacing:8}">
+                            <columns>
+                                <TablePane.Column width="-1"/>
+                            </columns>
+
+                            <rows>
+                                <TablePane.Row height="1*">
+                                    <TabPane tabOrientation="horizontal" selectedIndex="0">
+                                        <tabs>
+                                            <Label TabPane.icon="@bell.png" TabPane.name="Bell" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@clock.png" TabPane.name="Clock" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@house.png" TabPane.name="House" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                        </tabs>
+                                    </TabPane>
+                                </TablePane.Row>
+
+                                <TablePane.Row height="-1">
+                                    <TabPane tabOrientation="horizontal" collapsible="true" selectedIndex="-1"
+                                        tooltipText="Click a tab to expand/collapse">
+                                        <tabs>
+                                            <Label TabPane.icon="@anchor.png" TabPane.name="Anchor" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@cup.png" TabPane.name="Cup" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@star.png" TabPane.name="Star" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                        </tabs>
+                                    </TabPane>
+                                </TablePane.Row>
+                            </rows>
+                        </TablePane>
+
+                        <TablePane styles="{horizontalSpacing:8, verticalSpacing:8}">
+                            <columns>
+                                <TablePane.Column width="1*"/>
+                                <TablePane.Column width="-1"/>
+                            </columns>
+                            <rows>
+                                <TablePane.Row height="-1">
+                                    <TabPane tabOrientation="vertical" selectedIndex="0">
+                                        <tabs>
+                                            <Label TabPane.icon="@bell.png" TabPane.name="Bell" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@clock.png" TabPane.name="Clock" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@house.png" TabPane.name="House" text="Basic"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                        </tabs>
+                                    </TabPane>
+
+                                    <TabPane tabOrientation="vertical" collapsible="true" selectedIndex="-1"
+                                        tooltipText="Click a tab to expand/collapse">
+                                        <tabs>
+                                            <Label TabPane.icon="@anchor.png" TabPane.name="Anchor" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@cup.png" TabPane.name="Cup" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                            <Label TabPane.icon="@star.png" TabPane.name="Star" text="Collapsible"
+                                                styles="{horizontalAlignment:'center', verticalAlignment:'center'}"/>
+                                        </tabs>
+                                    </TabPane>
+                                </TablePane.Row>
+                            </rows>
+                        </TablePane>
+                    </TablePane.Row>
+                </rows>
+            </TablePane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:6}">
+                <Label text="Expanders" styles="{fontBold:true}"/>
+                <FlowPane orientation="vertical" styles="{horizontalAlignment:'justify'}">
+                    <Expander title="One" expanded="false">
+                        <content>
+                            <Label preferredWidth="100" preferredHeight="20" text="Un"
+                                styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                        </content>
+                    </Expander>
+
+                    <Expander title="Two" expanded="false">
+                        <content>
+                            <Label preferredWidth="100" preferredHeight="80" text="Deux"
+                                styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                        </content>
+                    </Expander>
+
+                    <Expander title="Three">
+                        <content>
+                            <Label preferredWidth="100" preferredHeight="50" text="Trois"
+                                styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                        </content>
+                    </Expander>
+                </FlowPane>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:6}">
+                <Label text="Accordion" styles="{fontBold:true}"/>
+                <Accordion selectedIndex="1" preferredWidth="110" preferredHeight="180">
+                    <panels>
+                        <Label Accordion.name="One" text="Un"
+                          styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                        <Label Accordion.name="Two" text="Deux"
+                          styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                        <Label Accordion.name="Three" text="Trois"
+                          styles="{horizontalAlignment:'center', verticalAlignment:'center', fontItalic:true}"/>
+                    </panels>
+                </Accordion>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:6}">
+                <Label text="Rollups" styles="{fontBold:true}"/>
+                <Rollup>
+                    <Label text="Colors"/>
+                    <Label text="Red" styles="{color:'#ff0000'}"/>
+                    <Label text="Orange" styles="{color:'#ffa500'}"/>
+                    <Label text="Yellow" styles="{color:'#ffff00'}"/>
+                    <Label text="Green" styles="{color:'#00ff00'}"/>
+                    <Label text="Blue" styles="{color:'#0000ff'}"/>
+                    <Label text="Purple" styles="{color:'#800080'}"/>
+                </Rollup>
+                <Rollup expanded="true">
+                    <Label text="Shapes"/>
+                    <Checkbox buttonData="Circle"/>
+                    <Checkbox buttonData="Ellipse" selected="true"/>
+                    <Checkbox buttonData="Square" selected="true"/>
+                    <Checkbox buttonData="Rectangle"/>
+                    <Checkbox buttonData="Hexagon"/>
+                    <Checkbox buttonData="Octagon" selected="true"/>
+                </Rollup>
+                <Rollup>
+                    <Label text="Images"/>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="Anchor" icon="@anchor.png"/>
+                        </buttonData>
+                    </RadioButton>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="Bell" icon="@bell.png"/>
+                        </buttonData>
+                    </RadioButton>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="Clock" icon="@clock.png"/>
+                        </buttonData>
+                    </RadioButton>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="Cup" icon="@cup.png"/>
+                        </buttonData>
+                    </RadioButton>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="House" icon="@house.png"/>
+                        </buttonData>
+                    </RadioButton>
+                    <RadioButton group="images" selected="true">
+                        <buttonData>
+                            <content:ButtonData text="Star" icon="@star.png"/>
+                        </buttonData>
+                    </RadioButton>
+                </Rollup>
+            </FlowPane>
+        </content>
+    </Border>
+</FlowPane>
+

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

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

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

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

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/spinners.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/spinners.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/spinners.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/spinners.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.
+-->
+
+<Border xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <content>
+        <FlowPane orientation="horizontal" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+            <FlowPane orientation="vertical">
+                <Label text="Basic Spinner" styles="{fontBold:true}"/>
+                <Spinner spinnerData="['One', 'Two', 'Three', 'Four', 'Five']" circular="true" selectedIndex="0"
+                    preferredWidth="60"/>
+            </FlowPane>
+            <FlowPane orientation="vertical">
+                <Label text="Numeric Spinner" styles="{fontBold:true}"/>
+                <Spinner wtkx:id="numericSpinner" preferredWidth="60"/>
+            </FlowPane>
+            <FlowPane orientation="vertical">
+                <Label text="Date Spinner" styles="{fontBold:true}"/>
+                <Spinner wtkx:id="dateSpinner" />
+            </FlowPane>
+        </FlowPane>
+    </content>
+</Border>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/splitters.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/splitters.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/splitters.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/splitters.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,41 @@
+<?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="{padding:4}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <content>
+        <SplitPane orientation="vertical" splitLocation="175"
+            preferredWidth="480" preferredHeight="360">
+            <top>
+                <SplitPane orientation="horizontal" splitLocation="240">
+                    <left>
+                        <ImageView image="pivot/tutorials/IMG_0735_2.jpg"
+                            styles="{backgroundColor:'#404040'}"/>
+                    </left>
+                    <right>
+                        <ImageView image="pivot/tutorials/IMG_0767_2.jpg"
+                            styles="{backgroundColor:'#404040'}"/>
+                    </right>
+                </SplitPane>
+            </top>
+            <bottom>
+                <ImageView image="pivot/tutorials/IMG_0725_2.jpg"
+                    styles="{backgroundColor:'#404040'}"/>
+            </bottom>
+        </SplitPane>
+    </content>
+</Border>

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

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

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/ChangeCellRenderer.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/ChangeCellRenderer.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/ChangeCellRenderer.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/ChangeCellRenderer.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,27 @@
+package pivot.tutorials.stocktracker;
+
+import java.awt.Color;
+
+import pivot.collections.Dictionary;
+import pivot.wtk.TableView;
+import pivot.wtk.content.TableViewNumberCellRenderer;
+
+public class ChangeCellRenderer extends TableViewNumberCellRenderer {
+    public static final Color UP_COLOR = new Color(0x00, 0x80, 0x00);
+    public static final Color DOWN_COLOR = new Color(0xff, 0x00, 0x00);
+
+    @SuppressWarnings("unchecked")
+    public void render(Object value, TableView tableView, TableView.Column column,
+        boolean rowSelected, boolean rowHighlighted, boolean rowDisabled) {
+        super.render(value, tableView, column, rowSelected, rowHighlighted, rowDisabled);
+
+        if (!rowSelected) {
+            // Get the row and cell data
+            String columnName = column.getName();
+            Dictionary<String, Object> rowData = (Dictionary<String, Object>)value;
+            Object cellData = rowData.get(columnName);
+
+            getStyles().put("color", (Float)cellData < 0 ? DOWN_COLOR : UP_COLOR);
+        }
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuote.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuote.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuote.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuote.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,55 @@
+package pivot.tutorials.stocktracker;
+
+import pivot.collections.Dictionary;
+import pivot.collections.HashMap;
+
+public class StockQuote implements Dictionary<String, Object> {
+    private HashMap<String, Object> values = new HashMap<String, Object>();
+
+    public static final String SYMBOL_KEY = "symbol";
+    public static final String COMPANY_NAME_KEY = "companyName";
+    public static final String VALUE_KEY = "value";
+    public static final String OPENING_VALUE_KEY = "openingValue";
+    public static final String HIGH_VALUE_KEY = "highValue";
+    public static final String LOW_VALUE_KEY = "lowValue";
+    public static final String CHANGE_KEY = "change";
+    public static final String VOLUME_KEY = "volume";
+
+    public float getChange() {
+        return (values.containsKey(CHANGE_KEY) ? (Float)values.get(CHANGE_KEY) : 0);
+    }
+
+    public Object get(String key) {
+        return values.get(key);
+    }
+
+    public Object put(String key, Object value) {
+        if (key.equals(VALUE_KEY)
+            || key.equals(OPENING_VALUE_KEY)
+            || key.equals(HIGH_VALUE_KEY)
+            || key.equals(LOW_VALUE_KEY)
+            || key.equals(CHANGE_KEY)
+            || key.equals(VOLUME_KEY)) {
+            try {
+                value = Float.parseFloat((String)value);
+            } catch(NumberFormatException exception) {
+                value = 0f;
+            }
+        }
+
+        return values.put(key, value);
+    }
+
+    public Object remove(String key) {
+        return values.remove(key);
+    }
+
+    public boolean containsKey(String key) {
+        return values.containsKey(key);
+    }
+
+    public boolean isEmpty() {
+        return values.isEmpty();
+    }
+}
+

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuoteView.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuoteView.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuoteView.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockQuoteView.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,75 @@
+package pivot.tutorials.stocktracker;
+
+import java.text.DecimalFormat;
+import pivot.collections.Dictionary;
+
+public class StockQuoteView implements Dictionary<String, Object> {
+    private StockQuote stockQuote = null;
+
+    private static DecimalFormat valueFormat = new DecimalFormat("$0.00");
+    private static DecimalFormat changeFormat = new DecimalFormat("+0.00;-0.00");
+    private static DecimalFormat volumeFormat = new DecimalFormat();
+
+    public StockQuoteView(StockQuote stockQuote) {
+        this.stockQuote = stockQuote;
+    }
+
+    public Object get(String key) {
+        if (key == null) {
+            throw new IllegalArgumentException("key is null.");
+        }
+
+        Object value = null;
+
+        if (stockQuote == null) {
+            value = "";
+        } else {
+            value = stockQuote.get(key);
+
+            if (key.equals(StockQuote.VALUE_KEY)
+                || key.equals(StockQuote.OPENING_VALUE_KEY)
+                || key.equals(StockQuote.HIGH_VALUE_KEY)
+                || key.equals(StockQuote.LOW_VALUE_KEY)) {
+                try {
+                    value = valueFormat.format((Number)value);
+                } catch(Exception exception) {
+                    value = "";
+                }
+            } else if (key.equals(StockQuote.CHANGE_KEY)) {
+                try {
+                    value = changeFormat.format((Number)value);
+                } catch(Exception exception) {
+                    value = "";
+                }
+            } else if (key.equals(StockQuote.VOLUME_KEY)) {
+                try {
+                    value = volumeFormat.format((Number)value);
+                } catch(Exception exception) {
+                    value = "";
+                }
+            } else {
+                value = value.toString();
+            }
+        }
+
+
+        return value;
+    }
+
+    public Object put(String key, Object value) {
+        throw new UnsupportedOperationException();
+    }
+
+    public Object remove(String key) {
+        throw new UnsupportedOperationException();
+    }
+
+    public boolean containsKey(String key) {
+        return (stockQuote == null ? true : stockQuote.containsKey(key));
+    }
+
+    public boolean isEmpty() {
+        return (stockQuote == null ? false : stockQuote.isEmpty());
+    }
+}
+

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,342 @@
+/*
+ * 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.stocktracker;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.text.DateFormat;
+import java.util.Comparator;
+import java.util.Date;
+import java.util.Locale;
+
+import pivot.collections.ArrayList;
+import pivot.collections.Dictionary;
+import pivot.collections.List;
+import pivot.collections.Sequence;
+import pivot.serialization.CSVSerializer;
+import pivot.util.Resources;
+import pivot.util.concurrent.Task;
+import pivot.util.concurrent.TaskListener;
+import pivot.web.GetQuery;
+import pivot.wtk.Application;
+import pivot.wtk.ApplicationContext;
+import pivot.wtk.Button;
+import pivot.wtk.ButtonPressListener;
+import pivot.wtk.Component;
+import pivot.wtk.ComponentKeyListener;
+import pivot.wtk.Container;
+import pivot.wtk.Display;
+import pivot.wtk.Form;
+import pivot.wtk.Keyboard;
+import pivot.wtk.Label;
+import pivot.wtk.MessageType;
+import pivot.wtk.Span;
+import pivot.wtk.TableView;
+import pivot.wtk.TableViewSelectionListener;
+import pivot.wtk.TaskAdapter;
+import pivot.wtk.TextInput;
+import pivot.wtk.TextInputTextListener;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class StockTracker implements Application {
+    private Locale locale = null;
+    private Resources resources = null;
+
+    private ArrayList<String> symbols = new ArrayList<String>();
+
+    private Window window = null;
+    private TableView stocksTableView = null;
+    private TextInput symbolTextInput = null;
+    private Button addSymbolButton = null;
+    private Button removeSymbolsButton = null;
+    private Label lastUpdateLabel = null;
+    private Button yahooFinanceButton = null;
+    private Container detailRootPane = null;
+    private Label detailChangeLabel = null;
+
+    private GetQuery getQuery = null;
+
+    public static final String LANGUAGE_PROPERTY_NAME = "language";
+    public static final String SERVICE_HOSTNAME = "download.finance.yahoo.com";
+    public static final String SERVICE_PATH = "/d/quotes.csv";
+    public static final long REFRESH_INTERVAL = 15000;
+    public static final String YAHOO_FINANCE_HOME = "http://finance.yahoo.com";
+
+    public StockTracker() {
+        symbols.setComparator(new Comparator<String>() {
+            public int compare(String s1, String s2) {
+                return s1.compareTo(s2);
+            }
+        });
+
+        symbols.add("EBAY");
+        symbols.add("AAPL");
+        symbols.add("MSFT");
+        symbols.add("AMZN");
+        symbols.add("GOOG");
+        symbols.add("VMW");
+    }
+
+    public void startup(Display display, Dictionary<String, String> properties)
+        throws Exception {
+        // Set the locale
+        String language = properties.get(LANGUAGE_PROPERTY_NAME);
+        locale = (language == null) ? Locale.getDefault() : new Locale(language);
+        resources = new Resources(getClass().getName(), locale, "UTF8");
+
+        // Load the application's UI
+        WTKXSerializer wtkxSerializer = new WTKXSerializer(resources);
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/stocktracker/stocktracker.wtkx");
+
+        // Wire up event handlers
+        stocksTableView = (TableView)wtkxSerializer.getObjectByName("stocksTableView");
+        stocksTableView.getTableViewSelectionListeners().add(new TableViewSelectionListener() {
+            public void selectionChanged(TableView tableView) {
+                refreshDetail();
+            }
+        });
+
+        stocksTableView.getComponentKeyListeners().add(new ComponentKeyListener() {
+            public void keyTyped(Component component, char character) {
+            }
+
+            public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+                if (keyCode == Keyboard.KeyCode.DELETE) {
+                    removeSelectedSymbols();
+                }
+
+                return false;
+            }
+
+            public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+                return false;
+            }
+        });
+
+        symbolTextInput = (TextInput)wtkxSerializer.getObjectByName("symbolTextInput");
+        symbolTextInput.getTextInputTextListeners().add(new TextInputTextListener() {
+            public void textChanged(TextInput textInput) {
+                addSymbolButton.setEnabled(textInput.getCharacterCount() > 0);
+            }
+        });
+
+        symbolTextInput.getComponentKeyListeners().add(new ComponentKeyListener() {
+            public void keyTyped(Component component, char character) {
+            }
+
+            public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+                if (keyCode == Keyboard.KeyCode.ENTER) {
+                    addSymbol();
+                }
+
+                return false;
+            }
+
+            public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+                return false;
+            }
+        });
+
+        addSymbolButton = (Button)wtkxSerializer.getObjectByName("addSymbolButton");
+        addSymbolButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                addSymbol();
+            }
+        });
+
+        removeSymbolsButton = (Button)wtkxSerializer.getObjectByName("removeSymbolsButton");
+        removeSymbolsButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                removeSelectedSymbols();
+            }
+        });
+
+        lastUpdateLabel = (Label)wtkxSerializer.getObjectByName("lastUpdateLabel");
+
+        yahooFinanceButton = (Button)wtkxSerializer.getObjectByName("yahooFinanceButton");
+        yahooFinanceButton.getButtonPressListeners().add(new ButtonPressListener() {
+            public void buttonPressed(Button button) {
+                try {
+                    ApplicationContext.open(new URL(YAHOO_FINANCE_HOME));
+                } catch(MalformedURLException exception) {
+                }
+            }
+        });
+
+        detailRootPane = (Container)wtkxSerializer.getObjectByName("detail.rootPane");
+
+        detailChangeLabel = (Label)wtkxSerializer.getObjectByName("detail.changeLabel");
+
+        window = new Window();
+        window.setTitle((String)resources.get("stockTracker"));
+        window.setContent(content);
+        window.setMaximized(true);
+        window.open(display);
+
+        refreshTable();
+
+        ApplicationContext.setInterval(new Runnable() {
+            public void run() {
+                refreshTable();
+            }
+        }, REFRESH_INTERVAL);
+
+        symbolTextInput.requestFocus();
+    }
+
+    public boolean shutdown(boolean optional) {
+        window.close();
+        return true;
+    }
+
+    public void suspend() {
+    }
+
+    public void resume() {
+    }
+
+    @SuppressWarnings("unchecked")
+    private void refreshTable() {
+        getQuery = new GetQuery(SERVICE_HOSTNAME, SERVICE_PATH);
+
+        StringBuilder symbolsArgumentBuilder = new StringBuilder();
+        for (int i = 0, n = symbols.getLength(); i < n; i++) {
+            if (i > 0) {
+                symbolsArgumentBuilder.append(",");
+            }
+
+            symbolsArgumentBuilder.append(symbols.get(i));
+        }
+
+        // Format:
+        // s - symbol
+        // n - company name
+        // l1 - most recent value
+        // o - opening value
+        // h - high value
+        // g - low value
+        // c1 - change percentage
+        // v - volume
+        String symbolsArgument = symbolsArgumentBuilder.toString();
+        getQuery.getArguments().put("s", symbolsArgument);
+        getQuery.getArguments().put("f", "snl1ohgc1v");
+
+        CSVSerializer quoteSerializer = new CSVSerializer();
+        quoteSerializer.getKeys().add(StockQuote.SYMBOL_KEY);
+        quoteSerializer.getKeys().add(StockQuote.COMPANY_NAME_KEY);
+        quoteSerializer.getKeys().add(StockQuote.VALUE_KEY);
+        quoteSerializer.getKeys().add(StockQuote.OPENING_VALUE_KEY);
+        quoteSerializer.getKeys().add(StockQuote.HIGH_VALUE_KEY);
+        quoteSerializer.getKeys().add(StockQuote.LOW_VALUE_KEY);
+        quoteSerializer.getKeys().add(StockQuote.CHANGE_KEY);
+        quoteSerializer.getKeys().add(StockQuote.VOLUME_KEY);
+
+        quoteSerializer.setItemClass(StockQuote.class);
+        getQuery.setSerializer(quoteSerializer);
+
+        getQuery.execute(new TaskAdapter<Object>(new TaskListener<Object>() {
+            public void taskExecuted(Task<Object> task) {
+                if (task == getQuery) {
+                    Sequence<Span> selectedRanges = stocksTableView.getSelectedRanges();
+
+                    List<StockQuote> quotes = (List<StockQuote>)task.getResult();
+                    stocksTableView.setTableData(quotes);
+
+                    if (selectedRanges.getLength() > 0) {
+                        stocksTableView.setSelectedRanges(selectedRanges);
+                    } else {
+                        if (quotes.getLength() > 0) {
+                            stocksTableView.setSelectedIndex(0);
+                        }
+                    }
+
+                    DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG,
+                        DateFormat.MEDIUM, locale);
+                    String lastUpdateText = resources.get("lastUpdate")
+                        + ": " + dateFormat.format(new Date());
+                    lastUpdateLabel.setText(lastUpdateText);
+
+                    getQuery = null;
+                }
+            }
+
+            public void executeFailed(Task<Object> task) {
+                if (task == getQuery) {
+                    System.out.println(task.getFault());
+                    getQuery = null;
+                }
+            }
+        }));
+    }
+
+    @SuppressWarnings("unchecked")
+    private void refreshDetail() {
+        int firstSelectedIndex = stocksTableView.getFirstSelectedIndex();
+        removeSymbolsButton.setEnabled(firstSelectedIndex != -1);
+
+        StockQuote stockQuote = null;
+        Form.setFlag(detailChangeLabel, (Form.Flag)null);
+
+        if (firstSelectedIndex != -1) {
+            int lastSelectedIndex = stocksTableView.getLastSelectedIndex();
+
+            if (firstSelectedIndex == lastSelectedIndex) {
+                List<StockQuote> tableData = (List<StockQuote>)stocksTableView.getTableData();
+                stockQuote = tableData.get(firstSelectedIndex);
+
+                if (stockQuote.getChange() < 0) {
+                    Form.setFlag(detailChangeLabel, new Form.Flag(MessageType.ERROR));
+                }
+            }
+        }
+
+        StockQuoteView stockQuoteView = new StockQuoteView(stockQuote);
+        detailRootPane.load(stockQuoteView);
+    }
+
+    @SuppressWarnings("unchecked")
+    private void addSymbol() {
+        String symbol = symbolTextInput.getText().toUpperCase();
+        if (symbols.indexOf(symbol) == -1) {
+            int index = symbols.add(symbol);
+
+            List<StockQuote> tableData = (List<StockQuote>)stocksTableView.getTableData();
+            StockQuote stockQuote = new StockQuote();
+            stockQuote.put(StockQuote.SYMBOL_KEY, symbol);
+            tableData.insert(stockQuote, index);
+
+            stocksTableView.setSelectedIndex(index);
+        }
+
+        symbolTextInput.setText("");
+        refreshTable();
+    }
+
+    private void removeSelectedSymbols() {
+        int selectedIndex = stocksTableView.getFirstSelectedIndex();
+        int selectionLength = stocksTableView.getLastSelectedIndex() - selectedIndex + 1;
+        stocksTableView.getTableData().remove(selectedIndex, selectionLength);
+        symbols.remove(selectedIndex, selectionLength);
+
+        if (selectedIndex >= symbols.getLength()) {
+            selectedIndex = symbols.getLength() - 1;
+        }
+
+        stocksTableView.setSelectedIndex(selectedIndex);
+    }
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.json
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.json?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.json (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker.json Mon Mar 16 16:36:10 2009
@@ -0,0 +1,15 @@
+{	stockTracker: "Pivot Stock Tracker",
+	symbol: "Symbol",
+	companyName: "Company",
+	value: "Value",
+	openingValue: "Open",
+	highValue: "High",
+	lowValue: "Low",
+	change: "Change",
+	volume: "Volume",
+	addSymbol: "Add symbol",
+	removeSymbol: "Remove selected symbols",
+	lastUpdate: "Last Update",
+	dataProvidedBy: "Data provided by",
+	yahooFinance: "Yahoo! Finance"
+}

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker_fr.json
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker_fr.json?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker_fr.json (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/StockTracker_fr.json Mon Mar 16 16:36:10 2009
@@ -0,0 +1,15 @@
+{	stockTracker: "La Bourse Pivot",
+	symbol: "Code",
+	companyName: "Société",
+	value: "Cours",
+	openingValue: "Ouverture",
+	highValue: "+ Haut",
+	lowValue: "+ Bas",
+	change: "Variation",
+	volume: "Volume",
+	addSymbol: "Ajouter un code",
+	removeSymbol: "Enlever codes sélectionnés",
+	lastUpdate: "Dernier échange",
+	dataProvidedBy: "Données fournies par",
+	yahooFinance: "Yahoo! Finance"
+}

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

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

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

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

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

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

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

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

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.detail.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.detail.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.detail.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.detail.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 wtkx:id="rootPane" orientation="vertical"
+    styles="{horizontalAlignment:'justify'}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008" xmlns="pivot.wtk">
+    <Label textKey="companyName" styles="{fontBold:true, fontSize:12}" />
+    <Separator />
+    <Form styles="{rightAlignLabels:true, fieldAlignment:'right'}">
+        <sections>
+            <Form.Section>
+	            <Label Form.name="%value" textKey="value" />
+	            <Label wtkx:id="changeLabel" Form.name="%change" textKey="change" />
+	            <Label Form.name="%openingValue" textKey="openingValue" />
+	            <Label Form.name="%highValue" textKey="highValue" />
+	            <Label Form.name="%lowValue" textKey="lowValue" />
+	            <Label Form.name="%volume" textKey="volume" />
+            </Form.Section>
+        </sections>
+    </Form>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/stocktracker/stocktracker.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,106 @@
+<?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="{padding:8, horizontalSpacing:6, verticalSpacing:6}"
+    xmlns:wtkx="http://pivot-toolkit.org/wtkx/2008"
+    xmlns:content="pivot.wtk.content"
+    xmlns:stocktracker="pivot.tutorials.stocktracker"
+    xmlns="pivot.wtk">
+    <columns>
+        <TablePane.Column width="244" />
+        <TablePane.Column width="1*" />
+    </columns>
+
+    <rows>
+        <TablePane.Row height="-1">
+            <Label text="%stockTracker"
+                styles="{fontBold:true, fontSize:14, verticalAlignment:'center'}" />
+        </TablePane.Row>
+
+        <TablePane.Row height="1*">
+            <Border styles="{padding:0, color:10}">
+                <content>
+                    <ScrollPane horizontalScrollBarPolicy="fillToCapacity"
+                        verticalScrollBarPolicy="fillToCapacity">
+                        <view>
+                            <TableView wtkx:id="stocksTableView" selectMode="multi"
+                                styles="{showHorizontalGridLines:false}">
+                                <columns>
+                                    <TableView.Column name="symbol"
+                                        headerData="%symbol" width="80" />
+                                    <TableView.Column name="value" headerData="%value" width="80">
+                                        <cellRenderer>
+                                            <content:TableViewNumberCellRenderer styles="{horizontalAlignment:'right'}"
+                                                numberFormat="$$0.00"/>
+                                        </cellRenderer>
+                                    </TableView.Column>
+                                    <TableView.Column name="change" headerData="%change" width="80">
+                                        <cellRenderer>
+                                            <stocktracker:ChangeCellRenderer styles="{horizontalAlignment:'right'}"
+                                                numberFormat="+0.00;-0.00"/>
+                                        </cellRenderer>
+                                    </TableView.Column>
+                                </columns>
+                            </TableView>
+                        </view>
+
+                        <columnHeader>
+                            <TableViewHeader tableView="$stocksTableView" />
+                        </columnHeader>
+                    </ScrollPane>
+                </content>
+            </Border>
+
+            <Border styles="{padding:6, color:10}">
+                <content>
+                    <wtkx:include namespace="detail" src="stocktracker.detail.wtkx" />
+                </content>
+            </Border>
+        </TablePane.Row>
+
+        <TablePane.Row height="-1">
+            <FlowPane
+                styles="{horizontalAlignment:'left', verticalAlignment:'center'}">
+                <Label text="%symbol" styles="{fontBold:true}" />
+                <TextInput wtkx:id="symbolTextInput" textSize="10"
+                    maximumLength="8" />
+                <LinkButton wtkx:id="addSymbolButton" enabled="false"
+                    tooltipText="%addSymbol">
+                    <buttonData>
+                        <content:ButtonData icon="@add.png" />
+                    </buttonData>
+                </LinkButton>
+                <LinkButton wtkx:id="removeSymbolsButton" enabled="false"
+                    tooltipText="%removeSymbol">
+                    <buttonData>
+                        <content:ButtonData icon="@delete.png" />
+                    </buttonData>
+                </LinkButton>
+            </FlowPane>
+        </TablePane.Row>
+
+        <TablePane.Row height="-1">
+            <Label wtkx:id="lastUpdateLabel"
+                styles="{fontItalic:true, fontSize:10}" />
+            <FlowPane styles="{horizontalAlignment:'right'}">
+                <Label text="%dataProvidedBy" />
+                <LinkButton wtkx:id="yahooFinanceButton"
+                    buttonData="%yahooFinance" />
+            </FlowPane>
+        </TablePane.Row>
+    </rows>
+</TablePane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/tables.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/tables.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/tables.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/tables.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,95 @@
+<?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:4, spacing:8}">
+            <FlowPane orientation="vertical">
+                <Label text="Sortable" styles="{fontBold:true}"/>
+                <Border styles="{padding:0, color:10}">
+                    <content>
+                        <ScrollPane horizontalScrollBarPolicy="fillToCapacity" preferredWidth="276" preferredHeight="160">
+                            <view>
+                                <TableView wtkx:id="sortableTableView" selectMode="multi">
+                                    <columns>
+                                        <TableView.Column name="i" width="48"/>
+                                        <TableView.Column name="a" width="48"/>
+                                        <TableView.Column name="b" width="48"/>
+                                        <TableView.Column name="c" width="48"/>
+                                        <TableView.Column name="d" width="48"/>
+                                        <TableView.Column name="e" width="1*"/>
+                                    </columns>
+                                </TableView>
+                            </view>
+                            <columnHeader>
+                                <TableViewHeader wtkx:id="sortableTableViewHeader" tableView="$sortableTableView"/>
+                            </columnHeader>
+                        </ScrollPane>
+                    </content>
+                </Border>
+
+            </FlowPane>
+
+            <FlowPane orientation="vertical">
+                <Label text="Custom Content" styles="{fontBold:true}"/>
+                <Border styles="{padding:0, color:10}">
+                    <content>
+                        <ScrollPane horizontalScrollBarPolicy="fillToCapacity" preferredWidth="160">
+                            <view>
+                                <TableView wtkx:id="customTableView" selectMode="multi"
+                                    styles="{showHorizontalGridLines:false}">
+                                    <columns>
+                                        <TableView.Column name="a" width="20">
+                                            <headerData>
+                                                <content:TableViewHeaderData icon="@flag_red.png"/>
+                                            </headerData>
+
+                                            <cellRenderer>
+                                                <content:TableViewBooleanCellRenderer/>
+                                            </cellRenderer>
+                                        </TableView.Column>
+                                        <TableView.Column name="b" width="32" headerData="Icon">
+                                            <cellRenderer>
+                                                <content:TableViewImageCellRenderer/>
+                                            </cellRenderer>
+                                        </TableView.Column>
+                                        <TableView.Column name="c" width="1*" headerData="Name"/>
+                                    </columns>
+                                    <tableData>
+                                        <collections:ArrayList>
+                                            <content:TableRow a="true" b="@anchor.png" c="Anchor"/>
+                                            <content:TableRow a="false" b="@bell.png" c="Bell"/>
+                                            <content:TableRow a="false" b="@clock.png" c="Clock"/>
+                                            <content:TableRow a="true" b="@cup.png" c="Cup"/>
+                                            <content:TableRow a="false" b="@house.png" c="House"/>
+                                            <content:TableRow a="true" b="@star.png" c="Star"/>
+                                        </collections:ArrayList>
+                                    </tableData>
+                                </TableView>
+                            </view>
+                            <columnHeader>
+                                <TableViewHeader tableView="$customTableView" styles="{headersPressable:false}"/>
+                            </columnHeader>
+                        </ScrollPane>
+                    </content>
+                </Border>
+            </FlowPane>
+        </FlowPane>
+    </content>
+</Border>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text.wtkx Mon Mar 16 16:36:10 2009
@@ -0,0 +1,46 @@
+<?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>
+        <content>
+            <FlowPane orientation="vertical" styles="{horizontalAlignment:'justify', padding:{top:2, left:4, bottom:12, right:4}}">
+                <Label text="Text Input" styles="{fontBold:true}"/>
+                <Form>
+                    <sections>
+                        <Form.Section>
+	                        <TextInput Form.name="Basic" text="Pivot" textSize="12"/>
+	                        <TextInput Form.name="Password"
+	                            Form.flag="{messageType:'info', message:'This field has a maximum length of 12 characters.'}"
+	                            password="true" text="pivot" textSize="12" maximumLength="12" />
+                        </Form.Section>
+                    </sections>
+                </Form>
+            </FlowPane>
+        </content>
+    </Border>
+
+    <Border>
+        <content>
+            <FlowPane orientation="vertical" styles="{horizontalAlignment:'justify', padding:{top:2, left:4, bottom:8, right:4}}">
+                <Label text="Label Wrapping" styles="{fontBold:true}"/>
+                <Label text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr,  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
+                    preferredWidth="320" styles="{font:'Times New Roman 13', wrapText:true}"/>
+            </FlowPane>
+        </content>
+    </Border>
+</FlowPane>

Added: incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/Text.java
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/Text.java?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/Text.java (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/Text.java Mon Mar 16 16:36:10 2009
@@ -0,0 +1,152 @@
+/*
+ * 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.text;
+
+import pivot.collections.ArrayList;
+import pivot.collections.Dictionary;
+import pivot.collections.Sequence;
+import pivot.wtk.Application;
+import pivot.wtk.Component;
+import pivot.wtk.Display;
+import pivot.wtk.TextInput;
+import pivot.wtk.TextInputCharacterListener;
+import pivot.wtk.Window;
+import pivot.wtkx.WTKXSerializer;
+
+public class Text implements Application {
+    private Window window = new Window();
+    private ArrayList<String> states = new ArrayList<String>();
+
+    public Text() {
+        // Populate the lookup values, ensuring that they are sorted
+        states.setComparator(String.CASE_INSENSITIVE_ORDER);
+
+        states.add("Alabama");
+        states.add("Alaska");
+        states.add("Arizona");
+        states.add("Arkansas");
+        states.add("California");
+        states.add("Colorado");
+        states.add("Connecticut");
+        states.add("Delaware");
+        states.add("District of Columbia");
+        states.add("Florida");
+        states.add("Georgia");
+        states.add("Hawaii");
+        states.add("Idaho");
+        states.add("Illinois");
+        states.add("Indiana");
+        states.add("Iowa");
+        states.add("Kansas");
+        states.add("Kentucky");
+        states.add("Louisiana");
+        states.add("Maine");
+        states.add("Maryland");
+        states.add("Massachusetts");
+        states.add("Michigan");
+        states.add("Minnesota");
+        states.add("Mississippi");
+        states.add("Missouri");
+        states.add("Montana");
+        states.add("Nebraska");
+        states.add("Nevada");
+        states.add("New Hampshire");
+        states.add("New Jersey");
+        states.add("New Mexico");
+        states.add("New York");
+        states.add("North Carolina");
+        states.add("North Dakota");
+        states.add("Ohio");
+        states.add("Oklahoma");
+        states.add("Oregon");
+        states.add("Pennsylvania");
+        states.add("Rhode Island");
+        states.add("South Carolina");
+        states.add("South Dakota");
+        states.add("Tennessee");
+        states.add("Texas");
+        states.add("Utah");
+        states.add("Vermont");
+        states.add("Virginia");
+        states.add("Washington");
+        states.add("West Virginia");
+        states.add("Wisconsin");
+        states.add("Wyoming");
+    }
+
+    public void startup(Display display, Dictionary<String, String> properties)
+        throws Exception {
+        WTKXSerializer wtkxSerializer = new WTKXSerializer();
+        Component content =
+            (Component)wtkxSerializer.readObject("pivot/tutorials/text/text.wtkx");
+
+        TextInput stateTextInput =
+            (TextInput)wtkxSerializer.getObjectByName("stateTextInput");
+
+        stateTextInput.getTextInputCharacterListeners().add(new
+            TextInputCharacterListener() {
+            public void charactersInserted(TextInput textInput,
+                int index, int count) {
+                String text = textInput.getText();
+
+                int i = Sequence.Search.binarySearch(states, text,
+                    states.getComparator());
+
+                if (i < 0) {
+                    i = -(i + 1);
+                    int n = states.getLength();
+
+                    if (i < n) {
+                        text = text.toLowerCase();
+                        String state = states.get(i);
+
+                        if (state.toLowerCase().startsWith(text)) {
+                            String nextState = (i == n - 1) ?
+                                null : states.get(i + 1);
+
+                            if (nextState == null
+                                || !nextState.toLowerCase().startsWith(text)) {
+                                textInput.setText(state);
+                                textInput.setSelection(state.length(), 0);
+                            }
+                        }
+                    }
+                }
+            }
+
+            public void charactersRemoved(TextInput textInput, int index, int count) {
+            }
+
+            public void charactersReset(TextInput textInput) {
+            }
+        });
+
+        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/text/text.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/text.wtkx?rev=754936&view=auto
==============================================================================
--- incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/text.wtkx (added)
+++ incubator/pivot/tags/v1.0.1/tutorials/src/pivot/tutorials/text/text.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">
+    <Label text="State:"/>
+    <TextInput wtkx:id="stateTextInput" textSize="20"/>
+</FlowPane>