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 2009/08/06 18:45:59 UTC

svn commit: r801711 - in /incubator/pivot/trunk: demos/www/ tutorials/src/org/apache/pivot/tutorials/boundedrange/ tutorials/src/org/apache/pivot/tutorials/filebrowser/ tutorials/www/

Author: gbrown
Date: Thu Aug  6 16:45:58 2009
New Revision: 801711

URL: http://svn.apache.org/viewvc?rev=801711&view=rev
Log:
Minor demo and tutorial fixes and updates.

Modified:
    incubator/pivot/trunk/demos/www/multiselect.template.html
    incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx
    incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx
    incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowser/FileBrowser.java
    incubator/pivot/trunk/tutorials/www/flow_panes.template.html
    incubator/pivot/trunk/tutorials/www/hello_world.template.html
    incubator/pivot/trunk/tutorials/www/navigation_containers.template.html
    incubator/pivot/trunk/tutorials/www/sliders.template.html
    incubator/pivot/trunk/tutorials/www/spinners.template.html
    incubator/pivot/trunk/tutorials/www/toggle_buttons.template.html
    incubator/pivot/trunk/tutorials/www/viewports.template.html

Modified: incubator/pivot/trunk/demos/www/multiselect.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/multiselect.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/multiselect.template.html (original)
+++ incubator/pivot/trunk/demos/www/multiselect.template.html Thu Aug  6 16:45:58 2009
@@ -29,7 +29,7 @@
     width:480,
     height:360
 };
-var parameters = {application_class_name:"org.apache.pivot.tutorials.lists.MultiSelect",
+var parameters = {application_class_name:"org.apache.pivot.demos.lists.MultiSelect",
     codebase_lookup:false
 };
 var version = "1.6";

Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx (original)
+++ incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/sliders.wtkx Thu Aug  6 16:45:58 2009
@@ -20,13 +20,9 @@
     xmlns:wtkx="http://pivot.apache.org/wtkx"
     xmlns="org.apache.pivot.wtk">
     <content>
-        <Border>
-            <content>
-                <BoxPane styles="{verticalAlignment:'center'}">
-                    <Slider wtkx:id="slider" range="{start:0, end:255}" value="0"/>
-                    <Label wtkx:id="label"/>
-                </BoxPane>
-            </content>
-        </Border>
+        <BoxPane styles="{verticalAlignment:'center'}">
+            <Slider wtkx:id="slider" range="{start:0, end:255}" value="0"/>
+            <Label wtkx:id="label"/>
+        </BoxPane>
     </content>
 </Window>

Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx (original)
+++ incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/boundedrange/spinners.wtkx Thu Aug  6 16:45:58 2009
@@ -21,18 +21,14 @@
     xmlns:content="org.apache.pivot.wtk.content"
     xmlns="org.apache.pivot.wtk">
     <content>
-        <Border>
-            <content>
-                <BoxPane styles="{verticalAlignment:'center'}">
-                    <Spinner spinnerData="['One', 'Two', 'Three', 'Four', 'Five']"
-                        circular="true" preferredWidth="80" selectedIndex="0"/>
-                    <Spinner preferredWidth="40" selectedIndex="0">
-                        <spinnerData>
-                            <content:NumericSpinnerData lowerBound="0" upperBound="9" increment="1"/>
-                        </spinnerData>
-                    </Spinner>
-                </BoxPane>
-            </content>
-        </Border>
+        <BoxPane styles="{verticalAlignment:'center'}">
+            <Spinner spinnerData="['One', 'Two', 'Three', 'Four', 'Five']"
+                circular="true" preferredWidth="80" selectedIndex="0"/>
+            <Spinner preferredWidth="40" selectedIndex="0">
+                <spinnerData>
+                    <content:NumericSpinnerData lowerBound="0" upperBound="9" increment="1"/>
+                </spinnerData>
+            </Spinner>
+        </BoxPane>
     </content>
 </Window>

Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowser/FileBrowser.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowser/FileBrowser.java?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowser/FileBrowser.java (original)
+++ incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/filebrowser/FileBrowser.java Thu Aug  6 16:45:58 2009
@@ -53,7 +53,8 @@
         String pathname = System.getProperty("user.home");
         Filter<File> fileFilter = new Filter<File>() {
             public boolean include(File file) {
-                return file.isDirectory();
+                // return file.isDirectory();
+                return true;
             }
         };
 

Modified: incubator/pivot/trunk/tutorials/www/flow_panes.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/flow_panes.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/flow_panes.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/flow_panes.template.html Thu Aug  6 16:45:58 2009
@@ -41,7 +41,7 @@
     width:360,
     height:240
 };
