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/11/23 18:26:04 UTC

svn commit: r883427 - in /incubator/pivot: site/trunk/etc/ trunk/ trunk/demos/www/ trunk/demos/xsl/

Author: tvolkert
Date: Mon Nov 23 17:26:02 2009
New Revision: 883427

URL: http://svn.apache.org/viewvc?rev=883427&view=rev
Log:
Updates to site and demos pages

Added:
    incubator/pivot/trunk/demos/www/animated-clock.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/clock.png
    incubator/pivot/trunk/demos/www/index.xml
    incubator/pivot/trunk/demos/www/itunes-search.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/itunes_search.png
    incubator/pivot/trunk/demos/www/json-viewer.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/json_viewer.png
    incubator/pivot/trunk/demos/www/kitchen-sink.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/kitchen_sink.png
    incubator/pivot/trunk/demos/www/stock-tracker.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/stock_tracker.png
    incubator/pivot/trunk/demos/www/xml-viewer.png
      - copied unchanged from r883354, incubator/pivot/trunk/demos/www/xml_viewer.png
    incubator/pivot/trunk/demos/xsl/html.xsl
      - copied, changed from r883354, incubator/pivot/trunk/demos/xsl/demo.xsl
Removed:
    incubator/pivot/trunk/demos/www/clock.png
    incubator/pivot/trunk/demos/www/itunes_search.png
    incubator/pivot/trunk/demos/www/json_viewer.png
    incubator/pivot/trunk/demos/www/kitchen_sink.png
    incubator/pivot/trunk/demos/www/stock_tracker.png
    incubator/pivot/trunk/demos/www/xml_viewer.png
    incubator/pivot/trunk/demos/xsl/demo.xsl
Modified:
    incubator/pivot/site/trunk/etc/demo.xsl
    incubator/pivot/trunk/build.xml
    incubator/pivot/trunk/demos/www/animated-clock.xml
    incubator/pivot/trunk/demos/www/decorators.xml
    incubator/pivot/trunk/demos/www/dom-interaction.xml
    incubator/pivot/trunk/demos/www/file-drag-drop.xml
    incubator/pivot/trunk/demos/www/fixed-column-table.xml
    incubator/pivot/trunk/demos/www/index.html
    incubator/pivot/trunk/demos/www/itunes-search.xml
    incubator/pivot/trunk/demos/www/json-viewer.xml
    incubator/pivot/trunk/demos/www/kitchen-sink.xml
    incubator/pivot/trunk/demos/www/large-data.xml
    incubator/pivot/trunk/demos/www/multiselect.xml
    incubator/pivot/trunk/demos/www/rss-feed.xml
    incubator/pivot/trunk/demos/www/scripting.xml
    incubator/pivot/trunk/demos/www/stock-tracker.xml
    incubator/pivot/trunk/demos/www/table-row-editor.xml
    incubator/pivot/trunk/demos/www/xml-viewer.xml
    incubator/pivot/trunk/demos/xsl/jnlp.xsl

Modified: incubator/pivot/site/trunk/etc/demo.xsl
URL: http://svn.apache.org/viewvc/incubator/pivot/site/trunk/etc/demo.xsl?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/site/trunk/etc/demo.xsl (original)
+++ incubator/pivot/site/trunk/etc/demo.xsl Mon Nov 23 17:26:02 2009
@@ -117,21 +117,12 @@
 
       var parameters = {
         codebase_lookup:false,
-        java_arguments:"-Dsun.awt.noerasebackground=true -Dsun.awt.erasebackgroundonresize=true"
+        java_arguments:"-Dsun.awt.noerasebackground=true -Dsun.awt.erasebackgroundonresize=true",
+        application_class_name:"<xsl:value-of select="@class"/>"
       };
 
       <xsl:for-each select="parameters/*">
