if (focusIndex == -1) return; ExpandItem item = items [focusIndex]; boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + getBandHeight ());
if (focusItem == null) return; boolean hover = focusItem.x <= x && x < (focusItem.x + focusItem.width) && focusItem.y <= y && y < (focusItem.y + getBandHeight ());
void onMouseUp (Event event) {	int x = event.x;	int y = event.y;	if (focusIndex == -1) return;	ExpandItem item = items [focusIndex];	boolean hover = item.x <= x && x < (item.x + item.width) && item.y <= y && y < (item.y + getBandHeight ()); 	if (hover) {		Event ev = new Event ();		ev.item = item;		notifyListeners (item.expanded ? SWT.Collapse : SWT.Expand, ev);		item.expanded = !item.expanded;		showItem (focusIndex);	}}