/*
 * 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.application.showcase.view.bean;

import java.io.Serializable;

/**
 * <p>The TabState class stores tabSet related state data.  The
 * {@link com.icesoft.faces.application.showcase.view.bean.ApplicationSessionModel}
 * class contains a lazily loaded hashMap which contains the a one to
 * one mapping of Node objects to TabSate objects.  When a user clicks on
 * a navigation node the TabState object is either created or loaded and tabSet
 * component reflects what ever state was defined in the TabState object. </p>
 *
 * @sinse 1.7
 */
public class TabState implements Serializable {

    public static final int DEMONSTRATION_TAB_INDEX = 0;
    public static final int DOCUMENT_TAB_INDEX = 1;
    public static final int SOURCE_TAB_INDEX = 2;

    // currently selected tab index
    private int tabIndex;

    // relative path to currently selected documentation, if any. 
    private String descriptionContent;

    // relative path to currently selected source code, if any.
    private String sourceContent;

    public int getTabIndex() {
        return tabIndex;
    }

    public void setTabIndex(int tabIndex) {
        this.tabIndex = tabIndex;
    }

    public String getDescriptionContent() {
        return descriptionContent;
    }

    public void setDescriptionContent(String descriptionContent) {
        this.descriptionContent = descriptionContent;
    }

    public String getSourceContent() {
        return sourceContent;
    }

    public void setSourceContent(String sourceContent) {
        this.sourceContent = sourceContent;
    }
}