-        <xsl:variable name="parameter">
-          <xsl:choose>
-            <xsl:when test="name(.)='class-name'">
-              <xsl:value-of select="'application_class_name'"/>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:value-of select="name(.)"/>
-            </xsl:otherwise>
-          </xsl:choose>
-        </xsl:variable>
-        parameters.<xsl:value-of select="$parameter"/> = '<xsl:value-of select="."/>';
+        parameters.<xsl:value-of select="name(.)"/> = '<xsl:value-of select="."/>';
       </xsl:for-each>
 
       deployJava.runApplet(attributes, parameters, "1.6");

Modified: incubator/pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/build.xml (original)
+++ incubator/pivot/trunk/build.xml Mon Nov 23 17:26:02 2009
@@ -619,7 +619,7 @@
         <xslt basedir="demos/www"
             destdir="demos/www"
             extension=".html"
-            style="demos/xsl/demo.xsl"
+            style="demos/xsl/html.xsl"
             includes="*.xml"
             excludes="index.xml">
             <param name="release" expression="${version}"/>

Modified: incubator/pivot/trunk/demos/www/animated-clock.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/animated-clock.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/animated-clock.xml (original)
+++ incubator/pivot/trunk/demos/www/animated-clock.xml Mon Nov 23 17:26:02 2009
@@ -18,14 +18,18 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Animated Clock Demo</title>
+        <title>Animated Clock</title>
+        <description>
+            Demonstrates Pivot's MovieView component, which is used to present a clock constructed
+            using Pivot's drawing API.
+        </description>
     </properties>
     <body>
         <p>
             Demonstrates the use of the MovieView component, which is used to present an animated
             clock. The clock is drawn using Pivot's drawing API.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.clock.ClockDemo">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -35,9 +39,6 @@
                 <width>320</width>
                 <height>320</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.clock.ClockDemo</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/decorators.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/decorators.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/decorators.xml (original)
+++ incubator/pivot/trunk/demos/www/decorators.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,13 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Decorators Demo</title>
+        <title>Decorators</title>
+        <description>
+            Demonstrates the use of "decorators" in Pivot. Decorators allow a developer to attach
+            additional presentation to components, such as drop shadows, reflections, image
+            effects, etc. This example shows a window with a reflection decorator and a frame with
+            a fade decorator.
+        </description>
     </properties>
     <body>
         <p>
@@ -27,7 +33,7 @@
             effects, etc. This example shows a window with a reflection decorator and a frame with
             a fade decorator.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.decorator.DecoratorDemo">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -37,9 +43,6 @@
                 <width>640</width>
                 <height>640</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.decorator.DecoratorDemo</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/dom-interaction.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/dom-interaction.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/dom-interaction.xml (original)
+++ incubator/pivot/trunk/demos/www/dom-interaction.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,11 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot DOM Interaction Demo</title>
+        <title>DOM Interaction</title>
+        <description>
+            Demonstrates Pivot's support for bi-directional communication between a Pivot
+            application and the browser DOM.
+        </description>
     </properties>
     <head>
         <script type="text/javascript">
@@ -42,7 +46,7 @@
         <table>
             <tr>
                 <td style="text-align:center; border:solid 1px #999999">
-                    <demo>
+                    <demo class="org.apache.pivot.demos.dom.DOMInteractionDemo">
                         <libraries>
                             <library>core</library>
                             <library>wtk</library>
@@ -53,9 +57,6 @@
                             <height>240</height>
                             <id>domTestApplet</id>
                         </attributes>
-                        <parameters>
-                            <class-name>org.apache.pivot.demos.dom.DOMInteractionDemo</class-name>
-                        </parameters>
                     </demo>
                 </td>
             </tr>

Modified: incubator/pivot/trunk/demos/www/file-drag-drop.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/file-drag-drop.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/file-drag-drop.xml (original)
+++ incubator/pivot/trunk/demos/www/file-drag-drop.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,10 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot File Drag &amp; Drop Demo</title>
+        <title>File Drag &amp; Drop</title>
+        <description>
+            Demonstrates Pivot's support for drag and drop.
+        </description>
     </properties>
     <body>
         <p>
@@ -26,7 +29,7 @@
             from the desktop or local file system into the applet for upload to a web or other
             server.
         </p>
