package gov.nist.hit.ds.xdstools3.client.tabs;

import com.smartgwt.client.types.Side;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;

/**
 * Builds the main set of tabs for the application
 */
public class GenericTabSet extends TabSet {

	public GenericTabSet(){
	    this.setTabBarPosition(Side.TOP);
	    this.setTabBarAlign(Side.LEFT);
	}

    public Tab findTab(Tab tab){
        for (Tab t:getTabs())
            if (t.getTitle().equals(tab.getTitle())) {
                return t;
            }
        return null;
    }


}
