code: public void setActiveTab(UITab tab)
  	{
  		if (attachedContainer == null)
  		{
  			activeTab = tab;
  			return;
  		}
  
  		if (activeTab == tab)
  			return;
  
  		if (activeTab != null)
  			activeTab.setActive(false);
  
  		activeTab = tab;
  		if (tab == null)
  			return;
  
  		tab.setActive(true);
  	}
docs: Activates the {@link UITab} and deactivates currently active one.
  
  @param tab the new active tab