-        <demo signed="true">
+        <demo class="org.apache.pivot.demos.dnd.FileDropTargetDemo" signed="true">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -36,9 +39,6 @@
                 <width>280</width>
                 <height>260</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.dnd.FileDropTargetDemo</class-name>
-            </parameters>
         </demo>
         <p>
             Note that the application doesn't actually perform the upload - it merely serves as a

Modified: incubator/pivot/trunk/demos/www/fixed-column-table.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/fixed-column-table.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/fixed-column-table.xml (original)
+++ incubator/pivot/trunk/demos/www/fixed-column-table.xml Mon Nov 23 17:26:02 2009
@@ -18,14 +18,18 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Fixed-Column Table Demo</title>
+        <title>Fixed-Column Table</title>
+        <description>
+            Explains how to create a table with fixed columns in Pivot. Fixed columns are handy
+            when displaying tables with many columns.
+        </description>
     </properties>
     <body>
         <p>
             Demonstrates how to create a table with fixed columns in Pivot. Fixed columns are
             handy when displaying tables with many columns.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.tables.FixedColumnTable">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -35,9 +39,6 @@
                 <width>300</width>
                 <height>170</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.tables.FixedColumnTable</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/index.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.html?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/index.html (original)
+++ incubator/pivot/trunk/demos/www/index.html Mon Nov 23 17:26:02 2009
@@ -68,22 +68,22 @@
 launch the demos via Java Web Start, click <a href="web_start.jsp">here</a>.</p>
 <hr/>
 
-<h3><a href="kitchen_sink.html">"Kitchen Sink"</a></h3>
+<h3><a href="kitchen-sink.html">"Kitchen Sink"</a></h3>
 <p>Demonstrates a number of commonly used Pivot components.</p>
-<p><img src="kitchen_sink.png"></p>
+<p><img src="kitchen-sink.png"></p>
 <hr/>
 
-<h3><a href="stock_tracker.html">Stock Tracker</a></h3>
+<h3><a href="stock-tracker.html">Stock Tracker</a></h3>
 <p>An example of a simple but practical "real world" application built using
 Pivot. Monitors stock quotes provided by <a href="http://finance.yahoo.com/">Yahoo!
 Finance</a>.</p>
-<p><img src="stock_tracker.png"></p>
+<p><img src="stock-tracker.png"></p>
 <hr/>
 
-<h3><a href="itunes_search.html">iTunes Search</a></h3>
+<h3><a href="itunes-search.html">iTunes Search</a></h3>
 <p>Simple application that allows a user to run search queries against the
 iTunes Music Store and presents the results in a table view.</p>
-<p><img src="itunes_search.png"></p>
+<p><img src="itunes-search.png"></p>
 <hr/>
 
 <h3><a href="http://ixnay.biz/charts.html">Charting</a> <img src="page_go.png"></h3>
@@ -97,45 +97,45 @@
 <p><img src="sci.png"></p>
 <hr/>
 
-<h3><a href="json_viewer.html">JSON Viewer</a></h3>
+<h3><a href="json-viewer.html">JSON Viewer</a></h3>
 <p>Allows users to visually browse a JSON structure using a TreeView component.</p>
-<p><img src="json_viewer.png"></p>
+<p><img src="json-viewer.png"></p>
 <hr/>
 
-<h3><a href="xml_viewer.html">XML Viewer</a></h3>
+<h3><a href="xml-viewer.html">XML Viewer</a></h3>
 <p>Allows users to visually browse an XML document using a TreeView component.</p>
-<p><img src="xml_viewer.png"></p>
+<p><img src="xml-viewer.png"></p>
 <hr/>
 
 <h3><a href="scripting.html">Scripting</a></h3>
 <p>Simple example of a Pivot application written using JavaScript.</p>
 <hr/>
 
-<h3><a href="file_drag_drop.html">File Drag &amp; Drop</a></h3>
+<h3><a href="file-drag-drop.html">File Drag &amp; Drop</a></h3>
 <p>Demonstrates Pivot's support for drag and drop.</p>
 <hr/>
 
