// 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.shared_tomahawk.taglib.html;

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


// Generated from class javax.faces.component.html._HtmlDataTable.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlDataTableTag
    extends javax.faces.webapp.UIComponentBodyTag
{
    public HtmlDataTableTag()
    {    
    }
    
    public String getComponentType()
    {
        return "javax.faces.HtmlDataTable";
    }

    public String getRendererType()
    {
        return "javax.faces.Table";
    }

 
    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 _columnClasses;
    
    public void setColumnClasses(String columnClasses)
    {
        _columnClasses = columnClasses;
    }
 
    private String _footerClass;
    
    public void setFooterClass(String footerClass)
    {
        _footerClass = footerClass;
    }
 
    private String _frame;
    
    public void setFrame(String frame)
    {
        _frame = frame;
    }
 
    private String _headerClass;
    
    public void setHeaderClass(String headerClass)
    {
        _headerClass = headerClass;
    }
 
    private String _rowClasses;
    
    public void setRowClasses(String rowClasses)
    {
        _rowClasses = rowClasses;
    }
 
    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 _style;
    
    public void setStyle(String style)
    {
        _style = style;
    }
 
    private String _styleClass;
    
    public void setStyleClass(String styleClass)
    {
        _styleClass = styleClass;
    }
 
    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 _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 _var;
    
    public void setVar(String var)
    {
        _var = var;
    }
 
    private String _first;
    
    public void setFirst(String first)
    {
        _first = first;
    }
 
    private String _rows;
    
    public void setRows(String rows)
    {
        _rows = rows;
    }
 
    private String _value;
    
    public void setValue(String value)
    {
        _value = value;
    }

    protected void setProperties(UIComponent component)
    {
        if (!(component instanceof javax.faces.component.html.HtmlDataTable))
        {
            throw new IllegalArgumentException("Component "+
                component.getClass().getName() +" is no javax.faces.component.html.HtmlDataTable");
        }
        
        javax.faces.component.html.HtmlDataTable comp = (javax.faces.component.html.HtmlDataTable) component;
        
        super.setProperties(component);
        
        FacesContext context = getFacesContext();

        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 (_columnClasses != null)
        {
            if (isValueReference(_columnClasses))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_columnClasses);
                comp.setValueBinding("columnClasses", vb);
            }
            else
            {
                comp.getAttributes().put("columnClasses", _columnClasses);
            }
        } 
        if (_footerClass != null)
        {
            if (isValueReference(_footerClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_footerClass);
                comp.setValueBinding("footerClass", vb);
            }
            else
            {
                comp.getAttributes().put("footerClass", _footerClass);
            }
        } 
        if (_frame != null)
        {
            if (isValueReference(_frame))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_frame);
                comp.setValueBinding("frame", vb);
            }
            else
            {
                comp.getAttributes().put("frame", _frame);
            }
        } 
        if (_headerClass != null)
        {
            if (isValueReference(_headerClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_headerClass);
                comp.setValueBinding("headerClass", vb);
            }
            else
            {
                comp.getAttributes().put("headerClass", _headerClass);
            }
        } 
        if (_rowClasses != null)
        {
            if (isValueReference(_rowClasses))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_rowClasses);
                comp.setValueBinding("rowClasses", vb);
            }
            else
            {
                comp.getAttributes().put("rowClasses", _rowClasses);
            }
        } 
        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 (_style != null)
        {
            if (isValueReference(_style))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_style);
                comp.setValueBinding("style", vb);
            }
            else
            {
                comp.getAttributes().put("style", _style);
            }
        } 
        if (_styleClass != null)
        {
            if (isValueReference(_styleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_styleClass);
                comp.setValueBinding("styleClass", vb);
            }
            else
            {
                comp.getAttributes().put("styleClass", _styleClass);
            }
        } 
        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 (_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 (_var != null)
        {
            comp.getAttributes().put("var", _var);
        } 
        if (_first != null)
        {
            if (isValueReference(_first))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_first);
                comp.setValueBinding("first", vb);
            }
            else
            {
                comp.getAttributes().put("first", Integer.valueOf(_first));
            }
        } 
        if (_rows != null)
        {
            if (isValueReference(_rows))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_rows);
                comp.setValueBinding("rows", vb);
            }
            else
            {
                comp.getAttributes().put("rows", Integer.valueOf(_rows));
            }
        } 
        if (_value != null)
        {
            if (isValueReference(_value))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_value);
                comp.setValueBinding("value", vb);
            }
            else
            {
                comp.getAttributes().put("value", _value);
            }
        } 
    }

    public void release()
    {
        super.release();
        _bgcolor = null;
        _border = null;
        _cellpadding = null;
        _cellspacing = null;
        _columnClasses = null;
        _footerClass = null;
        _frame = null;
        _headerClass = null;
        _rowClasses = null;
        _rules = null;
        _summary = null;
        _width = null;
        _style = null;
        _styleClass = null;
        _onclick = null;
        _ondblclick = null;
        _onkeydown = null;
        _onkeypress = null;
        _onkeyup = null;
        _onmousedown = null;
        _onmousemove = null;
        _onmouseout = null;
        _onmouseover = null;
        _onmouseup = null;
        _dir = null;
        _lang = null;
        _title = null;
        _var = null;
        _first = null;
        _rows = null;
        _value = null;
    }
}