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/07/20 17:51:27 UTC

svn commit: r1363854 - /pivot/site/trunk/deploy/tutorials/list-buttons.html

Author: smartini
Date: Fri Jul 20 15:51:27 2012
New Revision: 1363854

URL: http://svn.apache.org/viewvc?rev=1363854&view=rev
Log:
add some info on resource cache usage in case it need to be/stay small

Modified:
    pivot/site/trunk/deploy/tutorials/list-buttons.html

Modified: pivot/site/trunk/deploy/tutorials/list-buttons.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/list-buttons.html?rev=1363854&r1=1363853&r2=1363854&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/list-buttons.html (original)
+++ pivot/site/trunk/deploy/tutorials/list-buttons.html Fri Jul 20 15:51:27 2012
@@ -183,13 +183,16 @@ limitations under the License.
         </pre>
 
         <p>
-            Note that this example makes use of the global resource cache to store the loaded
-            images. This cache can be used to store any kind of application-specific data that may
+            This example makes use of the global resource cache to store the loaded images.
+            This cache can be used to store any kind of application-specific data that may
             be expensive to load. Entries are keyed by the URL from which they were retrieved, and,
             once placed in the cache, are available to all code within the application. When the
             list button's selection changes, the application first looks for an image in the
-            resource cache; if it is not found, it is loaded and added to the cache. It is then set
-            as the "image" property of the image view and displayed.
+            resource cache; if it is not found, it is loaded and added to the cache.
+            It is then set as the "image" property of the image view and displayed.
+            Note that the global cache does not have a way to limiting the number of elements
+            to contain, so the cache continues to grow; to keep it small you have
+            to manually remove old elements from it when they are no more necessary.
         </p>
     </div><p>Next: <a href="repeatable-list-buttons.html">Repeatable 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 Li
 sts</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.