void clearAll (boolean recursive) {
public void clearAll (boolean recursive) {
/*public*/ void clearAll (boolean recursive) {	checkWidget ();	if (items.length == 0) return;		/* if there are no columns then the horizontal scrollbar may need adjusting */	int oldRightX = 0;	if (columns.length == 0 && !recursive) {		for (int i = 0; i < items.length; i++) {			Rectangle bounds = items [i].getBounds (false);			oldRightX = Math.max (oldRightX, bounds.x + bounds.width);		}	}	/* clear the item(s) */	for (int i = 0; i < items.length; i++) {		items [i].clear ();		if (recursive) items [i].clearAll (true, false);	}	/* adjust the horizontal scrollbar if needed */	if (columns.length == 0) {		if (recursive) {			updateHorizontalBar ();		/* recompute from scratch */		} else {			/*			 * All cleared root items will have the same x and width values now,			 * so just measure the first one as a sample.			 */			Rectangle bounds = items [0].getBounds (false);			int newRightX = bounds.x + bounds.width;			updateHorizontalBar (newRightX, newRightX - oldRightX);		}	}		/* redraw the item(s) */	if (recursive) {		redrawItems (0, availableItemsCount - 1, false);	} else {		for (int i = 0; i < items.length; i++) {			redrawItem (items [i].availableIndex, false);		}	}}