-<h3><a href="table_row_editor.html">Table Row Editor</a></h3>
+<h3><a href="table-row-editor.html">Table Row Editor</a></h3>
 <p>Example of a table row editor that uses a "Family Feud"-like flip effect to
 edit rows.</p>
 <hr/>
 
-<h3><a href="animated_clock.html">Animated Clock</a></h3>
+<h3><a href="animated-clock.html">Animated Clock</a></h3>
 <p>Demonstrates Pivot's MovieView component, which is used to present a clock
 constructed using Pivot's drawing API.</p>
 <p><img src="clock.png"></p>
 <hr/>
 
-<h3><a href="large_data.html">Large Data Sets</a></h3>
+<h3><a href="large-data.html">Large Data Sets</a></h3>
 <p>Demonstrates Pivot's ability to handle large data sets of up to 1,000,000
 rows.</p>
 <hr/>
 
-<h3><a href="rss_feed.html">RSS Feed</a></h3>
+<h3><a href="rss-feed.html">RSS Feed</a></h3>
 <p>Demonstrates how to build a simple RSS client in Pivot.</p>
 <hr/>
 
-<h3><a href="dom_interaction.html">DOM Interaction</a></h3>
+<h3><a href="dom-interaction.html">DOM Interaction</a></h3>
 <p>Demonstrates Pivot's support for bi-directional communication between a Pivot
 application and the browser DOM.</p>
 <hr/>
@@ -148,7 +148,7 @@
 <p><img src="decorators.png"></p>
 <hr/>
 
-<h3><a href="fixed_column_table.html">Fixed Column Table</a></h3>
+<h3><a href="fixed-column-table.html">Fixed Column Table</a></h3>
 <p>Explains how to create a table with fixed columns in Pivot. Fixed columns are
 handy when displaying tables with many columns.</p>
 <hr/>

Added: incubator/pivot/trunk/demos/www/index.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.xml?rev=883427&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/index.xml (added)
+++ incubator/pivot/trunk/demos/www/index.xml Mon Nov 23 17:26:02 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<document>
+    <properties>
+        <title>Pivot Demos</title>
+    </properties>
+    <body>
+        <p>
+            This page contains a collection of Pivot demos. All demos require Java 6 or greater.
+        </p>
+        <demo id="kitchen-sink" featured="true"/>
+        <demo id="stock-tracker"/>
+        <demo id="itunes-search"/>
+        <demo id="json-viewer"/>
+        <demo id="xml-viewer"/>
+        <demo id="scripting"/>
+        <demo id="file-drag-drop"/>
+        <demo id="table-row-editor"/>
+        <demo id="animated-clock"/>
+        <demo id="large-data"/>
+        <demo id="rss-feed"/>
+        <demo id="dom-interaction"/>
+        <demo id="decorators"/>
+        <demo id="fixed-column-table"/>
+        <demo id="multiselect"/>
+    </body>
+</document>

Modified: incubator/pivot/trunk/demos/www/itunes-search.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/itunes-search.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/itunes-search.xml (original)
+++ incubator/pivot/trunk/demos/www/itunes-search.xml Mon Nov 23 17:26:02 2009
@@ -18,14 +18,18 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot iTunes Search Demo</title>
+        <title>iTunes Search</title>
+        <description>
+            Simple application that allows a user to run search queries against the iTunes Music
+            Store and presents the results in a table view.
+        </description>
     </properties>
     <body>
         <p>
             Simple application that allows a user to run search queries against the iTunes Music
             Store and presents the results in a table view.
         </p>
-        <demo signed="true">
+        <demo class="org.apache.pivot.demos.itunes.SearchDemo" signed="true">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -36,9 +40,6 @@
                 <width>640</width>
                 <height>480</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.itunes.SearchDemo</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/json-viewer.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/json-viewer.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/json-viewer.xml (original)
