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/09/10 16:21:53 UTC

svn commit: r1382867 - /pivot/site/trunk/deploy/tutorials/lists.html

Author: smartini
Date: Mon Sep 10 14:21:53 2012
New Revision: 1382867

URL: http://svn.apache.org/viewvc?rev=1382867&view=rev
Log:
update lists tutorial, to add more info on how the default renderer uses element beans to display text (for any element, inside the list)

Modified:
    pivot/site/trunk/deploy/tutorials/lists.html

Modified: pivot/site/trunk/deploy/tutorials/lists.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/lists.html?rev=1382867&r1=1382866&r2=1382867&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/lists.html (original)
+++ pivot/site/trunk/deploy/tutorials/lists.html Mon Sep 10 14:21:53 2012
@@ -342,6 +342,17 @@ limitations under the License.
         <p>
             The Java code for the example is the same seen in the previous sample.
         </p>
+
+<br/>
+<br/>
+
+        <p>
+            In case your <tt>ListView</tt> contains a bean instance, for example a <tt>Contact</tt> for any element,
+            the default renderer uses (as last option) the toString method on list elements,
+            so override it to return whatever you want to display in the ListView,
+            or implement your own custom renderer.
+        </p>
+
     </div><p>Next: <a href="list-buttons.html">List Buttons</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.2/docs/api/">Javadoc (2.0.2)</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 hre
 f="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><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-stuff/">Pivot-Stuff</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://www.apache.org/">Apache Home</a></li><li><a href="/legal.html">Legal/License</a></li><li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li><li><a href="htt
 p://www.apache.org/foundation/thanks.html">Thanks</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