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 2011/11/24 12:09:51 UTC
svn commit: r1205790 - in /pivot/trunk: demos/www/ demos/xsl/ tutorials/www/
tutorials/xsl/
Author: smartini
Date: Thu Nov 24 11:09:48 2011
New Revision: 1205790
URL: http://svn.apache.org/viewvc?rev=1205790&view=rev
Log:
small usability improvement on demos and tutorials pages:
set font relative (default small as before, but now users can scale text inside browser),
and use h2 and h3 in a consistent way in all pages
Modified:
pivot/trunk/demos/www/demo.css
pivot/trunk/demos/www/index.xml
pivot/trunk/demos/xsl/index.xsl
pivot/trunk/demos/xsl/project.xml
pivot/trunk/tutorials/www/bxml-primer.xml
pivot/trunk/tutorials/www/component-and-container.xml
pivot/trunk/tutorials/www/forms.xml
pivot/trunk/tutorials/www/platform-overview.xml
pivot/trunk/tutorials/www/query-servlet.xml
pivot/trunk/tutorials/www/stock-tracker.data-binding.xml
pivot/trunk/tutorials/www/stock-tracker.events.xml
pivot/trunk/tutorials/www/stock-tracker.localization.xml
pivot/trunk/tutorials/www/stock-tracker.ui.xml
pivot/trunk/tutorials/www/stock-tracker.web-queries.xml
pivot/trunk/tutorials/www/tutorial.css
pivot/trunk/tutorials/xsl/index.xsl
pivot/trunk/tutorials/xsl/project.xml
Modified: pivot/trunk/demos/www/demo.css
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/www/demo.css?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/demos/www/demo.css (original)
+++ pivot/trunk/demos/www/demo.css Thu Nov 24 11:09:48 2011
@@ -17,7 +17,7 @@ limitations under the License.
body {
font-family:Verdana;
- font-size:11px;
+ font-size:small;
}
p.caption {
@@ -46,9 +46,18 @@ tt {
}
table {
- font-size:11px;
}
img {
- vertical-align: middle;
+ vertical-align:middle;
+}
+
+h2 {
+ font-size:200%;
+ font-weight:bold;
+ text-align:center;
+}
+
+hr {
+ width:80%;
}
Modified: pivot/trunk/demos/www/index.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/www/index.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/demos/www/index.xml (original)
+++ pivot/trunk/demos/www/index.xml Thu Nov 24 11:09:48 2011
@@ -23,10 +23,10 @@ limitations under the License.
<body>
<p>
- A collection of Pivot demos. <br/>
+ A collection of Pivot demos.
All demos require <a href="http://www.java.com/">Java 6</a> or greater. <br/>
<br/>
- Note that some demos uses signed jars.
+ Note that signed jars are used in some demo.
</p>
<br/>
Modified: pivot/trunk/demos/xsl/index.xsl
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/xsl/index.xsl?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/demos/xsl/index.xsl (original)
+++ pivot/trunk/demos/xsl/index.xsl Thu Nov 24 11:09:48 2011
@@ -30,7 +30,9 @@ limitations under the License.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title><xsl:value-of select="$project/vendor"/> Demos</title>
+ <title>
+ <xsl:value-of select="$project/title"/>
+ </title>
<link rel="stylesheet" href="demo.css" type="text/css"/>
<link rel="icon" href="favicon.png" type="image/png" />
<link rel="shortcut icon" href="favicon.png" type="image/png" />
@@ -38,6 +40,9 @@ limitations under the License.
</head>
<body>
+ <h2>
+ <xsl:value-of select="$project/title"/>
+ </h2>
<xsl:apply-templates select="body"/>
</body>
</html>
@@ -54,6 +59,10 @@ limitations under the License.
<h3><xsl:value-of select="normalize-space($document/properties/title)"/></h3>
<p>
+ <xsl:value-of select="normalize-space($document/properties/description)"/>
+ </p>
+
+ <p>
<a href="{$id}.html">Applet</a>
<!-- JNLP translation must ignore the head, so if one exists, we skip JNLP link -->
@@ -62,9 +71,6 @@ limitations under the License.
<a href="{$id}.jnlp">Web Start</a>
</xsl:if>
</p>
- <p>
- <xsl:value-of select="normalize-space($document/properties/description)"/>
- </p>
<!-- Include a screenshot if one exists -->
<xsl:if test="$project/demo-screenshots/screenshot[@id=$id]">
Modified: pivot/trunk/demos/xsl/project.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/xsl/project.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/demos/xsl/project.xml (original)
+++ pivot/trunk/demos/xsl/project.xml Thu Nov 24 11:09:48 2011
@@ -18,6 +18,7 @@ limitations under the License.
<project href="http://pivot.apache.org/">
<vendor>Apache Pivot</vendor>
+ <title>Apache Pivot Demos</title>
<demo-screenshots>
<screenshot id="kitchen-sink" src="kitchen_sink.png"/>
Modified: pivot/trunk/tutorials/www/bxml-primer.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/bxml-primer.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/bxml-primer.xml (original)
+++ pivot/trunk/tutorials/www/bxml-primer.xml Thu Nov 24 11:09:48 2011
@@ -34,7 +34,7 @@ limitations under the License.
configure a collection of Java objects.
</p>
- <h2>BXMLSerializer</h2>
+ <h3>BXMLSerializer</h3>
<p>
The <tt>org.apache.pivot.beans.BXMLSerializer</tt> class is used to load a structure
@@ -73,7 +73,7 @@ limitations under the License.
structure using resource bundles.
</p>
- <h2>Namespaces</h2>
+ <h3>Namespaces</h3>
<p>
In BXML, an XML namespace represents a Java package. Declaring a namespace associates the
@@ -252,7 +252,7 @@ limitations under the License.
</li>
</ul>
- <h2>Elements</h2>
+ <h3>Elements</h3>
<p>
In BXML, an XML element that does not begin with the reserved "bxml" namespace prefix
represents one of the following:
@@ -502,7 +502,7 @@ limitations under the License.
<tt>Accordion</tt> and <tt>TablePane</tt>, define similar properties.
</p>
- <h2>Attributes</h2>
+ <h3>Attributes</h3>
<p>
An attribute in BXML may represent one of the following:
</p>
@@ -688,7 +688,7 @@ limitations under the License.
path to such a resource.
</p>
- <h2><a name="scripting">Scripting</a></h2>
+ <h3><a name="scripting">Scripting</a></h3>
<p>
The <tt><bxml:script></tt> tag allows a caller to import scripting code into or
embed script within a BXML file. Any JVM scripting language can be used, including
@@ -933,7 +933,7 @@ limitations under the License.
defined in a BXML file.
</p>
- <h2>Summary</h2>
+ <h3>Summary</h3>
<p>
BXML provides a number of features that help simplify the process of building a user
interface. It can be used to instantiate objects and set member variables as well as
Modified: pivot/trunk/tutorials/www/component-and-container.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/component-and-container.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/component-and-container.xml (original)
+++ pivot/trunk/tutorials/www/component-and-container.xml Thu Nov 24 11:09:48 2011
@@ -29,7 +29,7 @@ limitations under the License.
user will interact with it.
</p>
- <h2>Visual and ConstrainedVisual</h2>
+ <h3>Visual and ConstrainedVisual</h3>
<p><img src="component_and_container/visuals.png"/></p>
@@ -101,7 +101,7 @@ limitations under the License.
handled automatically in a Pivot application, and is discussed next.
</p>
- <h2>Layout</h2>
+ <h3>Layout</h3>
<p>
"Layout management" is the process of automatically determining how components should
@@ -185,7 +185,7 @@ limitations under the License.
columns. However, most respect at least one, and many respect both.
</p>
- <h2>Disabled Components</h2>
+ <h3>Disabled Components</h3>
<p>
A component that is "enabled" is currently capable of receiving user input. A component
@@ -209,7 +209,7 @@ limitations under the License.
ancestors is disabled, it is said to be "blocked".
</p>
- <h2>Focus Management</h2>
+ <h3>Focus Management</h3>
<p>
A component that is eligible to receive keyboard input is said to have the "input
@@ -239,7 +239,7 @@ limitations under the License.
container.
</p>
- <h2>Cursors</h2>
+ <h3>Cursors</h3>
<p>
A component's skin will generally ensure that an appropriate cursor is displayed when
@@ -248,7 +248,7 @@ limitations under the License.
defined by the <tt>Cursor</tt> enum.
</p>
- <h2>Styles</h2>
+ <h3>Styles</h3>
<p>
Styles are a means of customizing a component's appearance. They are implemented as
@@ -338,7 +338,7 @@ limitations under the License.
}
</source>
- <h2>Attributes</h2>
+ <h3>Attributes</h3>
<p>
Attributes are a means of attaching container-specific properties to a component.
@@ -358,7 +358,7 @@ limitations under the License.
that should be used as the text label for that component.
</p>
- <h2>Events</h2>
+ <h3>Events</h3>
<p>
In GUI programming, the term "event" generally refers to a notification sent by a
Modified: pivot/trunk/tutorials/www/forms.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/forms.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/forms.xml (original)
+++ pivot/trunk/tutorials/www/forms.xml Thu Nov 24 11:09:48 2011
@@ -155,7 +155,7 @@ limitations under the License.
arrangement of components within a section to be customized.
</p>
- <h2>Form Validation</h2>
+ <h3>Form Validation</h3>
<p>
Pressing the "Submit" button performs some simple validation on the name fields,
ensuring that the user has provided some text in each field. If either field is empty,
Modified: pivot/trunk/tutorials/www/platform-overview.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/platform-overview.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/platform-overview.xml (original)
+++ pivot/trunk/tutorials/www/platform-overview.xml Thu Nov 24 11:09:48 2011
@@ -188,7 +188,7 @@ limitations under the License.
Most of Pivot's classes live in the WTK libraries.
</p>
- <h2>Architecture</h2>
+ <h3>Architecture</h3>
<p>
The design of WTK is based on the
@@ -666,7 +666,7 @@ limitations under the License.
<p><img src="platform_overview/buttons.png"/></p>
<p class="caption">Some Pivot buttons.</p>
- <h2>Internationalization/Localization</h2>
+ <h3>Internationalization/Localization</h3>
<p>
While Pivot applications can be localized using the standard Java localization APIs,
@@ -677,7 +677,7 @@ limitations under the License.
that are not available in the ISO-8859 character set.
</p>
- <h2>XML Markup</h2>
+ <h3>XML Markup</h3>
<p>
Pivot applications can be constructed entirely in Java code, but it is often more
@@ -702,7 +702,7 @@ limitations under the License.
<a href="bxml-primer.html">BXML primer</a> section.
</p>
- <h2>Effects</h2>
+ <h3>Effects</h3>
<p>
The <tt>org.apache.pivot.wtk.effects</tt> package provides support for adding visual
@@ -716,7 +716,7 @@ limitations under the License.
<p><img src="platform_overview/decorator.png"/></p>
<p class="caption">Decorator example.</p>
- <h2>Web Queries</h2>
+ <h3>Web Queries</h3>
<p>
"Web queries" are Pivot's native means of communicating with remote data services.
Modified: pivot/trunk/tutorials/www/query-servlet.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/query-servlet.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/query-servlet.xml (original)
+++ pivot/trunk/tutorials/www/query-servlet.xml Thu Nov 24 11:09:48 2011
@@ -51,7 +51,7 @@ limitations under the License.
</libraries>
</application>
- <h2>QueryServlet</h2>
+ <h3>QueryServlet</h3>
<p>
The <tt>QueryServlet</tt> class extends <tt>javax.servlet.http.HttpServlet</tt> and
@@ -129,7 +129,7 @@ limitations under the License.
these collections via <tt>get()</tt>, <tt>put()</tt>, and <tt>remove()</tt> methods.
</p>
- <h2>ExpenseServlet</h2>
+ <h3>ExpenseServlet</h3>
<p>
The following listing contains the full source code for <tt>ExpenseServlet</tt>, which
@@ -632,7 +632,7 @@ limitations under the License.
it is deleted. Otherwise, HTTP 404 is returned.
</p>
- <h2>The Expenses Application</h2>
+ <h3>The Expenses Application</h3>
<p>
The Expenses client application allows a user to interact with the web service. It is
Modified: pivot/trunk/tutorials/www/stock-tracker.data-binding.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.data-binding.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.data-binding.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.data-binding.xml Thu Nov 24 11:09:48 2011
@@ -64,7 +64,7 @@ limitations under the License.
selection state of a <tt>ListView</tt> component.
</p>
- <h2>Data Binding in Stock Tracker</h2>
+ <h3>Data Binding in Stock Tracker</h3>
<p>
The Stock Tracker demo uses data binding to populate the fields in the quote detail
@@ -157,7 +157,7 @@ limitations under the License.
]]>
</source>
- <h2>Bind Mappings</h2>
+ <h3>Bind Mappings</h3>
<p>
Also note the use of the "textBindMapping" attributes. Bind mappings allow a caller
Modified: pivot/trunk/tutorials/www/stock-tracker.events.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.events.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.events.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.events.xml Thu Nov 24 11:09:48 2011
@@ -30,7 +30,7 @@ limitations under the License.
operation running in a background thread.
</p>
- <h2>Loading the UI</h2>
+ <h3>Loading the UI</h3>
<p>
In general, a Pivot application will load its user interface in the <tt>startup()</tt>
@@ -67,7 +67,7 @@ limitations under the License.
the screen.
</p>
- <h2>Adding Event Listeners</h2>
+ <h3>Adding Event Listeners</h3>
<p>
At this point, the application is visible and the user can begin interacting with it.
@@ -132,7 +132,7 @@ limitations under the License.
<a href="scripting.html">Scripting</a> section.
</p>
- <h2>Actions</h2>
+ <h3>Actions</h3>
<p>
Though the "add symbol" and "remove symbol" operations could be performed in a button
Modified: pivot/trunk/tutorials/www/stock-tracker.localization.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.localization.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.localization.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.localization.xml Thu Nov 24 11:09:48 2011
@@ -159,7 +159,7 @@ limitations under the License.
very easy to build internationalized applications in Pivot.
</p>
- <h2>Summary</h2>
+ <h3>Summary</h3>
<p>
The examples in this section demonstrate the implementation of a simple but complete
Modified: pivot/trunk/tutorials/www/stock-tracker.ui.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.ui.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.ui.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.ui.xml Thu Nov 24 11:09:48 2011
@@ -42,7 +42,7 @@ limitations under the License.
information used by the serializer.
</p>
- <h2>StockTrackerWindow</h2>
+ <h3>StockTrackerWindow</h3>
<p>
The following is a snippet of code taken from <tt>stock_tracker_window.bxml</tt>,
Modified: pivot/trunk/tutorials/www/stock-tracker.web-queries.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.web-queries.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.web-queries.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.web-queries.xml Thu Nov 24 11:09:48 2011
@@ -75,7 +75,7 @@ limitations under the License.
more detail in the <a href="stock-tracker.data-binding.html">data binding</a> section.
</p>
- <h2>Constructing the Web Query</h2>
+ <h3>Constructing the Web Query</h3>
<p>
In order to display the stock quotes to the user, Stock Tracker must execute a web
Modified: pivot/trunk/tutorials/www/tutorial.css
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/tutorial.css?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/tutorial.css (original)
+++ pivot/trunk/tutorials/www/tutorial.css Thu Nov 24 11:09:48 2011
@@ -17,7 +17,7 @@ limitations under the License.
body {
font-family:Verdana;
- font-size:11px;
+ font-size:small;
}
p.caption {
@@ -46,5 +46,14 @@ tt {
}
table {
- font-size:11px;
+}
+
+h2 {
+ font-size:200%;
+ font-weight:bold;
+ text-align:center;
+}
+
+hr {
+ width:80%;
}
Modified: pivot/trunk/tutorials/xsl/index.xsl
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/xsl/index.xsl?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/xsl/index.xsl (original)
+++ pivot/trunk/tutorials/xsl/index.xsl Thu Nov 24 11:09:48 2011
@@ -39,6 +39,9 @@ limitations under the License.
</head>
<body>
+ <h2>
+ <xsl:value-of select="$project/title"/>
+ </h2>
<xsl:apply-templates select="body"/>
</body>
</html>
Modified: pivot/trunk/tutorials/xsl/project.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/xsl/project.xml?rev=1205790&r1=1205789&r2=1205790&view=diff
==============================================================================
--- pivot/trunk/tutorials/xsl/project.xml (original)
+++ pivot/trunk/tutorials/xsl/project.xml Thu Nov 24 11:09:48 2011
@@ -17,5 +17,6 @@ limitations under the License.
-->
<project href="http://pivot.apache.org/">
+ <vendor>Apache Pivot</vendor>
<title>Apache Pivot Tutorials</title>
</project>