+++ incubator/pivot/trunk/demos/www/json-viewer.xml Mon Nov 23 17:26:02 2009
@@ -18,13 +18,16 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot JSON Viewer</title>
+        <title>JSON Viewer</title>
+        <description>
+            Allows users to visually browse a JSON structure using a TreeView component.
+        </description>
     </properties>
     <body>
         <p>
             Allows users to visually browse a JSON structure using a TreeView component.
         </p>
-        <demo signed="true">
+        <demo class="org.apache.pivot.tools.json.JSONViewer" signed="true">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -34,9 +37,6 @@
                 <width>360</width>
                 <height>480</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.tools.json.JSONViewer</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/kitchen-sink.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/kitchen-sink.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/kitchen-sink.xml (original)
+++ incubator/pivot/trunk/demos/www/kitchen-sink.xml Mon Nov 23 17:26:02 2009
@@ -22,13 +22,16 @@
 -->
 <document group="demos">
     <properties>
-        <title>Pivot "Kitchen Sink" Demo</title>
+        <title>"Kitchen Sink"</title>
+        <description>
+            Demonstrates a number of commonly used Pivot components.
+        </description>
     </properties>
     <body>
         <p>
             This application demonstrates a number of commonly used Pivot components:
         </p>
-        <demo>
+        <demo class="org.apache.pivot.tutorials.KitchenSink">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -38,9 +41,6 @@
                 <width>800</width>
                 <height>600</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.tutorials.KitchenSink</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/large-data.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/large-data.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/large-data.xml (original)
+++ incubator/pivot/trunk/demos/www/large-data.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,10 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Large Data Sets Demo</title>
+        <title>Large Data Sets</title>
+        <description>
+            Demonstrates Pivot's ability to handle large data sets of up to 1,000,000 rows.
+        </description>
     </properties>
     <body>
         <p>
@@ -35,7 +38,7 @@
             Note that the 10e3.csv, 10e4.csv, and 10e5.csv files are not included in this
             distribution due to their large size.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.million.LargeData">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -46,8 +49,7 @@
                 <height>480</height>
             </attributes>
             <parameters>
-                <class-name>org.apache.pivot.demos.million.LargeData</class-name>
-                <startup-properties>basePath=pivot-demos/assets</startup-properties>
+                <startup_properties>basePath=pivot-demos/assets</startup_properties>
             </parameters>
         </demo>
     </body>

Modified: incubator/pivot/trunk/demos/www/multiselect.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/multiselect.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/multiselect.xml (original)
+++ incubator/pivot/trunk/demos/www/multiselect.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,11 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Multiple Selection Demo</title>
+        <title>Multiple Selection</title>
+        <description>
+            Demonstrates Pivot's use of ranges to maintain selection state in a ListView component.
+            This is more efficient than maintaining a list of individual selected indexes.
+        </description>
     </properties>
     <body>
         <p>
@@ -26,7 +30,7 @@
             ListView component. This is more efficient than maintaining a list of individual
             selected indexes.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.lists.MultiSelect">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -36,9 +40,6 @@
                 <width>480</width>
                 <height>360</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.lists.MultiSelect</class-name>
-            </parameters>
         </demo>
         <p>
             TableView also maintains selection in this manner.

Modified: incubator/pivot/trunk/demos/www/rss-feed.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/rss-feed.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/rss-feed.xml (original)
+++ incubator/pivot/trunk/demos/www/rss-feed.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,10 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot RSS Feed Demo</title>
+        <title>RSS Feed</title>
+        <description>
+            Demonstrates how to build a simple RSS client in Pivot.
+        </description>
     </properties>
     <body>
         <p>
@@ -26,7 +29,7 @@
             custom list view item renderer to present the news data. Double-clicking an item in
             the list will open the article in a new window.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.rss.RSSFeedDemo">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -36,9 +39,6 @@
                 <width>480</width>
                 <height>360</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.rss.RSSFeedDemo</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/scripting.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/scripting.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/scripting.xml (original)
+++ incubator/pivot/trunk/demos/www/scripting.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,10 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Scripting Demo</title>
+        <title>Scripting</title>
+        <description>
+            Simple example of a Pivot application written using JavaScript.
+        </description>
     </properties>
     <body>
         <p>
