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/06/18 15:12:11 UTC

svn commit: r786048 - in /incubator/pivot/trunk: demos/www/index.html tutorials/src/org/apache/pivot/tutorials/KitchenSink.java

Author: gbrown
Date: Thu Jun 18 13:12:10 2009
New Revision: 786048

URL: http://svn.apache.org/viewvc?rev=786048&view=rev
Log:
Add links to demo index; don't remove watermark from TextArea in Kitchen Sink demo when it gains the focus.

Modified:
    incubator/pivot/trunk/demos/www/index.html
    incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java

Modified: incubator/pivot/trunk/demos/www/index.html
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.html?rev=786048&r1=786047&r2=786048&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/index.html (original)
+++ incubator/pivot/trunk/demos/www/index.html Thu Jun 18 13:12:10 2009
@@ -20,6 +20,69 @@
 <title>Index of Pivot Demos</title>
 </head>
 <body>
-<p><a href="kitchen_sink.html">"Kitchen Sink"</a></p>
+<p>
+<a href="kitchen_sink.html">"Kitchen Sink"</a><br>
+Demonstrates a number of commonly used Pivot components.<br>
+</p>
+<p>
+<a href="stock_tracker.html">Stock Tracker</a><br>
+An example of a simple but practical "real world" application built using
+Pivot. Monitors stock quotes provided by
+<a href="http://finance.yahoo.com/">Yahoo! Finance</a>.<br>
+</p>
+<p>
+<a href="scripting.html">Scripting</a><br>
+Simple example of a Pivot application written using JavaScript and Groovy.<br>
+</p>
+<p>
+<a href="file_browser.html">File Browser</a><br>
+Demonstrates a file system browser built with Pivot.<br>
+</p>
+<p>
+<a href="file_drag_drop.html">File Drag &amp; Drop</a><br>
+Demonstrates Pivot's support for drag and drop.<br>
+</p>
+<p>
+<a href="table_row_editor.html">Table Row Editor</a><br>
+Example of a table row editor that uses a "Family Feud"-like flip effect to
+edit rows.<br>
+</p>
+<p>
+<a href="animated_clock.html">Animated Clock</a><br>
+Demonstrates Pivot's MovieView component, which is used to present a clock
+constructed using Pivot's drawing API.<br>
+</p>
+<p>
+<a href="large_data.html">Large Data Sets</a><br>
+Demonstrates Pivot's ability to handle large data sets of up to 1,000,000
+rows.<br>
+</p>
+<p>
+<a href="rss_feed.html">RSS Feed</a><br>
+Demonstrates how to build a simple RSS client in Pivot (requires Java 6
+Update 10 or later).<br>
+</p>
+<p>
+<a href="dom_interaction.html">DOM Interaction</a><br>
+Demonstrates Pivot's support for bi-directional communication between a Pivot
+application and the browser DOM.<br>
+</p>
+<p>
+<a href="push_client.html">Push Client</a><br>
+Shows how the Jabber instant-messaging protocol can be used to implement a
+"push"-style application in Pivot.<br>
+</p>
+<p>
+<a href="decorators.html">Decorators</a><br>
+Demonstrates the use of "decorators" in Pivot. Decorators allow a developer to
+attach additional presentation to components, such as drop shadows, reflections,
+image effects, etc. This example shows a window with a reflection decorator and
+a frame with a fade decorator.<br>
+</p>
+<p>
+<a href="fixed_column_table.html">Fixed Column Table</a><br>
+Explains how to create a table with fixed columns in Pivot. Fixed columns are
+handy when displaying tables with many columns.<br>
+</p>
 </body>
 </html>

Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java?rev=786048&r1=786047&r2=786048&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java (original)
+++ incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java Thu Jun 18 13:12:10 2009
@@ -40,7 +40,6 @@
 import org.apache.pivot.wtk.Button;
 import org.apache.pivot.wtk.ButtonPressListener;
 import org.apache.pivot.wtk.ComponentMouseButtonListener;
-import org.apache.pivot.wtk.ComponentStateListener;
 import org.apache.pivot.wtk.DesktopApplicationContext;
 import org.apache.pivot.wtk.DragSource;
 import org.apache.pivot.wtk.DropAction;
@@ -196,17 +195,6 @@
                 watermarkDecorator.setFont(watermarkDecorator.getFont().deriveFont(Font.BOLD, 24));
 
                 textArea.getDecorators().add(watermarkDecorator);
-
-                textArea.getComponentStateListeners().add(new ComponentStateListener() {
-                    public void enabledChanged(Component component) {
-                        // No-op
-                    }
-
-                    public void focusedChanged(Component component, boolean temporary) {
-                        component.getDecorators().remove(watermarkDecorator);
-                        component.getComponentStateListeners().remove(this);
-                    }
-                });
             }
 
             return Vote.APPROVE;