-var parameters = {application_class_name:"org.apache.pivot.tutorials.layout.BoxPanes",
+var parameters = {application_class_name:"org.apache.pivot.tutorials.layout.FlowPanes",
     codebase_lookup:false
 };
 deployJava.writeAppletTag(attributes, parameters);

Modified: incubator/pivot/trunk/tutorials/www/hello_world.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/hello_world.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/hello_world.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/hello_world.template.html Thu Aug  6 16:45:58 2009
@@ -42,7 +42,7 @@
     width:240,
     height:80
 };
-var parameters = {application_class_name:"org.apache.pivot.tutorials.HelloWorld",
+var parameters = {application_class_name:"org.apache.pivot.tutorials.HelloJava",
     codebase_lookup:false
 };
 deployJava.writeAppletTag(attributes, parameters);

Modified: incubator/pivot/trunk/tutorials/www/navigation_containers.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/navigation_containers.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/navigation_containers.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/navigation_containers.template.html Thu Aug  6 16:45:58 2009
@@ -25,6 +25,7 @@
 
 <p>Navigation containers are used to maximize screen real estate, showing or hiding their children as needed. Navigation containers include:</p>
 
+<ul>
 <li><p><a href="card_panes.html"><b>CardPane</b></a> - A simple "card stack" of components, only one of which is visible at a time.</p></li>
 <li><p><a href="tab_panes.html"><b>TabPane</b></a> - Similar to <tt>CardPane</tt> but with built-in "tabs" for navigation; may optionally be "collapsed" such that only the tab buttons show.</p></li>
 <li><p><a href="accordions.html"><b>Accordion</b></a> - Similar to <tt>TabPane</tt>, but subcomponents are presented like the folds of an accordion, with headers for navigating between panels.</p></li>

Modified: incubator/pivot/trunk/tutorials/www/sliders.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/sliders.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/sliders.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/sliders.template.html Thu Aug  6 16:45:58 2009
@@ -55,14 +55,10 @@
     xmlns:wtkx="http://pivot.apache.org/wtkx"
     xmlns="org.apache.pivot.wtk"&gt;
     &lt;content&gt;
-        &lt;Border&gt;
-            &lt;content&gt;
-                &lt;BoxPane styles="{verticalAlignment:'center'}"&gt;
-                    &lt;Slider wtkx:id="slider" bounds="{minimum:0, maximum:255}" value="0"/&gt;
-                    &lt;Label wtkx:id="label"/&gt;
-                &lt;/BoxPane&gt;
-            &lt;/content&gt;
-        &lt;/Border&gt;
+        &lt;BoxPane styles="{verticalAlignment:'center'}"&gt;
+            &lt;Slider wtkx:id="slider" bounds="{minimum:0, maximum:255}" value="0"/&gt;
+            &lt;Label wtkx:id="label"/&gt;
+        &lt;/BoxPane&gt;
     &lt;/content&gt;
 &lt;/Window&gt;
 </pre>

Modified: incubator/pivot/trunk/tutorials/www/spinners.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/spinners.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/spinners.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/spinners.template.html Thu Aug  6 16:45:58 2009
@@ -60,19 +60,15 @@
     xmlns:content="org.apache.pivot.wtk.content"
     xmlns="org.apache.pivot.wtk"&gt;
     &lt;content&gt;
-        &lt;Border&gt;
-            &lt;content&gt;
-                &lt;BoxPane styles="{verticalAlignment:'center'}"&gt;
-                    &lt;Spinner spinnerData="['One', 'Two', 'Three', 'Four', 'Five']"
-                        circular="true" preferredWidth="80" selectedIndex="0"/&gt;
-                    &lt;Spinner preferredWidth="40" selectedIndex="0"&gt;
-                        &lt;spinnerData&gt;
-                            &lt;content:NumericSpinnerData lowerBound="0" upperBound="9" increment="1"/&gt;
-                        &lt;/spinnerData&gt;
-                    &lt;/Spinner&gt;
-                &lt;/BoxPane&gt;
-            &lt;/content&gt;
-        &lt;/Border&gt;
+        &lt;BoxPane styles="{verticalAlignment:'center'}"&gt;
+            &lt;Spinner spinnerData="['One', 'Two', 'Three', 'Four', 'Five']"
+                circular="true" preferredWidth="80" selectedIndex="0"/&gt;
+            &lt;Spinner preferredWidth="40" selectedIndex="0"&gt;
+                &lt;spinnerData&gt;
+                    &lt;content:NumericSpinnerData lowerBound="0" upperBound="9" increment="1"/&gt;
+                &lt;/spinnerData&gt;
+            &lt;/Spinner&gt;
+        &lt;/BoxPane&gt;
     &lt;/content&gt;
 &lt;/Window&gt;
 </pre>

Modified: incubator/pivot/trunk/tutorials/www/toggle_buttons.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/toggle_buttons.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/toggle_buttons.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/toggle_buttons.template.html Thu Aug  6 16:45:58 2009
@@ -42,7 +42,7 @@
     height:80,
     style:"border:solid 1px #999999"
 };
