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/20 16:36:47 UTC

svn commit: r827572 - in /incubator/pivot/trunk/demos/www: decorators.jnlp fixed_column_table.jnlp multiselect.jnlp

Author: smartini
Date: Tue Oct 20 14:36:47 2009
New Revision: 827572

URL: http://svn.apache.org/viewvc?rev=827572&view=rev
Log:
add other jnlp files. 
Now is missing only the DOM Interaction Demo.

Added:
    incubator/pivot/trunk/demos/www/decorators.jnlp
    incubator/pivot/trunk/demos/www/fixed_column_table.jnlp
    incubator/pivot/trunk/demos/www/multiselect.jnlp

Added: incubator/pivot/trunk/demos/www/decorators.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/decorators.jnlp?rev=827572&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/decorators.jnlp (added)
+++ incubator/pivot/trunk/demos/www/decorators.jnlp Tue Oct 20 14:36:47 2009
@@ -0,0 +1,53 @@
+<?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.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Decorators Demo</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <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>
+        <icon kind="shortcut" href="logo.png" />
+        <offline-allowed/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.jnlp" />
+
+        <jar href="lib/pivot-demos-<%= version %>.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.demos.decorator.DecoratorDemo</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>

Added: incubator/pivot/trunk/demos/www/fixed_column_table.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/fixed_column_table.jnlp?rev=827572&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/fixed_column_table.jnlp (added)
+++ incubator/pivot/trunk/demos/www/fixed_column_table.jnlp Tue Oct 20 14:36:47 2009
@@ -0,0 +1,56 @@
+<?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.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Fixed-Column Table Demo</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <description>Demonstrates how to create a table with fixed columns in Pivot. Fixed columns are handy when displaying tables with many columns.</description>
+        <icon kind="shortcut" href="logo.png" />
+        <offline-allowed/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.jnlp" />
+
+        <jar href="lib/pivot-demos-<%= version %>.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.demos.tables.FixedColumnTable</argument>
+        <argument>--width=300</argument>
+        <argument>--height=170</argument>
+        <argument>--center=true</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>

Added: incubator/pivot/trunk/demos/www/multiselect.jnlp
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/multiselect.jnlp?rev=827572&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/www/multiselect.jnlp (added)
+++ incubator/pivot/trunk/demos/www/multiselect.jnlp Tue Oct 20 14:36:47 2009
@@ -0,0 +1,56 @@
+<?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.
+ */
+%>
+
+<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
+
+<%@ include file="version.jsp" %>
+<%@ include file="jnlp_common.jsp" %>
+
+<jnlp spec="1.6+" codebase="<%= codebase %>" href="<%= href %>">
+    <information>
+        <title>Pivot Multiple Selection Demo</title>
+        <vendor>Apache Pivot</vendor>
+        <homepage href="http://incubator.apache.org/pivot/"/>
+        <description>This application 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>
+        <icon kind="shortcut" href="logo.png" />
+        <offline-allowed/>
+        <shortcut online="false">
+            <desktop/>
+        </shortcut>
+    </information>
+
+    <resources>
+<%@ include file="jnlp_properties.jsp" %>
+        <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
+
+        <extension name="pivot-runtime" href="<%= codebase %>pivot-runtime.jnlp" />
+
+        <jar href="lib/pivot-demos-<%= version %>.jar" main="true" />
+    </resources>
+
+    <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+        <argument>org.apache.pivot.demos.lists.MultiSelect</argument>
+        <argument>--width=480</argument>
+        <argument>--height=360</argument>
+        <argument>--center=true</argument>
+    </application-desc>
+    
+    <update check="background" />
+</jnlp>



Re: svn commit: r827572

Posted by Sandro Martini <sa...@gmail.com>.
> Yes, if you have time, it would be great if you could wrap this up.
Ok, I'm doing it.

After the commit tell me what do you think.

Bye

Re: svn commit: r827572

Posted by Greg Brown <gk...@mac.com>.
>> No, we should rename it in SVN.
> Ok, do you want to make ?

No, you can do this.

>> The web_start.jsp page only needs links to JNLP files. index.html  
>> is used to launch the applet versions.
> Ahhh now I understand your idea .... Ok ok.
>
> But so in the index.html is needed a link like "Web Start Demos" on  
> top, Ok ?

Yes, I agree. We will manually remove this link when we publish to the  
site.

> And in jsp page so the links to Applets pages are unnecessary, but I
> think it's safe to could keep them ...

We could, but it would create more maintenance. I think it is better  
to simply keep them separate.

> Tell me if I can help on this, to finish this stuff.

Yes, if you have time, it would be great if you could wrap this up.


Re: svn commit: r827572

Posted by Sandro Martini <sa...@gmail.com>.
> No, we should rename it in SVN.
Ok, do you want to make ?


