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

import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.el.MethodBinding;


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

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

 
    private String _fallback;
    
    public void setFallback(String fallback)
    {
        _fallback = fallback;
    }
 
    private String _type;
    
    public void setType(String type)
    {
        _type = type;
    }
 
    private String _allowEditSource;
    
    public void setAllowEditSource(String allowEditSource)
    {
        _allowEditSource = allowEditSource;
    }
 
    private String _allowExternalLinks;
    
    public void setAllowExternalLinks(String allowExternalLinks)
    {
        _allowExternalLinks = allowExternalLinks;
    }
 
    private String _addKupuLogo;
    
    public void setAddKupuLogo(String addKupuLogo)
    {
        _addKupuLogo = addKupuLogo;
    }
 
    private String _showAllToolBoxes;
    
    public void setShowAllToolBoxes(String showAllToolBoxes)
    {
        _showAllToolBoxes = showAllToolBoxes;
    }
 
    private String _showPropertiesToolBox;
    
    public void setShowPropertiesToolBox(String showPropertiesToolBox)
    {
        _showPropertiesToolBox = showPropertiesToolBox;
    }
 
    private String _showLinksToolBox;
    
    public void setShowLinksToolBox(String showLinksToolBox)
    {
        _showLinksToolBox = showLinksToolBox;
    }
 
    private String _showImagesToolBox;
    
    public void setShowImagesToolBox(String showImagesToolBox)
    {
        _showImagesToolBox = showImagesToolBox;
    }
 
    private String _showTablesToolBox;
    
    public void setShowTablesToolBox(String showTablesToolBox)
    {
        _showTablesToolBox = showTablesToolBox;
    }
 
    private String _showCleanupExpressionsToolBox;
    
    public void setShowCleanupExpressionsToolBox(String showCleanupExpressionsToolBox)
    {
        _showCleanupExpressionsToolBox = showCleanupExpressionsToolBox;
    }
 
    private String _showDebugToolBox;
    
    public void setShowDebugToolBox(String showDebugToolBox)
    {
        _showDebugToolBox = showDebugToolBox;
    }

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

        if (_fallback != null)
        {
            if (isValueReference(_fallback))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_fallback);
                comp.setValueBinding("fallback", vb);
            }
            else
            {
                comp.getAttributes().put("fallback", _fallback);
            }
        } 
        if (_type != null)
        {
            if (isValueReference(_type))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_type);
                comp.setValueBinding("type", vb);
            }
            else
            {
                comp.getAttributes().put("type", _type);
            }
        } 
        if (_allowEditSource != null)
        {
            if (isValueReference(_allowEditSource))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_allowEditSource);
                comp.setValueBinding("allowEditSource", vb);
            }
            else
            {
                comp.getAttributes().put("allowEditSource", Boolean.valueOf(_allowEditSource));
            }
        } 
        if (_allowExternalLinks != null)
        {
            if (isValueReference(_allowExternalLinks))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_allowExternalLinks);
                comp.setValueBinding("allowExternalLinks", vb);
            }
            else
            {
                comp.getAttributes().put("allowExternalLinks", Boolean.valueOf(_allowExternalLinks));
            }
        } 
        if (_addKupuLogo != null)
        {
            if (isValueReference(_addKupuLogo))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_addKupuLogo);
                comp.setValueBinding("addKupuLogo", vb);
            }
            else
            {
                comp.getAttributes().put("addKupuLogo", Boolean.valueOf(_addKupuLogo));
            }
        } 
        if (_showAllToolBoxes != null)
        {
            if (isValueReference(_showAllToolBoxes))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showAllToolBoxes);
                comp.setValueBinding("showAllToolBoxes", vb);
            }
            else
            {
                comp.getAttributes().put("showAllToolBoxes", Boolean.valueOf(_showAllToolBoxes));
            }
        } 
        if (_showPropertiesToolBox != null)
        {
            if (isValueReference(_showPropertiesToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showPropertiesToolBox);
                comp.setValueBinding("showPropertiesToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showPropertiesToolBox", Boolean.valueOf(_showPropertiesToolBox));
            }
        } 
        if (_showLinksToolBox != null)
        {
            if (isValueReference(_showLinksToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showLinksToolBox);
                comp.setValueBinding("showLinksToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showLinksToolBox", Boolean.valueOf(_showLinksToolBox));
            }
        } 
        if (_showImagesToolBox != null)
        {
            if (isValueReference(_showImagesToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showImagesToolBox);
                comp.setValueBinding("showImagesToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showImagesToolBox", Boolean.valueOf(_showImagesToolBox));
            }
        } 
        if (_showTablesToolBox != null)
        {
            if (isValueReference(_showTablesToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showTablesToolBox);
                comp.setValueBinding("showTablesToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showTablesToolBox", Boolean.valueOf(_showTablesToolBox));
            }
        } 
        if (_showCleanupExpressionsToolBox != null)
        {
            if (isValueReference(_showCleanupExpressionsToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showCleanupExpressionsToolBox);
                comp.setValueBinding("showCleanupExpressionsToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showCleanupExpressionsToolBox", Boolean.valueOf(_showCleanupExpressionsToolBox));
            }
        } 
        if (_showDebugToolBox != null)
        {
            if (isValueReference(_showDebugToolBox))
            {
                ValueBinding vb = context.getApplication().createValueBinding(_showDebugToolBox);
                comp.setValueBinding("showDebugToolBox", vb);
            }
            else
            {
                comp.getAttributes().put("showDebugToolBox", Boolean.valueOf(_showDebugToolBox));
            }
        } 
    }

    public void release()
    {
        super.release();
        _fallback = null;
        _type = null;
        _allowEditSource = null;
        _allowExternalLinks = null;
        _addKupuLogo = null;
        _showAllToolBoxes = null;
        _showPropertiesToolBox = null;
        _showLinksToolBox = null;
        _showImagesToolBox = null;
        _showTablesToolBox = null;
        _showCleanupExpressionsToolBox = null;
        _showDebugToolBox = null;
    }
}