-var parameters = {application_class_name:"org.apache.pivot.tutorials.buttons.PushButtons",
+var parameters = {application_class_name:"org.apache.pivot.tutorials.buttons.ToggleButtons",
     codebase_lookup:false
 };
 deployJava.writeAppletTag(attributes, parameters);

Modified: incubator/pivot/trunk/tutorials/www/viewports.template.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/www/viewports.template.html?rev=801711&r1=801710&r2=801711&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/www/viewports.template.html (original)
+++ incubator/pivot/trunk/tutorials/www/viewports.template.html Thu Aug  6 16:45:58 2009
@@ -23,7 +23,7 @@
 <body>
 <h1>Viewports</h1>
 
-<p><tt>Viewport<tt> is abstract base class for "viewport" components. Viewports provide a windowed view on a component (called the "view") that is too large to fit within a given area. They are generally scrollable, though their means for scrolling the view may differ. Pivot includes two viewport components: <a href="scroll_panes.html">ScrollPane</a> and <a href="panoramas.html">Panorama</a>. Scroll panes facilitate scrolling by presenting a vertical or horizontal scroll bar that the user can drag to access the obscured parts of the view. Panoramas scroll via four directional scroll arrows shown at the top, left, bottom, or right as needed.</p>
+<p><tt>Viewport</tt> is abstract base class for "viewport" components. Viewports provide a windowed view on a component (called the "view") that is too large to fit within a given area. They are generally scrollable, though their means for scrolling the view may differ. Pivot includes two viewport components: <a href="scroll_panes.html">ScrollPane</a> and <a href="panoramas.html">Panorama</a>. Scroll panes facilitate scrolling by presenting a vertical or horizontal scroll bar that the user can drag to access the obscured parts of the view. Panoramas scroll via four directional scroll arrows shown at the top, left, bottom, or right as needed.</p>
 
 <p>Next: <a href="scroll_panes.html">Scroll Panes</a></p>
 </body>