/*
 * ICESOFT COMMERCIAL SOURCE CODE LICENSE V 1.1
 *
 * The contents of this file are subject to the ICEsoft Commercial Source
 * Code License Agreement V1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of the
 * License at
 * http://www.icesoft.com/license/commercial-source-v1.1.html
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations under
 * the License.
 *
 * Copyright 2009-2015 ICEsoft Technologies Canada, Corp. All Rights Reserved.
 */
package com.icesoft.faces.facelets.example.tabs;

import com.icesoft.faces.facelets.component.tabs.Tab;
import com.icesoft.faces.facelets.component.tabs.TabsController;

import java.io.Serializable;

public class TabsExampleBean implements Serializable {

    private TabsController tabsController;

    public TabsController getTabsController() {
        return tabsController;
    }

    public TabsExampleBean() {
        tabsController = new TabsController();
        tabsController.addTab(new Tab("tab1", "Tab 1"
                , "/WEB-INF/includes/examples/composition-components/tab1.xhtml"));
        tabsController.addTab(new Tab("tab2", "Tab 2"
                , "/WEB-INF/includes/examples/composition-components/tab2.xhtml"));
        tabsController.addTab(new Tab("tab3", "Tab 3"
                , "/WEB-INF/includes/examples/composition-components/tab3.xhtml"));

    }

}