@@ -26,7 +29,7 @@
             implement event handlers and populate a list view component with data. It also
             demonstrates data sharing between script and Java code:
         </p>
-        <demo>
+        <demo class="org.apache.pivot.tutorials.scripting.Scripting">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -36,9 +39,6 @@
                 <width>480</width>
                 <height>360</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.tutorials.scripting.Scripting</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Modified: incubator/pivot/trunk/demos/www/stock-tracker.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/stock-tracker.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/stock-tracker.xml (original)
+++ incubator/pivot/trunk/demos/www/stock-tracker.xml Mon Nov 23 17:26:02 2009
@@ -18,7 +18,11 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Stock Tracker Demo</title>
+        <title>Stock Tracker</title>
+        <description>
+            An example of a simple but practical "real world" Pivot application. It monitors stock
+            quotes provided by <a href="http://finance.yahoo.com/">Yahoo! Finance</a>.
+        </description>
     </properties>
     <body>
         <p>
@@ -26,7 +30,7 @@
             Yahoo! Finance as a CSV file and presents it in a table view component (the applet is
             signed to allow it to communicate with the Yahoo web service):
         </p>
-        <demo signed="true">
+        <demo class="org.apache.pivot.tutorials.stocktracker.StockTracker" signed="true">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -38,8 +42,7 @@
                 <height>360</height>
             </attributes>
             <parameters>
-                <class-name>org.apache.pivot.tutorials.stocktracker.StockTracker</class-name>
-                <startup-properties>language=en</startup-properties>
+                <startup_properties>language=en</startup_properties>
             </parameters>
         </demo>
         <p>

Modified: incubator/pivot/trunk/demos/www/table-row-editor.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/table-row-editor.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/table-row-editor.xml (original)
+++ incubator/pivot/trunk/demos/www/table-row-editor.xml Mon Nov 23 17:26:02 2009
@@ -18,14 +18,17 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot Table Row Editor Demo</title>
+        <title>Table Row Editor</title>
+        <description>
+            An example of a table row editor that uses a slide effect to edit rows.
+        </description>
     </properties>
     <body>
         <p>
             This sample application demonstrates the use of a flip transition to bring up a table
             view row editor.
         </p>
-        <demo>
+        <demo class="org.apache.pivot.demos.roweditor.RowEditorDemo">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -35,9 +38,6 @@
                 <width>480</width>
                 <height>360</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.demos.roweditor.RowEditorDemo</class-name>
-            </parameters>
         </demo>
         <p>
             Users can double click on any row to bring up the editor. Pressing the Enter key or

Modified: incubator/pivot/trunk/demos/www/xml-viewer.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/xml-viewer.xml?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/xml-viewer.xml (original)
+++ incubator/pivot/trunk/demos/www/xml-viewer.xml Mon Nov 23 17:26:02 2009
@@ -18,13 +18,16 @@
 
 <document group="demos">
     <properties>
-        <title>Pivot XML Viewer</title>
+        <title>XML Viewer</title>
+        <description>
+            Allows users to visually browse an XML document using a TreeView component.
+        </description>
     </properties>
     <body>
         <p>
             Allows users to visually browse an XML document using a TreeView component.
         </p>
-        <demo signed="true">
+        <demo class="org.apache.pivot.tools.xml.XMLViewer" signed="true">
             <libraries>
                 <library>core</library>
                 <library>wtk</library>
@@ -34,9 +37,6 @@
                 <width>640</width>
                 <height>480</height>
             </attributes>
-            <parameters>
-                <class-name>org.apache.pivot.tools.xml.XMLViewer</class-name>
-            </parameters>
         </demo>
     </body>
 </document>

Copied: incubator/pivot/trunk/demos/xsl/html.xsl (from r883354, incubator/pivot/trunk/demos/xsl/demo.xsl)
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/xsl/html.xsl?p2=incubator/pivot/trunk/demos/xsl/html.xsl&p1=incubator/pivot/trunk/demos/xsl/demo.xsl&r1=883354&r2=883427&rev=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/xsl/demo.xsl (original)
+++ incubator/pivot/trunk/demos/xsl/html.xsl Mon Nov 23 17:26:02 2009
@@ -33,7 +33,7 @@
             <head>
                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                 <title>
