return items.length - 1;
return firstIndex;
int getLastIndex() {	if (single) return selectedIndex;	if (items.length == 0) return -1;	for (int i = firstIndex; i < items.length; i++) {		CTabItem item = items[i];		if (item.isShowing()) continue;		return i == firstIndex ? firstIndex : i - 1;	}	return items.length - 1;}