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

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import org.apache.myfaces.custom.calendar.DateBusinessConverter;
import javax.faces.el.MethodBinding;


// Generated from class org.apache.myfaces.custom.calendar.AbstractHtmlInputCalendar.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlInputCalendarTag
    extends org.apache.myfaces.custom.calendar.AbstractHtmlInputCalendarTag
{
    public HtmlInputCalendarTag()
    {    
    }
    
    public String getComponentType()
    {
        return "org.apache.myfaces.HtmlInputCalendar";
    }

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

 
    private String _monthYearRowClass;
    
    public void setMonthYearRowClass(String monthYearRowClass)
    {
        _monthYearRowClass = monthYearRowClass;
    }
 
    private String _weekRowClass;
    
    public void setWeekRowClass(String weekRowClass)
    {
        _weekRowClass = weekRowClass;
    }
 
    private String _dayCellClass;
    
    public void setDayCellClass(String dayCellClass)
    {
        _dayCellClass = dayCellClass;
    }
 
    private String _currentDayCellClass;
    
    public void setCurrentDayCellClass(String currentDayCellClass)
    {
        _currentDayCellClass = currentDayCellClass;
    }
 
    private String _popupLeft;
    
    public void setPopupLeft(String popupLeft)
    {
        _popupLeft = popupLeft;
    }
 
    private String _renderAsPopup;
    
    public void setRenderAsPopup(String renderAsPopup)
    {
        _renderAsPopup = renderAsPopup;
    }
 
    private String _addResources;
    
    public void setAddResources(String addResources)
    {
        _addResources = addResources;
    }
 
    private String _popupButtonString;
    
    public void setPopupButtonString(String popupButtonString)
    {
        _popupButtonString = popupButtonString;
    }
 
    private String _popupButtonStyle;
    
    public void setPopupButtonStyle(String popupButtonStyle)
    {
        _popupButtonStyle = popupButtonStyle;
    }
 
    private String _popupButtonStyleClass;
    
    public void setPopupButtonStyleClass(String popupButtonStyleClass)
    {
        _popupButtonStyleClass = popupButtonStyleClass;
    }
 
    private String _renderPopupButtonAsImage;
    
    public void setRenderPopupButtonAsImage(String renderPopupButtonAsImage)
    {
        _renderPopupButtonAsImage = renderPopupButtonAsImage;
    }
 
    private String _popupDateFormat;
    
    public void setPopupDateFormat(String popupDateFormat)
    {
        _popupDateFormat = popupDateFormat;
    }
 
    private String _popupGotoString;
    
    public void setPopupGotoString(String popupGotoString)
    {
        _popupGotoString = popupGotoString;
    }
 
    private String _popupTodayString;
    
    public void setPopupTodayString(String popupTodayString)
    {
        _popupTodayString = popupTodayString;
    }
 
    private String _popupTodayDateFormat;
    
    public void setPopupTodayDateFormat(String popupTodayDateFormat)
    {
        _popupTodayDateFormat = popupTodayDateFormat;
    }
 
    private String _popupWeekString;
    
    public void setPopupWeekString(String popupWeekString)
    {
        _popupWeekString = popupWeekString;
    }
 
    private String _popupScrollLeftMessage;
    
    public void setPopupScrollLeftMessage(String popupScrollLeftMessage)
    {
        _popupScrollLeftMessage = popupScrollLeftMessage;
    }
 
    private String _popupScrollRightMessage;
    
    public void setPopupScrollRightMessage(String popupScrollRightMessage)
    {
        _popupScrollRightMessage = popupScrollRightMessage;
    }
 
    private String _popupSelectMonthMessage;
    
    public void setPopupSelectMonthMessage(String popupSelectMonthMessage)
    {
        _popupSelectMonthMessage = popupSelectMonthMessage;
    }
 
    private String _popupSelectYearMessage;
    
    public void setPopupSelectYearMessage(String popupSelectYearMessage)
    {
        _popupSelectYearMessage = popupSelectYearMessage;
    }
 
    private String _popupSelectDateMessage;
    
    public void setPopupSelectDateMessage(String popupSelectDateMessage)
    {
        _popupSelectDateMessage = popupSelectDateMessage;
    }
 
    private String _popupTheme;
    
    public void setPopupTheme(String popupTheme)
    {
        _popupTheme = popupTheme;
    }
 
    private String _popupButtonImageUrl;
    
    public void setPopupButtonImageUrl(String popupButtonImageUrl)
    {
        _popupButtonImageUrl = popupButtonImageUrl;
    }
 
    private String _helpText;
    
    public void setHelpText(String helpText)
    {
        _helpText = helpText;
    }
 
    private String _popupSelectMode;
    
    public void setPopupSelectMode(String popupSelectMode)
    {
        _popupSelectMode = popupSelectMode;
    }
 
    private String _javascriptLocation;
    
    public void setJavascriptLocation(String javascriptLocation)
    {
        _javascriptLocation = javascriptLocation;
    }
 
    private String _imageLocation;
    
    public void setImageLocation(String imageLocation)
    {
        _imageLocation = imageLocation;
    }
 
    private String _styleLocation;
    
    public void setStyleLocation(String styleLocation)
    {
        _styleLocation = styleLocation;
    }

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

        if (_monthYearRowClass != null)
        {
            if (isValueReference(_monthYearRowClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_monthYearRowClass);
                comp.setValueBinding("monthYearRowClass", vb);
            }
            else
            {
                comp.getAttributes().put("monthYearRowClass", _monthYearRowClass);
            }
        } 
        if (_weekRowClass != null)
        {
            if (isValueReference(_weekRowClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_weekRowClass);
                comp.setValueBinding("weekRowClass", vb);
            }
            else
            {
                comp.getAttributes().put("weekRowClass", _weekRowClass);
            }
        } 
        if (_dayCellClass != null)
        {
            if (isValueReference(_dayCellClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_dayCellClass);
                comp.setValueBinding("dayCellClass", vb);
            }
            else
            {
                comp.getAttributes().put("dayCellClass", _dayCellClass);
            }
        } 
        if (_currentDayCellClass != null)
        {
            if (isValueReference(_currentDayCellClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_currentDayCellClass);
                comp.setValueBinding("currentDayCellClass", vb);
            }
            else
            {
                comp.getAttributes().put("currentDayCellClass", _currentDayCellClass);
            }
        } 
        if (_popupLeft != null)
        {
            if (isValueReference(_popupLeft))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupLeft);
                comp.setValueBinding("popupLeft", vb);
            }
            else
            {
                comp.getAttributes().put("popupLeft", Boolean.valueOf(_popupLeft));
            }
        } 
        if (_renderAsPopup != null)
        {
            if (isValueReference(_renderAsPopup))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_renderAsPopup);
                comp.setValueBinding("renderAsPopup", vb);
            }
            else
            {
                comp.getAttributes().put("renderAsPopup", Boolean.valueOf(_renderAsPopup));
            }
        } 
        if (_addResources != null)
        {
            if (isValueReference(_addResources))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_addResources);
                comp.setValueBinding("addResources", vb);
            }
            else
            {
                comp.getAttributes().put("addResources", Boolean.valueOf(_addResources));
            }
        } 
        if (_popupButtonString != null)
        {
            if (isValueReference(_popupButtonString))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupButtonString);
                comp.setValueBinding("popupButtonString", vb);
            }
            else
            {
                comp.getAttributes().put("popupButtonString", _popupButtonString);
            }
        } 
        if (_popupButtonStyle != null)
        {
            if (isValueReference(_popupButtonStyle))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupButtonStyle);
                comp.setValueBinding("popupButtonStyle", vb);
            }
            else
            {
                comp.getAttributes().put("popupButtonStyle", _popupButtonStyle);
            }
        } 
        if (_popupButtonStyleClass != null)
        {
            if (isValueReference(_popupButtonStyleClass))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupButtonStyleClass);
                comp.setValueBinding("popupButtonStyleClass", vb);
            }
            else
            {
                comp.getAttributes().put("popupButtonStyleClass", _popupButtonStyleClass);
            }
        } 
        if (_renderPopupButtonAsImage != null)
        {
            if (isValueReference(_renderPopupButtonAsImage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_renderPopupButtonAsImage);
                comp.setValueBinding("renderPopupButtonAsImage", vb);
            }
            else
            {
                comp.getAttributes().put("renderPopupButtonAsImage", Boolean.valueOf(_renderPopupButtonAsImage));
            }
        } 
        if (_popupDateFormat != null)
        {
            if (isValueReference(_popupDateFormat))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupDateFormat);
                comp.setValueBinding("popupDateFormat", vb);
            }
            else
            {
                comp.getAttributes().put("popupDateFormat", _popupDateFormat);
            }
        } 
        if (_popupGotoString != null)
        {
            if (isValueReference(_popupGotoString))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupGotoString);
                comp.setValueBinding("popupGotoString", vb);
            }
            else
            {
                comp.getAttributes().put("popupGotoString", _popupGotoString);
            }
        } 
        if (_popupTodayString != null)
        {
            if (isValueReference(_popupTodayString))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupTodayString);
                comp.setValueBinding("popupTodayString", vb);
            }
            else
            {
                comp.getAttributes().put("popupTodayString", _popupTodayString);
            }
        } 
        if (_popupTodayDateFormat != null)
        {
            if (isValueReference(_popupTodayDateFormat))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupTodayDateFormat);
                comp.setValueBinding("popupTodayDateFormat", vb);
            }
            else
            {
                comp.getAttributes().put("popupTodayDateFormat", _popupTodayDateFormat);
            }
        } 
        if (_popupWeekString != null)
        {
            if (isValueReference(_popupWeekString))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupWeekString);
                comp.setValueBinding("popupWeekString", vb);
            }
            else
            {
                comp.getAttributes().put("popupWeekString", _popupWeekString);
            }
        } 
        if (_popupScrollLeftMessage != null)
        {
            if (isValueReference(_popupScrollLeftMessage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupScrollLeftMessage);
                comp.setValueBinding("popupScrollLeftMessage", vb);
            }
            else
            {
                comp.getAttributes().put("popupScrollLeftMessage", _popupScrollLeftMessage);
            }
        } 
        if (_popupScrollRightMessage != null)
        {
            if (isValueReference(_popupScrollRightMessage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupScrollRightMessage);
                comp.setValueBinding("popupScrollRightMessage", vb);
            }
            else
            {
                comp.getAttributes().put("popupScrollRightMessage", _popupScrollRightMessage);
            }
        } 
        if (_popupSelectMonthMessage != null)
        {
            if (isValueReference(_popupSelectMonthMessage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupSelectMonthMessage);
                comp.setValueBinding("popupSelectMonthMessage", vb);
            }
            else
            {
                comp.getAttributes().put("popupSelectMonthMessage", _popupSelectMonthMessage);
            }
        } 
        if (_popupSelectYearMessage != null)
        {
            if (isValueReference(_popupSelectYearMessage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupSelectYearMessage);
                comp.setValueBinding("popupSelectYearMessage", vb);
            }
            else
            {
                comp.getAttributes().put("popupSelectYearMessage", _popupSelectYearMessage);
            }
        } 
        if (_popupSelectDateMessage != null)
        {
            if (isValueReference(_popupSelectDateMessage))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupSelectDateMessage);
                comp.setValueBinding("popupSelectDateMessage", vb);
            }
            else
            {
                comp.getAttributes().put("popupSelectDateMessage", _popupSelectDateMessage);
            }
        } 
        if (_popupTheme != null)
        {
            if (isValueReference(_popupTheme))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupTheme);
                comp.setValueBinding("popupTheme", vb);
            }
            else
            {
                comp.getAttributes().put("popupTheme", _popupTheme);
            }
        } 
        if (_popupButtonImageUrl != null)
        {
            if (isValueReference(_popupButtonImageUrl))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupButtonImageUrl);
                comp.setValueBinding("popupButtonImageUrl", vb);
            }
            else
            {
                comp.getAttributes().put("popupButtonImageUrl", _popupButtonImageUrl);
            }
        } 
        if (_helpText != null)
        {
            if (isValueReference(_helpText))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_helpText);
                comp.setValueBinding("helpText", vb);
            }
            else
            {
                comp.getAttributes().put("helpText", _helpText);
            }
        } 
        if (_popupSelectMode != null)
        {
            if (isValueReference(_popupSelectMode))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_popupSelectMode);
                comp.setValueBinding("popupSelectMode", vb);
            }
            else
            {
                comp.getAttributes().put("popupSelectMode", _popupSelectMode);
            }
        } 
        if (_javascriptLocation != null)
        {
            if (isValueReference(_javascriptLocation))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_javascriptLocation);
                comp.setValueBinding("javascriptLocation", vb);
            }
            else
            {
                comp.getAttributes().put("javascriptLocation", _javascriptLocation);
            }
        } 
        if (_imageLocation != null)
        {
            if (isValueReference(_imageLocation))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_imageLocation);
                comp.setValueBinding("imageLocation", vb);
            }
            else
            {
                comp.getAttributes().put("imageLocation", _imageLocation);
            }
        } 
        if (_styleLocation != null)
        {
            if (isValueReference(_styleLocation))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_styleLocation);
                comp.setValueBinding("styleLocation", vb);
            }
            else
            {
                comp.getAttributes().put("styleLocation", _styleLocation);
            }
        } 
    }

    public void release()
    {
        super.release();
        _monthYearRowClass = null;
        _weekRowClass = null;
        _dayCellClass = null;
        _currentDayCellClass = null;
        _popupLeft = null;
        _renderAsPopup = null;
        _addResources = null;
        _popupButtonString = null;
        _popupButtonStyle = null;
        _popupButtonStyleClass = null;
        _renderPopupButtonAsImage = null;
        _popupDateFormat = null;
        _popupGotoString = null;
        _popupTodayString = null;
        _popupTodayDateFormat = null;
        _popupWeekString = null;
        _popupScrollLeftMessage = null;
        _popupScrollRightMessage = null;
        _popupSelectMonthMessage = null;
        _popupSelectYearMessage = null;
        _popupSelectDateMessage = null;
        _popupTheme = null;
        _popupButtonImageUrl = null;
        _helpText = null;
        _popupSelectMode = null;
        _javascriptLocation = null;
        _imageLocation = null;
        _styleLocation = null;
    }
}