code: public boolean isActive(final WComponent tab) {
  		int activeIndex = getActiveIndex();
  		List<WTab> tabs = getTabs();
  		int idx = tabs.indexOf(tab);
  
  		return activeIndex == idx;
  	}
docs: Indicates whether the tab is active (selected).
  
  @param tab the WTab to check.
  @return true if the tab is active, false otherwise.