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 2010/11/24 20:29:56 UTC

svn commit: r1038775 - in /pivot/trunk/tutorials/www: bxml-primer.xml hello-world.xml stock-tracker.ui.xml

Author: gbrown
Date: Wed Nov 24 19:29:55 2010
New Revision: 1038775

URL: http://svn.apache.org/viewvc?rev=1038775&view=rev
Log:
Tutorial doc updates.

Modified:
    pivot/trunk/tutorials/www/bxml-primer.xml
    pivot/trunk/tutorials/www/hello-world.xml
    pivot/trunk/tutorials/www/stock-tracker.ui.xml

Modified: pivot/trunk/tutorials/www/bxml-primer.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/bxml-primer.xml?rev=1038775&r1=1038774&r2=1038775&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/bxml-primer.xml (original)
+++ pivot/trunk/tutorials/www/bxml-primer.xml Wed Nov 24 19:29:55 2010
@@ -163,8 +163,10 @@ limitations under the License.
         <p>
         BXML includes are often used for partitioning content into manageable pieces (for example,
         when working on large applications or with multiple developers, or when defining reusable
-        content templates). Each include is assigned its own variable namespace to avoid naming
-        collisions with ancestor documents.
+        content templates). By default, each include is assigned its own variable namespace to
+        avoid naming collisions with ancestor documents; however, this behavior can be overridden
+        by adding an "inline" attribute with a value of "true" to the <tt>&lt;bxml:include&gt;</tt>
+        tag.
         </p>
         </li>
 

Modified: pivot/trunk/tutorials/www/hello-world.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/hello-world.xml?rev=1038775&r1=1038774&r2=1038775&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/hello-world.xml (original)
+++ pivot/trunk/tutorials/www/hello-world.xml Wed Nov 24 19:29:55 2010
@@ -174,11 +174,7 @@ limitations under the License.
 
         <p>
             The application class name is specified as the first argument to the
-            <tt>DesktopApplicationContext</tt> loader application. The sample <tt>HelloJava</tt>
-            application also defines a convenience <tt>main()</tt> method that delegates to
-            <tt>DesktopApplicationContext.main()</tt>, allowing it to be bundled in an executable
-            JARs and more easily launched from within an IDE. Defining such a convenience method
-            is common practice in Pivot development.
+            <tt>DesktopApplicationContext</tt> loader application.
         </p>
 
         <h3>The Window Class</h3>

Modified: pivot/trunk/tutorials/www/stock-tracker.ui.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/stock-tracker.ui.xml?rev=1038775&r1=1038774&r2=1038775&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.ui.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.ui.xml Wed Nov 24 19:29:55 2010
@@ -136,6 +136,11 @@ limitations under the License.
         <p>
             Because <tt>StockTrackerWindow</tt> implements <tt>Bindable</tt>, these member variables
             are automatically populated with the corresponding values declared in the BXML file.
+            For example, the object with ID "stocksTableView" in the BXML file will be assigned to
+            the <tt>stocksTableView</tt> member variable, and so on.
+        </p>
+
+        <p>
             <tt>Bindable</tt> defines a single method, <tt>initialize()</tt>, that is called when
             the root element has been fully loaded and the bound values have been processed. This
             allows the bound class to perform any required initialization (generally event
@@ -167,10 +172,10 @@ limitations under the License.
             The dollar sign is a "variable dereference" operator. Though it isn't shown in this
             example, it is possible to embed script code in a BXML file using the
             <tt>&lt;bxml:script&gt;</tt> tag. Any JVM-capable scripting language is supported,
-            including JavaScript, Groovy, adnd Clojure, among others. Any attribute value preceded by
+            including JavaScript, Groovy, and Clojure, among others. Any attribute value preceded by
             a dollar sign is resolved to an instance of a script variable declared within the page.
             This allows developers to define variables in script and then easily use them as
-            initialization paramters for class instances declared as elements. Script code can
+            initialization parameters for class instances declared as elements. Script code can
             also refer to any page elements identified via a <tt>bxml:id</tt> attribute as globally
             scoped page level variables.
         </p>