// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.apache.myfaces.custom.tabbedpane;

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;


// Generated from class org.apache.myfaces.custom.tabbedpane.AbstractHtmlPanelTabbedPane.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlPanelTabbedPaneTag
    extends org.apache.myfaces.shared_tomahawk.taglib.html.HtmlPanelGroupTag
{
    public HtmlPanelTabbedPaneTag()
    {    
    }
    
    public String getComponentType()
    {
        return "org.apache.myfaces.HtmlPanelTabbedPane";
    }

    public String getRendererType()
    {
        return "org.apache.myfaces.TabbedPane";
    }

 
    private String _activePanelTabVar;
    
    public void setActivePanelTabVar(String activePanelTabVar)
    {
        _activePanelTabVar = activePanelTabVar;
    }
 
    private String _selectedIndex;
    
    public void setSelectedIndex(String selectedIndex)
    {
        _selectedIndex = selectedIndex;
    }
 
    private String _activeTabStyleClass;
    
    public void setActiveTabStyleClass(String activeTabStyleClass)
    {
        _activeTabStyleClass = activeTabStyleClass;
    }
 
    private String _inactiveTabStyleClass;
    
    public void setInactiveTabStyleClass(String inactiveTabStyleClass)
    {
        _inactiveTabStyleClass = inactiveTabStyleClass;
    }
 
    private String _activeSubStyleClass;
    
    public void setActiveSubStyleClass(String activeSubStyleClass)
    {
        _activeSubStyleClass = activeSubStyleClass;
    }
 
    private String _inactiveSubStyleClass;
    
    public void setInactiveSubStyleClass(String inactiveSubStyleClass)
    {
        _inactiveSubStyleClass = inactiveSubStyleClass;
    }
 
    private String _tabContentStyleClass;
    
    public void setTabContentStyleClass(String tabContentStyleClass)
    {
        _tabContentStyleClass = tabContentStyleClass;
    }
 
    private String _disabledTabStyleClass;
    
    public void setDisabledTabStyleClass(String disabledTabStyleClass)
    {
        _disabledTabStyleClass = disabledTabStyleClass;
    }
 
    private String _serverSideTabSwitch;
    
    public void setServerSideTabSwitch(String serverSideTabSwitch)
    {
        _serverSideTabSwitch = serverSideTabSwitch;
    }
 
    private String _immediateTabChange;
    
    public void setImmediateTabChange(String immediateTabChange)
    {
        _immediateTabChange = immediateTabChange;
    }
 
    private String _onclick;
    
    public void setOnclick(String onclick)
    {
        _onclick = onclick;
    }
 
    private String _ondblclick;
    
    public void setOndblclick(String ondblclick)
    {
        _ondblclick = ondblclick;
    }
 
    private String _onkeydown;
    
    public void setOnkeydown(String onkeydown)
    {
        _onkeydown = onkeydown;
    }
 
    private String _onkeypress;
    
    public void setOnkeypress(String onkeypress)
    {
        _onkeypress = onkeypress;
    }
 
    private String _onkeyup;
    
    public void setOnkeyup(String onkeyup)
    {
        _onkeyup = onkeyup;
    }
 
    private String _onmousedown;
    
    public void setOnmousedown(String onmousedown)
    {
        _onmousedown = onmousedown;
    }
 
    private String _onmousemove;
    
    public void setOnmousemove(String onmousemove)
    {
        _onmousemove = onmousemove;
    }
 
    private String _onmouseout;
    
    public void setOnmouseout(String onmouseout)
    {
        _onmouseout = onmouseout;
    }
 
    private String _onmouseover;
    
    public void setOnmouseover(String onmouseover)
    {
        _onmouseover = onmouseover;
    }
 
    private String _onmouseup;
    
    public void setOnmouseup(String onmouseup)
    {
        _onmouseup = onmouseup;
    }
 
    private String _enabledOnUserRole;
    
    public void setEnabledOnUserRole(String enabledOnUserRole)
    {
        _enabledOnUserRole = enabledOnUserRole;
    }
 
    private String _visibleOnUserRole;
    
    public void setVisibleOnUserRole(String visibleOnUserRole)
    {
        _visibleOnUserRole = visibleOnUserRole;
    }
 
    private String _dir;
    
    public void setDir(String dir)
    {
        _dir = dir;
    }
 
    private String _lang;
    
    public void setLang(String lang)
    {
        _lang = lang;
    }
 
    private String _title;
    
    public void setTitle(String title)
    {
        _title = title;
    }
 
    private String _datafld;
    
    public void setDatafld(String datafld)
    {
        _datafld = datafld;
    }
 
    private String _datasrc;
    
    public void setDatasrc(String datasrc)
    {
        _datasrc = datasrc;
    }
 
    private String _dataformatas;
    
    public void setDataformatas(String dataformatas)
    {
        _dataformatas = dataformatas;
    }
 
    private String _bgcolor;
    
    public void setBgcolor(String bgcolor)
    {
        _bgcolor = bgcolor;
    }
 
    private String _border;
    
    public void setBorder(String border)
    {
        _border = border;
    }
 
    private String _cellpadding;
    
    public void setCellpadding(String cellpadding)
    {
        _cellpadding = cellpadding;
    }
 
    private String _cellspacing;
    
    public void setCellspacing(String cellspacing)
    {
        _cellspacing = cellspacing;
    }
 
    private String _frame;
    
    public void setFrame(String frame)
    {
        _frame = frame;
    }
 
    private String _rules;
    
    public void setRules(String rules)
    {
        _rules = rules;
    }
 
    private String _summary;
    
    public void setSummary(String summary)
    {
        _summary = summary;
    }
 
    private String _width;
    
    public void setWidth(String width)
    {
        _width = width;
    }
 
    private String _align;
    
    public void setAlign(String align)
    {
        _align = align;
    }

    protected void setProperties(UIComponent component)
    {
        if (!(component instanceof org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane))
        {
            throw new IllegalArgumentException("Component "+
                component.getClass().getName() +" is no org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane");
        }
        
        org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane comp = (org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane) component;
        
        super.setProperties(component);
        
        FacesContext context = getFacesContext();

        if (_activePanelTabVar != null)
        {
            if (isValueReference(_activePanelTabVar))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_activePanelTabVar);
                comp.setValueBinding("activePanelTabVar", vb);
            }
            else
            {
                comp.getAttributes().put("activePanelTabVar", Boolean.valueOf(_activePanelTabVar));
            }
        } 
        if (_selectedIndex != null)
        {
            if (isValueReference(_selectedIndex))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_selectedIndex);
                comp.setValueBinding("selectedIndex", vb);
            }
            else
            {
                comp.getAttributes().put("selectedIndex", Integer.valueOf(_selectedIndex));
            }
        } 
        if (_activeTabStyleClass != null)
        {
            if (isValueReference(_activeTabStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_activeTabStyleClass);
                comp.setValueBinding("activeTabStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("activeTabStyleClass", _activeTabStyleClass);
            }
        } 
        if (_inactiveTabStyleClass != null)
        {
            if (isValueReference(_inactiveTabStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_inactiveTabStyleClass);
                comp.setValueBinding("inactiveTabStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("inactiveTabStyleClass", _inactiveTabStyleClass);
            }
        } 
        if (_activeSubStyleClass != null)
        {
            if (isValueReference(_activeSubStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_activeSubStyleClass);
                comp.setValueBinding("activeSubStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("activeSubStyleClass", _activeSubStyleClass);
            }
        } 
        if (_inactiveSubStyleClass != null)
        {
            if (isValueReference(_inactiveSubStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_inactiveSubStyleClass);
                comp.setValueBinding("inactiveSubStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("inactiveSubStyleClass", _inactiveSubStyleClass);
            }
        } 
        if (_tabContentStyleClass != null)
        {
            if (isValueReference(_tabContentStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_tabContentStyleClass);
                comp.setValueBinding("tabContentStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("tabContentStyleClass", _tabContentStyleClass);
            }
        } 
        if (_disabledTabStyleClass != null)
        {
            if (isValueReference(_disabledTabStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_disabledTabStyleClass);
                comp.setValueBinding("disabledTabStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("disabledTabStyleClass", _disabledTabStyleClass);
            }
        } 
        if (_serverSideTabSwitch != null)
        {
            if (isValueReference(_serverSideTabSwitch))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_serverSideTabSwitch);
                comp.setValueBinding("serverSideTabSwitch", vb);
            }
            else
            {
                comp.getAttributes().put("serverSideTabSwitch", Boolean.valueOf(_serverSideTabSwitch));
            }
        } 
        if (_immediateTabChange != null)
        {
            if (isValueReference(_immediateTabChange))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_immediateTabChange);
                comp.setValueBinding("immediateTabChange", vb);
            }
            else
            {
                comp.getAttributes().put("immediateTabChange", Boolean.valueOf(_immediateTabChange));
            }
        } 
        if (_onclick != null)
        {
            if (isValueReference(_onclick))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onclick);
                comp.setValueBinding("onclick", vb);
            }
            else
            {
                comp.getAttributes().put("onclick", _onclick);
            }
        } 
        if (_ondblclick != null)
        {
            if (isValueReference(_ondblclick))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_ondblclick);
                comp.setValueBinding("ondblclick", vb);
            }
            else
            {
                comp.getAttributes().put("ondblclick", _ondblclick);
            }
        } 
        if (_onkeydown != null)
        {
            if (isValueReference(_onkeydown))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeydown);
                comp.setValueBinding("onkeydown", vb);
            }
            else
            {
                comp.getAttributes().put("onkeydown", _onkeydown);
            }
        } 
        if (_onkeypress != null)
        {
            if (isValueReference(_onkeypress))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeypress);
                comp.setValueBinding("onkeypress", vb);
            }
            else
            {
                comp.getAttributes().put("onkeypress", _onkeypress);
            }
        } 
        if (_onkeyup != null)
        {
            if (isValueReference(_onkeyup))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onkeyup);
                comp.setValueBinding("onkeyup", vb);
            }
            else
            {
                comp.getAttributes().put("onkeyup", _onkeyup);
            }
        } 
        if (_onmousedown != null)
        {
            if (isValueReference(_onmousedown))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmousedown);
                comp.setValueBinding("onmousedown", vb);
            }
            else
            {
                comp.getAttributes().put("onmousedown", _onmousedown);
            }
        } 
        if (_onmousemove != null)
        {
            if (isValueReference(_onmousemove))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmousemove);
                comp.setValueBinding("onmousemove", vb);
            }
            else
            {
                comp.getAttributes().put("onmousemove", _onmousemove);
            }
        } 
        if (_onmouseout != null)
        {
            if (isValueReference(_onmouseout))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseout);
                comp.setValueBinding("onmouseout", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseout", _onmouseout);
            }
        } 
        if (_onmouseover != null)
        {
            if (isValueReference(_onmouseover))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseover);
                comp.setValueBinding("onmouseover", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseover", _onmouseover);
            }
        } 
        if (_onmouseup != null)
        {
            if (isValueReference(_onmouseup))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_onmouseup);
                comp.setValueBinding("onmouseup", vb);
            }
            else
            {
                comp.getAttributes().put("onmouseup", _onmouseup);
            }
        } 
        if (_enabledOnUserRole != null)
        {
            if (isValueReference(_enabledOnUserRole))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_enabledOnUserRole);
                comp.setValueBinding("enabledOnUserRole", vb);
            }
            else
            {
                comp.getAttributes().put("enabledOnUserRole", _enabledOnUserRole);
            }
        } 
        if (_visibleOnUserRole != null)
        {
            if (isValueReference(_visibleOnUserRole))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_visibleOnUserRole);
                comp.setValueBinding("visibleOnUserRole", vb);
            }
            else
            {
                comp.getAttributes().put("visibleOnUserRole", _visibleOnUserRole);
            }
        } 
        if (_dir != null)
        {
            if (isValueReference(_dir))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_dir);
                comp.setValueBinding("dir", vb);
            }
            else
            {
                comp.getAttributes().put("dir", _dir);
            }
        } 
        if (_lang != null)
        {
            if (isValueReference(_lang))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_lang);
                comp.setValueBinding("lang", vb);
            }
            else
            {
                comp.getAttributes().put("lang", _lang);
            }
        } 
        if (_title != null)
        {
            if (isValueReference(_title))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_title);
                comp.setValueBinding("title", vb);
            }
            else
            {
                comp.getAttributes().put("title", _title);
            }
        } 
        if (_datafld != null)
        {
            if (isValueReference(_datafld))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_datafld);
                comp.setValueBinding("datafld", vb);
            }
            else
            {
                comp.getAttributes().put("datafld", _datafld);
            }
        } 
        if (_datasrc != null)
        {
            if (isValueReference(_datasrc))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_datasrc);
                comp.setValueBinding("datasrc", vb);
            }
            else
            {
                comp.getAttributes().put("datasrc", _datasrc);
            }
        } 
        if (_dataformatas != null)
        {
            if (isValueReference(_dataformatas))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_dataformatas);
                comp.setValueBinding("dataformatas", vb);
            }
            else
            {
                comp.getAttributes().put("dataformatas", _dataformatas);
            }
        } 
        if (_bgcolor != null)
        {
            if (isValueReference(_bgcolor))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_bgcolor);
                comp.setValueBinding("bgcolor", vb);
            }
            else
            {
                comp.getAttributes().put("bgcolor", _bgcolor);
            }
        } 
        if (_border != null)
        {
            if (isValueReference(_border))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_border);
                comp.setValueBinding("border", vb);
            }
            else
            {
                comp.getAttributes().put("border", Integer.valueOf(_border));
            }
        } 
        if (_cellpadding != null)
        {
            if (isValueReference(_cellpadding))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_cellpadding);
                comp.setValueBinding("cellpadding", vb);
            }
            else
            {
                comp.getAttributes().put("cellpadding", _cellpadding);
            }
        } 
        if (_cellspacing != null)
        {
            if (isValueReference(_cellspacing))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_cellspacing);
                comp.setValueBinding("cellspacing", vb);
            }
            else
            {
                comp.getAttributes().put("cellspacing", _cellspacing);
            }
        } 
        if (_frame != null)
        {
            if (isValueReference(_frame))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_frame);
                comp.setValueBinding("frame", vb);
            }
            else
            {
                comp.getAttributes().put("frame", _frame);
            }
        } 
        if (_rules != null)
        {
            if (isValueReference(_rules))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_rules);
                comp.setValueBinding("rules", vb);
            }
            else
            {
                comp.getAttributes().put("rules", _rules);
            }
        } 
        if (_summary != null)
        {
            if (isValueReference(_summary))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_summary);
                comp.setValueBinding("summary", vb);
            }
            else
            {
                comp.getAttributes().put("summary", _summary);
            }
        } 
        if (_width != null)
        {
            if (isValueReference(_width))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_width);
                comp.setValueBinding("width", vb);
            }
            else
            {
                comp.getAttributes().put("width", _width);
            }
        } 
        if (_align != null)
        {
            if (isValueReference(_align))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_align);
                comp.setValueBinding("align", vb);
            }
            else
            {
                comp.getAttributes().put("align", _align);
            }
        } 
    }

    public void release()
    {
        super.release();
        _activePanelTabVar = null;
        _selectedIndex = null;
        _activeTabStyleClass = null;
        _inactiveTabStyleClass = null;
        _activeSubStyleClass = null;
        _inactiveSubStyleClass = null;
        _tabContentStyleClass = null;
        _disabledTabStyleClass = null;
        _serverSideTabSwitch = null;
        _immediateTabChange = null;
        _onclick = null;
        _ondblclick = null;
        _onkeydown = null;
        _onkeypress = null;
        _onkeyup = null;
        _onmousedown = null;
        _onmousemove = null;
        _onmouseout = null;
        _onmouseover = null;
        _onmouseup = null;
        _enabledOnUserRole = null;
        _visibleOnUserRole = null;
        _dir = null;
        _lang = null;
        _title = null;
        _datafld = null;
        _datasrc = null;
        _dataformatas = null;
        _bgcolor = null;
        _border = null;
        _cellpadding = null;
        _cellspacing = null;
        _frame = null;
        _rules = null;
        _summary = null;
        _width = null;
        _align = null;
    }
}