/*
 *  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.picklist;

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.picklist.AbstractHtmlSelectManyPicklist.
//
// WARNING: This file was automatically generated. Do not edit it directly,
//          or you will lose your changes.
public class HtmlSelectManyPicklist extends org.apache.myfaces.custom.picklist.AbstractHtmlSelectManyPicklist
{

    static public final String COMPONENT_FAMILY =
        "javax.faces.SelectMany";
    static public final String COMPONENT_TYPE =
        "org.apache.myfaces.HtmlSelectManyPicklist";
    static public final String DEFAULT_RENDERER_TYPE = 
        "org.apache.myfaces.PicklistRenderer";


    public HtmlSelectManyPicklist()
    {
        setRendererType("org.apache.myfaces.PicklistRenderer");
    }

    public String getFamily()
    {
        return COMPONENT_FAMILY;
    }
    

    // Property: addButtonText
    private String _addButtonText;
    
    public String getAddButtonText()
    {
        if (_addButtonText != null)
        {
            return _addButtonText;
        }
        ValueBinding vb = getValueBinding("addButtonText");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddButtonText(String addButtonText)
    {
        this._addButtonText = addButtonText;
    }
    // Property: addAllButtonText
    private String _addAllButtonText;
    
    public String getAddAllButtonText()
    {
        if (_addAllButtonText != null)
        {
            return _addAllButtonText;
        }
        ValueBinding vb = getValueBinding("addAllButtonText");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddAllButtonText(String addAllButtonText)
    {
        this._addAllButtonText = addAllButtonText;
    }
    // Property: removeButtonText
    private String _removeButtonText;
    
    public String getRemoveButtonText()
    {
        if (_removeButtonText != null)
        {
            return _removeButtonText;
        }
        ValueBinding vb = getValueBinding("removeButtonText");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveButtonText(String removeButtonText)
    {
        this._removeButtonText = removeButtonText;
    }
    // Property: removeAllButtonText
    private String _removeAllButtonText;
    
    public String getRemoveAllButtonText()
    {
        if (_removeAllButtonText != null)
        {
            return _removeAllButtonText;
        }
        ValueBinding vb = getValueBinding("removeAllButtonText");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveAllButtonText(String removeAllButtonText)
    {
        this._removeAllButtonText = removeAllButtonText;
    }
    // Property: addButtonStyle
    private String _addButtonStyle;
    
    public String getAddButtonStyle()
    {
        if (_addButtonStyle != null)
        {
            return _addButtonStyle;
        }
        ValueBinding vb = getValueBinding("addButtonStyle");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddButtonStyle(String addButtonStyle)
    {
        this._addButtonStyle = addButtonStyle;
    }
    // Property: addAllButtonStyle
    private String _addAllButtonStyle;
    
    public String getAddAllButtonStyle()
    {
        if (_addAllButtonStyle != null)
        {
            return _addAllButtonStyle;
        }
        ValueBinding vb = getValueBinding("addAllButtonStyle");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddAllButtonStyle(String addAllButtonStyle)
    {
        this._addAllButtonStyle = addAllButtonStyle;
    }
    // Property: removeButtonStyle
    private String _removeButtonStyle;
    
    public String getRemoveButtonStyle()
    {
        if (_removeButtonStyle != null)
        {
            return _removeButtonStyle;
        }
        ValueBinding vb = getValueBinding("removeButtonStyle");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveButtonStyle(String removeButtonStyle)
    {
        this._removeButtonStyle = removeButtonStyle;
    }
    // Property: removeAllButtonStyle
    private String _removeAllButtonStyle;
    
    public String getRemoveAllButtonStyle()
    {
        if (_removeAllButtonStyle != null)
        {
            return _removeAllButtonStyle;
        }
        ValueBinding vb = getValueBinding("removeAllButtonStyle");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveAllButtonStyle(String removeAllButtonStyle)
    {
        this._removeAllButtonStyle = removeAllButtonStyle;
    }
    // Property: addButtonStyleClass
    private String _addButtonStyleClass;
    
    public String getAddButtonStyleClass()
    {
        if (_addButtonStyleClass != null)
        {
            return _addButtonStyleClass;
        }
        ValueBinding vb = getValueBinding("addButtonStyleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddButtonStyleClass(String addButtonStyleClass)
    {
        this._addButtonStyleClass = addButtonStyleClass;
    }
    // Property: addAllButtonStyleClass
    private String _addAllButtonStyleClass;
    
    public String getAddAllButtonStyleClass()
    {
        if (_addAllButtonStyleClass != null)
        {
            return _addAllButtonStyleClass;
        }
        ValueBinding vb = getValueBinding("addAllButtonStyleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setAddAllButtonStyleClass(String addAllButtonStyleClass)
    {
        this._addAllButtonStyleClass = addAllButtonStyleClass;
    }
    // Property: removeButtonStyleClass
    private String _removeButtonStyleClass;
    
    public String getRemoveButtonStyleClass()
    {
        if (_removeButtonStyleClass != null)
        {
            return _removeButtonStyleClass;
        }
        ValueBinding vb = getValueBinding("removeButtonStyleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveButtonStyleClass(String removeButtonStyleClass)
    {
        this._removeButtonStyleClass = removeButtonStyleClass;
    }
    // Property: removeAllButtonStyleClass
    private String _removeAllButtonStyleClass;
    
    public String getRemoveAllButtonStyleClass()
    {
        if (_removeAllButtonStyleClass != null)
        {
            return _removeAllButtonStyleClass;
        }
        ValueBinding vb = getValueBinding("removeAllButtonStyleClass");
        if (vb != null)
        {
            Object value = vb.getValue(getFacesContext());
            if (value == null)
            {
                return null;
            }
            else
            {
                return (String) value.toString();
            }
        }
        return null;
    }

    public void setRemoveAllButtonStyleClass(String removeAllButtonStyleClass)
    {
        this._removeAllButtonStyleClass = removeAllButtonStyleClass;
    }

    public Object saveState(FacesContext facesContext)
    {
        Object[] values = new Object[13];
        values[0] = super.saveState(facesContext);
        values[1] = _addButtonText;
        values[2] = _addAllButtonText;
        values[3] = _removeButtonText;
        values[4] = _removeAllButtonText;
        values[5] = _addButtonStyle;
        values[6] = _addAllButtonStyle;
        values[7] = _removeButtonStyle;
        values[8] = _removeAllButtonStyle;
        values[9] = _addButtonStyleClass;
        values[10] = _addAllButtonStyleClass;
        values[11] = _removeButtonStyleClass;
        values[12] = _removeAllButtonStyleClass;
        return values; 
    }

    public void restoreState(FacesContext facesContext, Object state)
    {
        Object[] values = (Object[])state;
        super.restoreState(facesContext,values[0]);
        _addButtonText = (java.lang.String) values[1];
        _addAllButtonText = (java.lang.String) values[2];
        _removeButtonText = (java.lang.String) values[3];
        _removeAllButtonText = (java.lang.String) values[4];
        _addButtonStyle = (java.lang.String) values[5];
        _addAllButtonStyle = (java.lang.String) values[6];
        _removeButtonStyle = (java.lang.String) values[7];
        _removeAllButtonStyle = (java.lang.String) values[8];
        _addButtonStyleClass = (java.lang.String) values[9];
        _addAllButtonStyleClass = (java.lang.String) values[10];
        _removeButtonStyleClass = (java.lang.String) values[11];
        _removeAllButtonStyleClass = (java.lang.String) values[12];
    }
}
