< prev index next >

src/java.desktop/share/classes/javax/swing/text/ZoneView.java

Print this page

        

*** 92,101 **** --- 92,102 ---- loadedZones = new Vector<View>(); } /** * Get the current maximum zone size. + * @return the current maximum zone size */ public int getMaximumZoneSize() { return maxZoneSize; }
*** 115,124 **** --- 116,127 ---- } /** * Get the current setting of the number of zones * allowed to be loaded at the same time. + * @return current setting of the number of zones + * allowed to be loaded at the same time */ public int getMaxZonesLoaded() { return maxZonesLoaded; }
*** 182,191 **** --- 185,197 ---- * Determine if a zone is in the loaded state. * The zones are expected to represent a subset of the * child elements of the element this view is responsible for. * Therefore, the default implementation is to return * true if the view has children. + * param zone the child view + * @param zone the zone + * @return whether or not the zone is in the loaded state. */ protected boolean isZoneLoaded(View zone) { return (zone.getViewCount() > 0); }
*** 201,210 **** --- 207,218 ---- * be &gt;= getStartOffset() and &lt; getEndOffset(). This * value should also be &lt; p1. * @param p1 the end of the desired zone. This should * be &gt; getStartOffset() and &lt;= getEndOffset(). This * value should also be &gt; p0. + * @return a view to represent a zone for the given range within + * the model */ protected View createZone(int p0, int p1) { Document doc = getDocument(); View zone; try {
< prev index next >