You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2009/10/16 16:43:08 UTC

svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Author: smartini
Date: Fri Oct 16 14:43:08 2009
New Revision: 825911

URL: http://svn.apache.org/viewvc?rev=825911&view=rev
Log:
new version of index page (Web Start links must be absolute), so the html version has to be removed

Added:
    incubator/pivot/trunk/demos/www/index.jsp

Added: incubator/pivot/trunk/demos/www/index.jsp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.jsp?rev=825911&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/index.jsp (added)
+++ incubator/pivot/trunk/demos/www/index.jsp Fri Oct 16 14:43:08 2009
@@ -0,0 +1,179 @@
+<!--
+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>Index of Pivot Demos</title>
+<link rel="stylesheet" href="demo.css">
+<style>
+body {
+    font-family:Verdana;
+    font-size:11px;
+}
+
+p.caption {
+    font-style:italic;
+    padding-top:0px;
+}
+
+p.command {
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+    background-color:#E7E5DC;
+    padding-top:12px;
+    padding-left:24px;
+    padding-bottom:12px;
+    padding-right:24px;
+}
+
+pre.snippet {
+    padding:6px;
+    border:#E7E5DC solid 1px;
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+    font-size:1em;
+}
+
+tt {
+    font-family:"Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New";
+}
+
+table {
+    font-size:11px;
+}
+
+img { 
+    vertical-align: middle;
+}
+</style>
+<script src="http://java.com/js/deployJava.js"></script>
+<%@ include file="jnlp_common.jsp" %>
+</head>
+<body>
+<h2>Demos</h2>
+<p>This page contains a collection of Pivot demos. All demos require Java 6 or greater.</p>
+<br/>
+
+<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>
+<br/>
+<div>
+Unsigned:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;,&nbsp;
+Signed:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.signed.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;,&nbsp;
+Signed with Custom Colors:&nbsp;
+<script>
+var url = "<%= codebase %>kitchen_sink.custom_colors.jnlp";
+deployJava.createWebStartLaunchButton(url, '1.6');
+</script>
+&nbsp;&nbsp;&nbsp;
+</div>
+<hr/>
+
+<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>
+<hr/>
+
+<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>
+<hr/>
+
+<h3><a href="http://ixnay.biz/charts.html">Charting</a> <img src="page_go.png"></h3>
+<p>Demonstrates charting in Pivot using the JFreeChart chart provider (hosted at http://ixnay.biz).</p>
+<p><img src="charts.png"></p>
+<hr/>
+
+<h3><a href="http://www.satelliteconsulting.com/">News Ticker/Slide Show</a> <img src="page_go.png"></h3>
+<p>Demonstrates Pivot used in a real-world context, used to show a news feed
+and a slide show of client logos (hosted at http://www.satelliteconsulting.com).</p>
+<p><img src="sci.png"></p>
+<hr/>
+
+<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>
+<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>
+<p>Demonstrates Pivot's support for drag and drop.</p>
+<hr/>
+
+<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>
+<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>
+<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>
+<p>Demonstrates how to build a simple RSS client in Pivot.</p>
+<hr/>
+
+<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/>
+
+<h3><a href="decorators.html">Decorators</a></h3>
+<p>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.</p>
+<p><img src="decorators.png"></p>
+<hr/>
+
+<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/>
+
+<h3><a href="multiselect.html">Multiple Selection</a></h3>
+<p>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.</p>
+<hr/>
+
+<br/>
+
+</body>
+</html>



Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Sandro Martini <sa...@gmail.com>.
> Have a good weekend...
Thanks, the same to you and all other Pivot Developers ...

Bye

Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Greg Brown <gk...@mac.com>.
>> I still think it may make sense to provide two separate launch  
>> pages. We
>> can't launch any JNLP files from the project home page without  
>> manually
>> modifying them before we deploy, so we may just want to keep the  
>> Web Start
>> versions as a WAR-only feature.
> This is needed by the strange behavior of our site, linking jars that
> doesn't work, or other reasons ?

No, it is because incubator.apache.org/pivot doesn't support JSP files.

> Otherwise we could have 2 separate folders for any www root, maybe
> providing a sort of copy needed files when creating the war, but i
> think this could generate confusion ...
>
> Or keeping the site version separated from the war version ...

I think that would be a lot of effort just to support a few JNLP  
files. Simply providing a separate WAR-only file for launching the Web  
Start versions would be much easier...

> If someone has some idea, this is the right place ... otherwise let's
> update Monday ... bye to all.

Have a good weekend...



Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Sandro Martini <sa...@gmail.com>.
> I still think it may make sense to provide two separate launch pages. We
> can't launch any JNLP files from the project home page without manually
> modifying them before we deploy, so we may just want to keep the Web Start
> versions as a WAR-only feature.
This is needed by the strange behavior of our site, linking jars that
doesn't work, or other reasons ?

Otherwise we could have 2 separate folders for any www root, maybe
providing a sort of copy needed files when creating the war, but i
think this could generate confusion ...

Or keeping the site version separated from the war version ...

Ok, so now I try to think at some solution and for the moment i stop
this work, and continue creating jnlp files for other demos (1 jnlp
file per demo, signed or not, the same used in its applet).

If someone has some idea, this is the right place ... otherwise let's
update Monday ... bye to all.

Sandro

Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Greg Brown <gk...@mac.com>.
I still think it may make sense to provide two separate launch pages.  
We can't launch any JNLP files from the project home page without  
manually modifying them before we deploy, so we may just want to keep  
the Web Start versions as a WAR-only feature.


On Oct 16, 2009, at 11:20 AM, Sandro Martini wrote:

> Hi Greg,
> I've just found an all-Javascript way:
> using document.URL , or document.location.href .
>
> If this works good i could drop the jsp version, keeping only the html
> version, more simple to show for every case.
>
> I'll tell you something as soon as possible ...
>
> Byeeee


Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
I've just found an all-Javascript way:
using document.URL , or document.location.href .

If this works good i could drop the jsp version, keeping only the html
version, more simple to show for every case.

I'll tell you something as soon as possible ...

Byeeee

Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Greg Brown <gk...@mac.com>.
You don't need to delete index.jsp (see my previous email). I am  
thinking we should just define two top-level pages: one for the web  
site that is static HTML, and another for launching JNLP files when  
demos.war is deployed to an actual servlet container.

On Oct 16, 2009, at 11:12 AM, Sandro Martini wrote:

>> Ah, I see that you have not removed it - good. But we should still  
>> talk about how best to manage the JNLP
> links.
> Ok ... maybe there is some Javascript trick to get the current URL,
> and then pass it to the standard (Sun) Javascript function that
> generates the button.
>
> So should I delete the index.jsp file, or can we wait a little ?
>
> Sandro


Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Sandro Martini <sa...@gmail.com>.
> Ah, I see that you have not removed it - good. But we should still talk about how best to manage the JNLP
links.
Ok ... maybe there is some Javascript trick to get the current URL,
and then pass it to the standard (Sun) Javascript function that
generates the button.

So should I delete the index.jsp file, or can we wait a little ?

Sandro

Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Greg Brown <gk...@mac.com>.
Ah, I see that you have not removed it - good. But we should still  
talk about how best to manage the JNLP links.

On Oct 16, 2009, at 11:06 AM, Greg Brown wrote:

> Unfortunately, we need the HTML version, since our ASF site doesn't  
> support JSP. This is one of the reasons I had asked you to keep your  
> changes to a minimum. Please restore the HTML version and let's talk  
> about other alternatives.
>
> Thanks,
> Greg
>
>
> On Oct 16, 2009, at 10:51 AM, Sandro Martini wrote:
>
>> Hi to all,
>> this is a preliminary version of the new index page.
>>
>> Web Start URLs must be absolute, so the html version of this page has
>> to be removed.
>>
>> At the moment I've only added (in a standard way, like for Applets)
>> buttons for the "Kitchen Sink", with a little infos on each button
>> (using deploy.js isn't possible to add a tooltip to buttons ... very
>> good Sun).
>>
>> In attach there is a sample screenshot of the page running from a
>> local Tomcat, inside the zip.
>>
>> I've added a style to align all images in the page at the middle (of
>> the element enclosing them, like the current line of text), otherwise
>> the result in not so good.
>> To improve readability I've also added an HR tag between Demos.
>>
>> Tell me if this is Ok, so in next days I'll finish the work (and
>> remove the index.html).
>>
>>
>> Bye,
>> Sandro
>> <pivot_demos_new_index_screenshot1.zip>
>


Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Greg Brown <gk...@mac.com>.
Unfortunately, we need the HTML version, since our ASF site doesn't  
support JSP. This is one of the reasons I had asked you to keep your  
changes to a minimum. Please restore the HTML version and let's talk  
about other alternatives.

