You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/06/26 15:47:31 UTC

svn commit: r788700 - in /incubator/pivot/trunk/demos/www: decorators.template.html dom_interaction.template.html index.html itunes_search.template.html large_data.template.html rss_feed.template.html

Author: gbrown
Date: Fri Jun 26 13:47:30 2009
New Revision: 788700

URL: http://svn.apache.org/viewvc?rev=788700&view=rev
Log:
Various fixes to HTML demo pages.

Added:
    incubator/pivot/trunk/demos/www/dom_interaction.template.html
Modified:
    incubator/pivot/trunk/demos/www/decorators.template.html
    incubator/pivot/trunk/demos/www/index.html
    incubator/pivot/trunk/demos/www/itunes_search.template.html
    incubator/pivot/trunk/demos/www/large_data.template.html
    incubator/pivot/trunk/demos/www/rss_feed.template.html

Modified: incubator/pivot/trunk/demos/www/decorators.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/decorators.template.html?rev=788700&r1=788699&r2=788700&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/decorators.template.html (original)
+++ incubator/pivot/trunk/demos/www/decorators.template.html Fri Jun 26 13:47:30 2009
@@ -32,7 +32,7 @@
     width:640,
     height:640
 };
-var parameters = {application_class_name:"org.apache.pivot.demos.DecoratorDemo",
+var parameters = {application_class_name:"org.apache.pivot.demos.decorator.DecoratorDemo",
     codebase_lookup:false
 };
 var version = "1.6";

Added: incubator/pivot/trunk/demos/www/dom_interaction.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/dom_interaction.template.html?rev=788700&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/dom_interaction.template.html (added)
+++ incubator/pivot/trunk/demos/www/dom_interaction.template.html Fri Jun 26 13:47:30 2009
@@ -0,0 +1,68 @@
+<!--
+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.
+-->
+
+<html>
+<head>
+<title>Pivot DOM Interaction Demo</title>
+
+<script>
+// This function will be called by Pivot
+function sayHello(helloText) {
+    alert(helloText);
+}
+
+// This function will call into Pivot
+function onHelloButtonClick() {
+    var domTestApplet = document.getElementById("domTestApplet");
+    domTestApplet.getApplication().sayHello("Hello from JavaScript!");
+}
+</script>
+
+</head>
+<body>
+<p>Demonstrates Pivot's support for bi-directional communication between a Pivot
+application and the browser DOM.</p>
+
+<table>
+<tr>
+<td style="text-align:center; border:solid 1px #999999">
+
+<script src="http://java.com/js/deployJava.js"></script>
+<script>
+var attributes = {code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
+    archive:"lib/@project_name@-core-@version@.jar,lib/@project_name@-wtk-@version@.jar,lib/@project_name@-wtk-@version@.terra.jar,lib/@project_name@-demos-@version@.jar",
+    width:380,
+    height:240,
+    id:"domTestApplet"
+};
+var parameters = {application_class_name:"org.apache.pivot.demos.dom.DOMTest",
+    codebase_lookup:false
+};
+var version = "1.6";
+deployJava.runApplet(attributes, parameters, version);
+</script>
+</td>
+</tr>
+<tr>
+<td style="text-align:center; border:solid 1px #999999">
+<button onclick="onHelloButtonClick()">Say Hello</button>
+</td>
+</tr>
+</table>
+
+</body>
+</html>

Modified: incubator/pivot/trunk/demos/www/index.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.html?rev=788700&r1=788699&r2=788700&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/index.html (original)
+++ incubator/pivot/trunk/demos/www/index.html Fri Jun 26 13:47:30 2009
@@ -34,17 +34,22 @@
 </p>
 
 <p>
-<a href="scripting.html">Scripting</a><br>
-Simple example of a Pivot application written using JavaScript and Groovy.<br>
-</p>
-
-<p>
 <a href="itunes_search.html">iTunes Search</a><br>
 Simple application that allows a user to run search queries against the
 iTunes Music Store and presents the results in a table view.<br>
 </p>
 
 <p>
+<a href="json_viewer.html">JSON Viewer</a><br>
+Allows users to visually browse a JSON structure using a TreeView component.<br>
+</p>
+
+<p>
+<a href="scripting.html">Scripting</a><br>
+Simple example of a Pivot application written using JavaScript and Groovy.<br>
+</p>
+
+<p>
 <a href="file_browser.html">File Browser</a><br>
 Demonstrates a file system browser built with Pivot.<br>
 </p>

Modified: incubator/pivot/trunk/demos/www/itunes_search.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/itunes_search.template.html?rev=788700&r1=788699&r2=788700&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/itunes_search.template.html (original)
+++ incubator/pivot/trunk/demos/www/itunes_search.template.html Fri Jun 26 13:47:30 2009
@@ -26,9 +26,9 @@
 <script src="http://java.com/js/deployJava.js"></script>
 <script>
 var attributes = {code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
-    archive:"lib/@project_name@-core-@version@.signed.jar,lib/@project_name@-wtk-@version@.signed.jar,lib/@project_name@-wtk-@version@.terra.signed.jar,lib/@project_name@-demos-@version@.signed.jar",
-    width:800,
-    height:600
+    archive:"lib/@project_name@-core-@version@.signed.jar,lib/@project_name@-web-@version@.signed.jar,lib/@project_name@-wtk-@version@.signed.jar,lib/@project_name@-wtk-@version@.terra.signed.jar,lib/@project_name@-demos-@version@.signed.jar",
+    width:640,
+    height:480
 };
 var parameters = {application_class_name:"org.apache.pivot.demos.itunes.SearchDemo",
     codebase_lookup:false

Modified: incubator/pivot/trunk/demos/www/large_data.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/large_data.template.html?rev=788700&r1=788699&r2=788700&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/large_data.template.html (original)
+++ incubator/pivot/trunk/demos/www/large_data.template.html Fri Jun 26 13:47:30 2009
@@ -30,8 +30,7 @@
 generated from a database query or other back-end data source.</p>
 
 <p>Note that the 10e3.csv, 10e4.csv, and 10e5.csv files are not included in
-this distribution due to their large size. However, they can be downloaded from
-<a href="#">TBD</a>.</p>
+this distribution due to their large size.</p>
 
 <script src="http://java.com/js/deployJava.js"></script>
 <script>
@@ -41,7 +40,7 @@
     height:480
 };
 var parameters = {application_class_name:"org.apache.pivot.demos.million.LargeData",
-    startup_properties:"base-path:assets",
+    startup_properties:"base-path:pivot_demos/assets",
     codebase_lookup:false,
     java_arguments:"-Xms512M"
 };

Modified: incubator/pivot/trunk/demos/www/rss_feed.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/rss_feed.template.html?rev=788700&r1=788699&r2=788700&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/rss_feed.template.html (original)
+++ incubator/pivot/trunk/demos/www/rss_feed.template.html Fri Jun 26 13:47:30 2009
@@ -38,7 +38,7 @@
 var parameters = {application_class_name:"org.apache.pivot.demos.rss.RSSFeedDemo",
     codebase_lookup:false
 };
-var version = "1.6.10";
+var version = "1.6";
 deployJava.runApplet(attributes, parameters, version);
 </script>
 </body>