-                    <xsl:value-of select="properties/title"/>
+                    Pivot <xsl:value-of select="properties/title"/> Demo
                 </title>
                 <link rel="stylesheet" href="demo.css" type="text/css"/>
                 <script src="http://java.com/js/deployJava.js"></script>
@@ -82,21 +82,12 @@
 
             var parameters = {
                 codebase_lookup:false,
-                java_arguments:"-Dsun.awt.noerasebackground=true -Dsun.awt.erasebackgroundonresize=true"
+                java_arguments:"-Dsun.awt.noerasebackground=true -Dsun.awt.erasebackgroundonresize=true",
+                application_class_name:"<xsl:value-of select="@class"/>"
             };
 
             <xsl:for-each select="parameters/*">
-                <xsl:variable name="parameter">
-                    <xsl:choose>
-                        <xsl:when test="name(.)='class-name'">
-                            <xsl:value-of select="'application_class_name'"/>
-                        </xsl:when>
-                        <xsl:otherwise>
-                            <xsl:value-of select="name(.)"/>
-                        </xsl:otherwise>
-                    </xsl:choose>
-                </xsl:variable>
-                parameters.<xsl:value-of select="$parameter"/> = '<xsl:value-of select="."/>';
+                parameters.<xsl:value-of select="name(.)"/> = '<xsl:value-of select="."/>';
             </xsl:for-each>
 
             deployJava.runApplet(attributes, parameters, "1.6");

Modified: incubator/pivot/trunk/demos/xsl/jnlp.xsl
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/xsl/jnlp.xsl?rev=883427&r1=883426&r2=883427&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/xsl/jnlp.xsl (original)
+++ incubator/pivot/trunk/demos/xsl/jnlp.xsl Mon Nov 23 17:26:02 2009
@@ -22,10 +22,6 @@
     <!-- Output method -->
     <xsl:output method="text"/>
 
-    <xsl:variable name="title">
-        <xsl:value-of select="//document/properties/title"/>
-    </xsl:variable>
-
     <xsl:template match="demo">
         &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
 
@@ -34,7 +30,8 @@
 
         &lt;jnlp spec="1.6+" codebase="&lt;%= codebase %&gt;" href="&lt;%= href %&gt;"&gt;
             &lt;information&gt;
-                &lt;title&gt;<xsl:value-of select="$title"/>&lt;/title&gt;
+                &lt;title&gt;Pivot <xsl:value-of select="//document/properties/title"/> Demo&lt;/title&gt;
+                &lt;description&gt;<xsl:value-of select="//document/properties/description"/>&lt;/description&gt;
                 &lt;vendor&gt;Apache Pivot&lt;/vendor&gt;
                 &lt;homepage href="http://pivot.apache.org/"/&gt;
                 &lt;icon kind="shortcut" href="logo.png"/&gt;
@@ -77,17 +74,11 @@
             &lt;/resources&gt;
 
             &lt;application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext"&gt;
+                &lt;argument&gt;<xsl:value-of select="@class"/>&lt;/argument&gt;
                 <xsl:for-each select="parameters/*">
-                    <xsl:choose>
-                        <xsl:when test="name(.)='class-name'">
-                            &lt;argument&gt;<xsl:value-of select="."/>&lt;/argument&gt;
-                        </xsl:when>
-                        <xsl:otherwise>
-                            &lt;argument&gt;
-                                --<xsl:value-of select="name(.)"/>=<xsl:value-of select="."/>
-                            &lt;/argument&gt;
-                        </xsl:otherwise>
-                    </xsl:choose>
+                    &lt;argument&gt;
+                        --<xsl:value-of select="name(.)"/>=<xsl:value-of select="."/>
+                    &lt;/argument&gt;
                 </xsl:for-each>
             &lt;/application-desc&gt;