Thanks,
Greg


On Oct 16, 2009, at 10:51 AM, Sandro Martini wrote:

> Hi to all,
> this is a preliminary version of the new index page.
>
> Web Start URLs must be absolute, so the html version of this page has
> to be removed.
>
> At the moment I've only added (in a standard way, like for Applets)
> buttons for the "Kitchen Sink", with a little infos on each button
> (using deploy.js isn't possible to add a tooltip to buttons ... very
> good Sun).
>
> In attach there is a sample screenshot of the page running from a
> local Tomcat, inside the zip.
>
> I've added a style to align all images in the page at the middle (of
> the element enclosing them, like the current line of text), otherwise
> the result in not so good.
> To improve readability I've also added an HR tag between Demos.
>
> Tell me if this is Ok, so in next days I'll finish the work (and
> remove the index.html).
>
>
> Bye,
> Sandro
> <pivot_demos_new_index_screenshot1.zip>


Re: svn commit: r825911 - /incubator/pivot/trunk/demos/www/index.jsp

Posted by Sandro Martini <sa...@gmail.com>.
Hi to all,
this is a preliminary version of the new index page.

Web Start URLs must be absolute, so the html version of this page has
to be removed.

At the moment I've only added (in a standard way, like for Applets)
buttons for the "Kitchen Sink", with a little infos on each button
(using deploy.js isn't possible to add a tooltip to buttons ... very
good Sun).

In attach there is a sample screenshot of the page running from a
local Tomcat, inside the zip.

I've added a style to align all images in the page at the middle (of
the element enclosing them, like the current line of text), otherwise
the result in not so good.
To improve readability I've also added an HR tag between Demos.

Tell me if this is Ok, so in next days I'll finish the work (and
remove the index.html).


Bye,
Sandro