if (hover) { items [focusIndex].redraw (); focusIndex = i; items [focusIndex].redraw ();
if (hover && item != focusItem) { focusItem.redraw (); focusItem = item; focusItem.redraw ();
void onMouseDown (Event event) {	int x = event.x;	int y = event.y;	for (int i = 0; i < itemCount; i++) {		ExpandItem item = items[i];		boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + getBandHeight ()); 		if (hover) {			items [focusIndex].redraw ();			focusIndex = i;			items [focusIndex].redraw ();			forceFocus ();			break;		}	}		}