// 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.navigation;

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


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

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

 
    private String _itemClass;
    
    public void setItemClass(String itemClass)
    {
        _itemClass = itemClass;
    }
 
    private String _openItemClass;
    
    public void setOpenItemClass(String openItemClass)
    {
        _openItemClass = openItemClass;
    }
 
    private String _activeItemClass;
    
    public void setActiveItemClass(String activeItemClass)
    {
        _activeItemClass = activeItemClass;
    }
 
    private String _separatorClass;
    
    public void setSeparatorClass(String separatorClass)
    {
        _separatorClass = separatorClass;
    }
 
    private String _itemStyle;
    
    public void setItemStyle(String itemStyle)
    {
        _itemStyle = itemStyle;
    }
 
    private String _openItemStyle;
    
    public void setOpenItemStyle(String openItemStyle)
    {
        _openItemStyle = openItemStyle;
    }
 
    private String _activeItemStyle;
    
    public void setActiveItemStyle(String activeItemStyle)
    {
        _activeItemStyle = activeItemStyle;
    }
 
    private String _separatorStyle;
    
    public void setSeparatorStyle(String separatorStyle)
    {
        _separatorStyle = separatorStyle;
    }
 
    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.navigation.HtmlPanelNavigation))
        {
            throw new IllegalArgumentException("Component "+
                component.getClass().getName() +" is no org.apache.myfaces.custom.navigation.HtmlPanelNavigation");
        }
        
        org.apache.myfaces.custom.navigation.HtmlPanelNavigation comp = (org.apache.myfaces.custom.navigation.HtmlPanelNavigation) component;
        
        super.setProperties(component);
        
        FacesContext context = getFacesContext();

        if (_itemClass != null)
        {
            if (isValueReference(_itemClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_itemClass);
                comp.setValueBinding("itemClass", vb);
            }
            else
            {
                comp.getAttributes().put("itemClass", _itemClass);
            }
        } 
        if (_openItemClass != null)
        {
            if (isValueReference(_openItemClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_openItemClass);
                comp.setValueBinding("openItemClass", vb);
            }
            else
            {
                comp.getAttributes().put("openItemClass", _openItemClass);
            }
        } 
        if (_activeItemClass != null)
        {
            if (isValueReference(_activeItemClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_activeItemClass);
                comp.setValueBinding("activeItemClass", vb);
            }
            else
            {
                comp.getAttributes().put("activeItemClass", _activeItemClass);
            }
        } 
        if (_separatorClass != null)
        {
            if (isValueReference(_separatorClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_separatorClass);
                comp.setValueBinding("separatorClass", vb);
            }
            else
            {
                comp.getAttributes().put("separatorClass", _separatorClass);
            }
        } 
        if (_itemStyle != null)
        {
            if (isValueReference(_itemStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_itemStyle);
                comp.setValueBinding("itemStyle", vb);
            }
            else
            {
                comp.getAttributes().put("itemStyle", _itemStyle);
            }
        } 
        if (_openItemStyle != null)
        {
            if (isValueReference(_openItemStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_openItemStyle);
                comp.setValueBinding("openItemStyle", vb);
            }
            else
            {
                comp.getAttributes().put("openItemStyle", _openItemStyle);
            }
        } 
        if (_activeItemStyle != null)
        {
            if (isValueReference(_activeItemStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_activeItemStyle);
                comp.setValueBinding("activeItemStyle", vb);
            }
            else
            {
                comp.getAttributes().put("activeItemStyle", _activeItemStyle);
            }
        } 
        if (_separatorStyle != null)
        {
            if (isValueReference(_separatorStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_separatorStyle);
                comp.setValueBinding("separatorStyle", vb);
            }
            else
            {
                comp.getAttributes().put("separatorStyle", _separatorStyle);
            }
        } 
        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();
        _itemClass = null;
        _openItemClass = null;
        _activeItemClass = null;
        _separatorClass = null;
        _itemStyle = null;
        _openItemStyle = null;
        _activeItemStyle = null;
        _separatorStyle = 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;
    }
}