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/05/14 15:12:52 UTC

svn commit: r1338188 - in /pivot/site/trunk/deploy/tutorials: hello-bxml.html hello-world.html

Author: smartini
Date: Mon May 14 13:12:52 2012
New Revision: 1338188

URL: http://svn.apache.org/viewvc?rev=1338188&view=rev
Log:
small updates to some tutorials

Modified:
    pivot/site/trunk/deploy/tutorials/hello-bxml.html
    pivot/site/trunk/deploy/tutorials/hello-world.html

Modified: pivot/site/trunk/deploy/tutorials/hello-bxml.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/hello-bxml.html?rev=1338188&r1=1338187&r2=1338188&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/hello-bxml.html (original)
+++ pivot/site/trunk/deploy/tutorials/hello-bxml.html Mon May 14 13:12:52 2012
@@ -142,6 +142,22 @@ limitations under the License.
         </pre>
 
         <p>
+		    You can run this example as a Standard Java Application executing ScriptApplication in the following way:<br/>
+			org.apache.pivot.wtk.ScriptApplication --src=/org/apache/pivot/tutorials/hello.bxml
+        </p>
+
+        <p>
+            Note that you can even add the main() method to be able to run the class as 
+            Standard Java Application in the usual way.
+        </p>
+        <pre class="brush:java">
+                public static void main(String[] args) {
+                    DesktopApplicationContext.main(HelloBXML.class, args);
+                }
+            
+        </pre>
+
+        <p>
             Most Pivot applications will be constructed this way, declaring the structure of the
             UI in BXML rather than creating it programmatically in code. However, event handlers,
             which allow an application to respond to user input, are always defined in code (either
@@ -236,23 +252,19 @@ limitations under the License.
         </p>
 
         <p>
+		    You can run this example as a Standard Java Application executing ScriptApplication in the following way:<br/>
+			org.apache.pivot.wtk.ScriptApplication --src=/org/apache/pivot/tutorials/hello_javascript.bxml
+        </p>
+
+        <p>
             The class is named <tt>ScriptApplication</tt> because it is often used to launch
             applications whose logic is defined entirely in script; however, it can actually be
             used to launch any application whose main window is defined in a single BXML file. Many
             of the examples in the following sections are executed using this class.
             Scripting is discussed in more detail in the <a href="scripting.html">Scripting</a> section.
         </p>
-
-        <p>
-            Note that you can even add the main() method to be able to run the class as 
-            Standard Java Application in the usual way.
-        </p>
-        <pre class="brush:java">
-                public static void main(String[] args) {
-                    DesktopApplicationContext.main(HelloBXML.class, args);
-                }
-            
-        </pre>
+        
+        <br/>
 
     </div><p>Next: <a href="component-and-container.html">Component &amp; Container</a></p></div></div></div><div id="footer" class="group"><div class="footerLogo">Copyright (c) 1999-2012<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/Other+Demos" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0.1/docs/api/">Javadoc (2.0.1)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing 
 Lists</a></li><li><a href="http://issues.apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-jfree/">JFreeChart Provider</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-common/">Pivot-Common</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-contrib/">Pivot-Contrib</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-multilang/">Pivot-Multilang</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/News">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div><div class="footerLinks">
                 	Apache Pivot, Pivot, Apache, and the Apache Pivot project logo are trademarks of The Apache Software Foundation.

Modified: pivot/site/trunk/deploy/tutorials/hello-world.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/hello-world.html?rev=1338188&r1=1338187&r2=1338188&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/hello-world.html (original)
+++ pivot/site/trunk/deploy/tutorials/hello-world.html Mon May 14 13:12:52 2012
@@ -257,6 +257,9 @@ limitations under the License.
             "Hello World" label. Though skins are not required to provide styling support, most
             will provide similar capabilities.
         </p>
+        
+        <br/>
+
     </div><p>Next: <a href="hello-bxml.html">Hello, BXML!</a></p></div></div></div><div id="footer" class="group"><div class="footerLogo">Copyright (c) 1999-2012<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/Other+Demos" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0.1/docs/api/">Javadoc (2.0.1)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing Lists</a></li><li><a href=
 "http://issues.apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-jfree/">JFreeChart Provider</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-common/">Pivot-Common</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-contrib/">Pivot-Contrib</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-multilang/">Pivot-Multilang</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/News">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div><div class="footerLinks">
                 	Apache Pivot, Pivot, Apache, and the Apache Pivot project logo are trademarks of The Apache Software Foundation.
                 </div></div></div></body></html>
\ No newline at end of file