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 2012/01/19 16:05:32 UTC
svn commit: r1233418 - in /pivot/site/trunk: deploy/demos/itunes-search.jnlp
deploy/demos/kitchen-sink.jnlp deploy/demos/stock-tracker.jnlp
deploy/styles/pivot.css www/styles/pivot.css xsl/demos/index.xsl
Author: smartini
Date: Thu Jan 19 15:05:32 2012
New Revision: 1233418
URL: http://svn.apache.org/viewvc?rev=1233418&view=rev
Log:
jnlp files for featured demos, but hidden at the moment, to be able to try them online.
Note that the main change to enable this is inside xsl/demos/index.xsl that is committed here.
If/when all is good, regenerate the deploy and commit the deploy/demos/index.html with Web Start links.
Note that to simplify things, jnlp files here have been taken from pivot-demos, then fixed by hand, and copied directly under deploy/demos by hand. Maybe later implement a better flow, via the Site ant build (if possible).
Added:
pivot/site/trunk/deploy/demos/itunes-search.jnlp
pivot/site/trunk/deploy/demos/kitchen-sink.jnlp
pivot/site/trunk/deploy/demos/stock-tracker.jnlp
Modified:
pivot/site/trunk/deploy/styles/pivot.css
pivot/site/trunk/www/styles/pivot.css
pivot/site/trunk/xsl/demos/index.xsl
Added: pivot/site/trunk/deploy/demos/itunes-search.jnlp
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/demos/itunes-search.jnlp?rev=1233418&view=auto
==============================================================================
--- pivot/site/trunk/deploy/demos/itunes-search.jnlp (added)
+++ pivot/site/trunk/deploy/demos/itunes-search.jnlp Thu Jan 19 15:05:32 2012
@@ -0,0 +1,51 @@
+<?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.
+-->
+
+<jnlp spec="1.6+" codebase="http://pivot.apache.org/demos/" href="itunes-search.jnlp">
+ <information>
+ <title>Pivot iTunes Search Demo</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>
+ <vendor>Apache Pivot</vendor>
+ <homepage href="http://pivot.apache.org/"/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+
+ <resources>
+ <property name="jnlp.packEnabled" value="true"/>
+ <property name="sun.awt.noerasebackground" value="true"/>
+ <property name="sun.awt.erasebackgroundonresize=true" value="true"/>
+ <java version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
+ <jar href="lib/pivot-core-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-wtk-2.0.1.signed.jar" main="true"/>
+ <jar href="lib/pivot-wtk-terra-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-web-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-demos-2.0.1.signed.jar"/>
+ <jar href="lib/svgSalamander-tiny.signed.jar"/>
+ </resources>
+
+ <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+ <argument>org.apache.pivot.demos.itunes.SearchDemo</argument>
+ <argument>--center=true</argument>
+ </application-desc>
+
+ <update check="background"/>
+
+</jnlp>
Added: pivot/site/trunk/deploy/demos/kitchen-sink.jnlp
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/demos/kitchen-sink.jnlp?rev=1233418&view=auto
==============================================================================
--- pivot/site/trunk/deploy/demos/kitchen-sink.jnlp (added)
+++ pivot/site/trunk/deploy/demos/kitchen-sink.jnlp Thu Jan 19 15:05:32 2012
@@ -0,0 +1,44 @@
+<?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.
+-->
+
+<jnlp spec="1.6+" codebase="http://pivot.apache.org/demos/" href="kitchen-sink.jnlp">
+ <information>
+ <title>Pivot "Kitchen Sink" Demo</title>
+ <description>Demonstrates a number of commonly used Pivot components.</description>
+ <vendor>Apache Pivot</vendor>
+ <homepage href="http://pivot.apache.org/"/>
+ </information>
+
+ <resources>
+ <property name="jnlp.packEnabled" value="true"/>
+ <java version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
+ <jar href="lib/pivot-core-2.0.1.jar"/>
+ <jar href="lib/pivot-wtk-2.0.1.jar" main="true"/>
+ <jar href="lib/pivot-wtk-terra-2.0.1.jar"/>
+ <jar href="lib/pivot-tutorials-2.0.1.jar"/>
+ <jar href="lib/svgSalamander-tiny.jar"/>
+ </resources>
+
+ <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+ <argument>org.apache.pivot.tutorials.KitchenSink</argument>
+ <argument>--center=true</argument>
+ </application-desc>
+
+ <update check="background"/>
+
+</jnlp>
\ No newline at end of file
Added: pivot/site/trunk/deploy/demos/stock-tracker.jnlp
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/demos/stock-tracker.jnlp?rev=1233418&view=auto
==============================================================================
--- pivot/site/trunk/deploy/demos/stock-tracker.jnlp (added)
+++ pivot/site/trunk/deploy/demos/stock-tracker.jnlp Thu Jan 19 15:05:32 2012
@@ -0,0 +1,52 @@
+<?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.
+-->
+
+<jnlp spec="1.6+" codebase="http://pivot.apache.org/demos/" href="stock-tracker.jnlp">
+ <information>
+ <title>Pivot Stock Tracker Demo</title>
+ <description>An example of a simple but practical "real world" Pivot application. It monitors stock quotes provided by Yahoo! Finance.</description>
+ <vendor>Apache Pivot</vendor>
+ <homepage href="http://pivot.apache.org/"/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+
+ <resources>
+ <property name="jnlp.packEnabled" value="true"/>
+ <property name="sun.awt.noerasebackground" value="true"/>
+ <property name="sun.awt.erasebackgroundonresize=true" value="true"/>
+ <java version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
+ <jar href="lib/pivot-core-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-wtk-2.0.1.signed.jar" main="true"/>
+ <jar href="lib/pivot-wtk-terra-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-web-2.0.1.signed.jar"/>
+ <jar href="lib/pivot-tutorials-2.0.1.signed.jar"/>
+ <jar href="lib/svgSalamander-tiny.signed.jar"/>
+ </resources>
+
+ <application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext">
+ <argument>org.apache.pivot.tutorials.stocktracker.StockTracker</argument>
+ <argument>--center=true</argument>
+ <argument>--language=en</argument>
+ </application-desc>
+
+ <update check="background"/>
+
+</jnlp>
Modified: pivot/site/trunk/deploy/styles/pivot.css
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/styles/pivot.css?rev=1233418&r1=1233417&r2=1233418&view=diff
==============================================================================
--- pivot/site/trunk/deploy/styles/pivot.css (original)
+++ pivot/site/trunk/deploy/styles/pivot.css Thu Jan 19 15:05:32 2012
@@ -397,7 +397,7 @@ cite.homeCol2 {
}
.featuredDemoView {
- padding: 2px 0 2px 15px;
+ padding: 2px 10 2px 10px;
background: #474747 url(pivot_icon_s_light_grey.png) no-repeat 3px 50%;
}
Modified: pivot/site/trunk/www/styles/pivot.css
URL: http://svn.apache.org/viewvc/pivot/site/trunk/www/styles/pivot.css?rev=1233418&r1=1233417&r2=1233418&view=diff
==============================================================================
--- pivot/site/trunk/www/styles/pivot.css (original)
+++ pivot/site/trunk/www/styles/pivot.css Thu Jan 19 15:05:32 2012
@@ -397,7 +397,7 @@ cite.homeCol2 {
}
.featuredDemoView {
- padding: 2px 0 2px 15px;
+ padding: 2px 10 2px 10px;
background: #474747 url(pivot_icon_s_light_grey.png) no-repeat 3px 50%;
}
Modified: pivot/site/trunk/xsl/demos/index.xsl
URL: http://svn.apache.org/viewvc/pivot/site/trunk/xsl/demos/index.xsl?rev=1233418&r1=1233417&r2=1233418&view=diff
==============================================================================
--- pivot/site/trunk/xsl/demos/index.xsl (original)
+++ pivot/site/trunk/xsl/demos/index.xsl Thu Jan 19 15:05:32 2012
@@ -92,10 +92,19 @@ limitations under the License.
<xsl:attribute name="href">
<xsl:value-of select="concat('/demos/', $id, '.html')"/>
</xsl:attribute>
+ <xsl:attribute name="style">text-align:left;</xsl:attribute>
<xsl:if test="boolean($document/properties/full-screen)">
<xsl:attribute name="target">_new</xsl:attribute>
</xsl:if>
- <xsl:text>View</xsl:text>
+ <xsl:text>Applet</xsl:text>
+ </xsl:element>
+ -
+ <xsl:element name="a">
+ <xsl:attribute name="href">
+ <xsl:value-of select="concat('/demos/', $id, '.jnlp')"/>
+ </xsl:attribute>
+ <xsl:attribute name="style">text-align:right;</xsl:attribute>
+ <xsl:text>Web Start</xsl:text>
</xsl:element>
</p>
</div>