equal
deleted
inserted
replaced
58 * create child views that directly represent the child elements). |
58 * create child views that directly represent the child elements). |
59 * <li> |
59 * <li> |
60 * Boxes are easier to estimate the size of than some other shapes. |
60 * Boxes are easier to estimate the size of than some other shapes. |
61 * </ul> |
61 * </ul> |
62 * <p> |
62 * <p> |
63 * The default behavior is controled by two properties, maxZoneSize |
63 * The default behavior is controlled by two properties, maxZoneSize |
64 * and maxZonesLoaded. Setting maxZoneSize to Integer.MAX_VALUE would |
64 * and maxZonesLoaded. Setting maxZoneSize to Integer.MAX_VALUE would |
65 * have the effect of causing only one zone to be created. This would |
65 * have the effect of causing only one zone to be created. This would |
66 * effectively turn the view into an implementation of the decorator |
66 * effectively turn the view into an implementation of the decorator |
67 * pattern. Setting maxZonesLoaded to a value of Integer.MAX_VALUE would |
67 * pattern. Setting maxZonesLoaded to a value of Integer.MAX_VALUE would |
68 * cause zones to never be unloaded. For simplicity, zones are created on |
68 * cause zones to never be unloaded. For simplicity, zones are created on |
142 |
142 |
143 /** |
143 /** |
144 * Called by a zone when it gets loaded. This happens when |
144 * Called by a zone when it gets loaded. This happens when |
145 * an attempt is made to display or perform a model/view |
145 * an attempt is made to display or perform a model/view |
146 * translation on a zone that was in an unloaded state. |
146 * translation on a zone that was in an unloaded state. |
147 * This is imlemented to check if the maximum number of |
147 * This is implemented to check if the maximum number of |
148 * zones was reached and to unload the oldest zone if so. |
148 * zones was reached and to unload the oldest zone if so. |
149 * |
149 * |
150 * @param zone the child view that was just loaded. |
150 * @param zone the child view that was just loaded. |
151 */ |
151 */ |
152 protected void zoneWasLoaded(View zone) { |
152 protected void zoneWasLoaded(View zone) { |