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/04/22 00:26:56 UTC

svn commit: r936552 - in /pivot/trunk/tutorials/www: data-binding.xml stock-tracker.data-binding.xml stock-tracker.web-queries.xml table-views.xml wtkx-primer.xml

Author: gbrown
Date: Wed Apr 21 22:26:56 2010
New Revision: 936552

URL: http://svn.apache.org/viewvc?rev=936552&view=rev
Log:
Update tutorial docs to refer to BeanAdapter instead of BeanDictionary.

Modified:
    pivot/trunk/tutorials/www/data-binding.xml
    pivot/trunk/tutorials/www/stock-tracker.data-binding.xml
    pivot/trunk/tutorials/www/stock-tracker.web-queries.xml
    pivot/trunk/tutorials/www/table-views.xml
    pivot/trunk/tutorials/www/wtkx-primer.xml

Modified: pivot/trunk/tutorials/www/data-binding.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/data-binding.xml?rev=936552&r1=936551&r2=936552&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/data-binding.xml (original)
+++ pivot/trunk/tutorials/www/data-binding.xml Wed Apr 21 22:26:56 2010
@@ -57,7 +57,7 @@ limitations under the License.
             The following application demonstrates data binding. It allows the user to load a form
             with address data either from a JSON file or from a JavaBean object, as well as clear
             the form. Note that binding to a JavaBean is accomplished by wrapping the bean in an
-            instance of <tt>org.apache.pivot.beans.BeanDictionary</tt> before passing it to the
+            instance of <tt>org.apache.pivot.beans.BeanAdapter</tt> before passing it to the
             <tt>load()</tt> method:
         </p>
 
@@ -139,7 +139,7 @@ limitations under the License.
 
             import java.io.InputStream;
 
-            import org.apache.pivot.beans.BeanDictionary;
+            import org.apache.pivot.beans.BeanAdapter;
             import org.apache.pivot.collections.Map;
             import org.apache.pivot.serialization.JSONSerializer;
             import org.apache.pivot.wtk.Application;
@@ -180,7 +180,7 @@ limitations under the License.
                     loadJavaButton.getButtonPressListeners().add(new ButtonPressListener() {
                         @Override
                         public void buttonPressed(Button button) {
-                            form.load(new BeanDictionary(CONTACT));
+                            form.load(new BeanAdapter(CONTACT));
                             sourceLabel.setText("Java");
                         }
                     });

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=936552&r1=936551&r2=936552&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.data-binding.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.data-binding.xml Wed Apr 21 22:26:56 2010
@@ -134,7 +134,7 @@ limitations under the License.
                     stockQuote = new StockQuote();
                 }
 
-                detailPane.load(new BeanDictionary(stockQuote));
+                detailPane.load(new BeanAdapter(stockQuote));
             }
             ]]>
         </source>

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=936552&r1=936551&r2=936552&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/stock-tracker.web-queries.xml (original)
+++ pivot/trunk/tutorials/www/stock-tracker.web-queries.xml Wed Apr 21 22:26:56 2010
@@ -172,8 +172,8 @@ limitations under the License.
         <p>
             If the item class implements the <tt>pivot.collections.Dictionary</tt> interface, the
             parsed values are <tt>put()</tt> directly into the item instance; otherwise, the item
-            is wrapped in a <tt>pivot.beans.BeanDictionary</tt> into which the values are
-            <tt>put()</tt> (<tt>BeanDictionary</tt> is a handy class that allows a caller to treat
+            is wrapped in a <tt>pivot.beans.BeanAdapter</tt> into which the values are
+            <tt>put()</tt> (<tt>BeanAdapter</tt> is a handy class that allows a caller to treat
             a JavaBean object as if it were a dictionary).
         </p>
 

Modified: pivot/trunk/tutorials/www/table-views.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/table-views.xml?rev=936552&r1=936551&r2=936552&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/table-views.xml (original)
+++ pivot/trunk/tutorials/www/table-views.xml Wed Apr 21 22:26:56 2010
@@ -35,7 +35,7 @@ limitations under the License.
             <tt>Dictionary&lt;String, Object&gt;</tt>, which the default table view renders are
             capable of presenting (for example, <tt>Map&lt;String, Object&gt;</tt> values stored in
             a JSON list or instances of JavaBean classes that can be wrapped in a
-            <tt>BeanDictionary</tt>).
+            <tt>BeanAdapter</tt>).
         </p>
 
         <p>

Modified: pivot/trunk/tutorials/www/wtkx-primer.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/www/wtkx-primer.xml?rev=936552&r1=936551&r2=936552&view=diff
==============================================================================
--- pivot/trunk/tutorials/www/wtkx-primer.xml (original)
+++ pivot/trunk/tutorials/www/wtkx-primer.xml Wed Apr 21 22:26:56 2010
@@ -101,12 +101,12 @@ limitations under the License.
             ]]>
         </source>
 
-        <h4>Dictionary vs. BeanDictionary</h4>
+        <h4>Dictionary vs. BeanAdapter</h4>
 
         <p>
             In general, uppercase elements in a WTKX file will represent instances of JavaBean
             classes. Internally, the WTKX serializer uses an instance of
-            <tt>org.apache.pivot.beans.BeanDictionary</tt> to wrap the instantiated class and
+            <tt>org.apache.pivot.beans.BeanAdapter</tt> to wrap the instantiated class and
             invoke its setter methods. However, if the class name represents an object that already
             implements the <tt>org.apache.pivot.collections.Dictionary</tt> interface (such as
             <tt>org.apache.pivot.collections.HashMap</tt>), it is not wrapped, and its dictionary
@@ -264,7 +264,7 @@ limitations under the License.
             <tt>char</tt>, <tt>byte</tt>, <tt>short</tt>, <tt>int</tt>, <tt>long</tt>,
             <tt>float</tt>, or <tt>double</tt>) or one of their wrapper equivalents, it is
             converted the appropriate type before invoking the setter. Whenever possible,
-            <tt>WTKXSerializer</tt> will use <tt>BeanDictionary</tt> to determine what, if any,
+            <tt>WTKXSerializer</tt> will use <tt>BeanAdapter</tt> to determine what, if any,
             type conversion needs to take place. For example, given the following simple bean class:
         </p>