> The web_start.jsp page only needs links to JNLP files. index.html is used to launch the applet versions.
Ahhh now I understand your idea .... Ok ok.

But so in the index.html is needed a link like "Web Start Demos" on top, Ok ?
And in jsp page so the links to Applets pages are unnecessary, but I
think it's safe to could keep them ...

Tell me if I can help on this, to finish this stuff.

Byeeee

Re: svn commit: r827572

Posted by Greg Brown <gk...@mac.com>.
>> Actually, I would prefer web_start.jsp, because this makes its  
>> purpose much clearer.
> Ok, but the ant task should rename it during copy for war  
> generation, Ok ?

No, we should rename it in SVN.

>> We don't need to exclude anything from the WARs (in fact, if we  
>> exclude
>> index.html from pivot-demos.war, then users wouldn't be able to run  
>> any of
>> the demos as applets). We just need to make sure that the JSP and  
>> JNLP files
>> don't get pushed out to the main site.
> Note that for Applet execution, the jsp page has the same links of the
> html page (it is a copy of it, modified by me), so it is not needed in
> the WAR, otherwise it will hide the jsp page (by default index.html
> has precedence over index.jsp, and is a good default) ... but in this
> case doesn't help us.

The web_start.jsp page only needs links to JNLP files. index.html is  
used to launch the applet versions.

>> Todd or I will do this manually when we release a new version.
> Ok, but also an automatic task could do the stuff, excluding *.jsp and
> *.jnlp ...

Yes, that would probably help. But this would not be an Ant task - it  
would probably be done by a shell script.





Re: svn commit: r827572

Posted by Sandro Martini <sa...@gmail.com>.
> Actually, I would prefer web_start.jsp, because this makes its purpose much clearer.
Ok, but the ant task should rename it during copy for war generation, Ok ?

> We don't need to exclude anything from the WARs (in fact, if we exclude
> index.html from pivot-demos.war, then users wouldn't be able to run any of
> the demos as applets). We just need to make sure that the JSP and JNLP files
> don't get pushed out to the main site.
Note that for Applet execution, the jsp page has the same links of the
html page (it is a copy of it, modified by me), so it is not needed in
the WAR, otherwise it will hide the jsp page (by default index.html
has precedence over index.jsp, and is a good default) ... but in this
case doesn't help us.


> Todd or I will do this manually when we release a new version.
Ok, but also an automatic task could do the stuff, excluding *.jsp and
*.jnlp ...


And a last thing:
what do you think on adding some HR tags also in index.html
(backporting them from index.jsp) ?
And for index.html I've got an idea ... in next days I'll try a mock
and send a sample screenshot to see what you think.


Bye

Re: svn commit: r827572

Posted by Greg Brown <gk...@mac.com>.
> Ah, a last thing: instead of renaming the index.jsp to web_start.jsp
> or other, if all jsp (and jnlp) will be filtered out when copied to
> the site, I think it's more simpler to keep the name as is, ok ?

Actually, I would prefer web_start.jsp, because this makes its purpose  
much clearer.

> And then in the ant task to generate the pivot-demos.war we have to
> exclude index.html (otherwise this will take precedence over the jsp
> page). Do you want to make this, or Todd ?

We don't need to exclude anything from the WARs (in fact, if we  
exclude index.html from pivot-demos.war, then users wouldn't be able  
to run any of the demos as applets). We just need to make sure that  
the JSP and JNLP files don't get pushed out to the main site. Todd or  
I will do this manually when we release a new version.





Re: svn commit: r827572

Posted by Sandro Martini <sa...@gmail.com>.
> In that case, I think you are done, because the DOM Interaction demo must be
> run in a browser (it won't work in DesktopApplicationContext).
Yes, I'm only looking if it makes sense to try to launch it as an
Applet but Web Start ... what do you think ?
And in an y case I've just removed the TODO in the index.jsp .

So I'll close the jira ticket.


Ah, a last thing: instead of renaming the index.jsp to web_start.jsp
or other, if all jsp (and jnlp) will be filtered out when copied to
the site, I think it's more simpler to keep the name as is, ok ?
And then in the ant task to generate the pivot-demos.war we have to
exclude index.html (otherwise this will take precedence over the jsp
page). Do you want to make this, or Todd ?


> Nice work.
Hi, thanks :-) .
Now the hard part is missing: the debug to understand why the language
is not used in the Stock tracker French version ...


Thanks for your help and support on this work,
Sandro

Re: svn commit: r827572

Posted by Greg Brown <gk...@mac.com>.
> add other jnlp files.
> Now is missing only the DOM Interaction Demo.

In that case, I think you are done, because the DOM Interaction demo  
must be run in a browser (it won't work in DesktopApplicationContext).

Nice work.

G