// 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;
import javax.faces.convert.Converter;
import javax.faces.el.MethodBinding;
// Generated from class javax.faces.component.html._HtmlSelectOneRadio.
//
// WARNING: This file was automatically generated. Do not edit it directly,
// or you will lose your changes.
public class HtmlSelectOneRadioTag
extends javax.faces.webapp.UIComponentTag
{
public HtmlSelectOneRadioTag()
{
}
public String getComponentType()
{
return "javax.faces.HtmlSelectOneRadio";
}
public String getRendererType()
{
return "javax.faces.Radio";
}
private String _border;
public void setBorder(String border)
{
_border = border;
}
private String _layout;
public void setLayout(String layout)
{
_layout = layout;
}
private String _onchange;
public void setOnchange(String onchange)
{
_onchange = onchange;
}
private String _onselect;
public void setOnselect(String onselect)
{
_onselect = onselect;
}
private String _disabled;
public void setDisabled(String disabled)
{
_disabled = disabled;
}
private String _readonly;
public void setReadonly(String readonly)
{
_readonly = readonly;
}
private String _style;
public void setStyle(String style)
{
_style = style;
}
private String _styleClass;
public void setStyleClass(String styleClass)
{
_styleClass = styleClass;
}
private String _accesskey;
public void setAccesskey(String accesskey)
{
_accesskey = accesskey;
}
private String _tabindex;
public void setTabindex(String tabindex)
{
_tabindex = tabindex;
}
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 _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 _disabledClass;
public void setDisabledClass(String disabledClass)
{
_disabledClass = disabledClass;
}
private String _enabledClass;
public void setEnabledClass(String enabledClass)
{
_enabledClass = enabledClass;
}
private String _onblur;
public void setOnblur(String onblur)
{
_onblur = onblur;
}
private String _onfocus;
public void setOnfocus(String onfocus)
{
_onfocus = onfocus;
}
private String _validator;
public void setValidator(String validator)
{
_validator = validator;
}
private String _valueChangeListener;
public void setValueChangeListener(String valueChangeListener)
{
_valueChangeListener = valueChangeListener;
}
private String _immediate;
public void setImmediate(String immediate)
{
_immediate = immediate;
}
private String _required;
public void setRequired(String required)
{
_required = required;
}
private String _converter;
public void setConverter(String converter)
{
_converter = converter;
}
private String _value;
public void setValue(String value)
{
_value = value;
}
protected void setProperties(UIComponent component)
{
if (!(component instanceof javax.faces.component.html.HtmlSelectOneRadio))
{
throw new IllegalArgumentException("Component "+
component.getClass().getName() +" is no javax.faces.component.html.HtmlSelectOneRadio");
}
javax.faces.component.html.HtmlSelectOneRadio comp = (javax.faces.component.html.HtmlSelectOneRadio) component;
super.setProperties(component);
FacesContext context = getFacesContext();
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 (_layout != null)
{
if (isValueReference(_layout))
{
ValueBinding vb = context.getApplication().createValueBinding(_layout);
comp.setValueBinding("layout", vb);
}
else
{
comp.getAttributes().put("layout", _layout);
}
}
if (_onchange != null)
{
if (isValueReference(_onchange))
{
ValueBinding vb = context.getApplication().createValueBinding(_onchange);
comp.setValueBinding("onchange", vb);
}
else
{
comp.getAttributes().put("onchange", _onchange);
}
}
if (_onselect != null)
{
if (isValueReference(_onselect))
{
ValueBinding vb = context.getApplication().createValueBinding(_onselect);
comp.setValueBinding("onselect", vb);
}
else
{
comp.getAttributes().put("onselect", _onselect);
}
}
if (_disabled != null)
{
if (isValueReference(_disabled))
{
ValueBinding vb = context.getApplication().createValueBinding(_disabled);
comp.setValueBinding("disabled", vb);
}
else
{
comp.getAttributes().put("disabled", Boolean.valueOf(_disabled));
}
}
if (_readonly != null)
{
if (isValueReference(_readonly))
{
ValueBinding vb = context.getApplication().createValueBinding(_readonly);
comp.setValueBinding("readonly", vb);
}
else
{
comp.getAttributes().put("readonly", Boolean.valueOf(_readonly));
}
}
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 (_accesskey != null)
{
if (isValueReference(_accesskey))
{
ValueBinding vb = context.getApplication().createValueBinding(_accesskey);
comp.setValueBinding("accesskey", vb);
}
else
{
comp.getAttributes().put("accesskey", _accesskey);
}
}
if (_tabindex != null)
{
if (isValueReference(_tabindex))
{
ValueBinding vb = context.getApplication().createValueBinding(_tabindex);
comp.setValueBinding("tabindex", vb);
}
else
{
comp.getAttributes().put("tabindex", _tabindex);
}
}
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 (_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 (_disabledClass != null)
{
if (isValueReference(_disabledClass))
{
ValueBinding vb = context.getApplication().createValueBinding(_disabledClass);
comp.setValueBinding("disabledClass", vb);
}
else
{
comp.getAttributes().put("disabledClass", _disabledClass);
}
}
if (_enabledClass != null)
{
if (isValueReference(_enabledClass))
{
ValueBinding vb = context.getApplication().createValueBinding(_enabledClass);
comp.setValueBinding("enabledClass", vb);
}
else
{
comp.getAttributes().put("enabledClass", _enabledClass);
}
}
if (_onblur != null)
{
if (isValueReference(_onblur))
{
ValueBinding vb = context.getApplication().createValueBinding(_onblur);
comp.setValueBinding("onblur", vb);
}
else
{
comp.getAttributes().put("onblur", _onblur);
}
}
if (_onfocus != null)
{
if (isValueReference(_onfocus))
{
ValueBinding vb = context.getApplication().createValueBinding(_onfocus);
comp.setValueBinding("onfocus", vb);
}
else
{
comp.getAttributes().put("onfocus", _onfocus);
}
}
if (_validator != null)
{
MethodBinding mb = context.getApplication().createMethodBinding(
_validator, new Class[]{javax.faces.context.FacesContext.class,javax.faces.component.UIComponent.class,java.lang.Object.class,});
comp.setValidator(mb);
}
if (_valueChangeListener != null)
{
MethodBinding mb = context.getApplication().createMethodBinding(
_valueChangeListener, new Class[]{javax.faces.event.ValueChangeEvent.class,});
comp.setValueChangeListener(mb);
}
if (_immediate != null)
{
if (isValueReference(_immediate))
{
ValueBinding vb = context.getApplication().createValueBinding(_immediate);
comp.setValueBinding("immediate", vb);
}
else
{
comp.getAttributes().put("immediate", Boolean.valueOf(_immediate));
}
}
if (_required != null)
{
if (isValueReference(_required))
{
ValueBinding vb = context.getApplication().createValueBinding(_required);
comp.setValueBinding("required", vb);
}
else
{
comp.getAttributes().put("required", Boolean.valueOf(_required));
}
}
if (_converter != null)
{
if (isValueReference(_converter))
{
ValueBinding vb = context.getApplication().createValueBinding(_converter);
comp.setValueBinding("converter", vb);
}
else
{
Converter converter = getFacesContext().getApplication().createConverter(_converter);
comp.setConverter(converter);
}
}
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();
_border = null;
_layout = null;
_onchange = null;
_onselect = null;
_disabled = null;
_readonly = null;
_style = null;
_styleClass = null;
_accesskey = null;
_tabindex = null;
_dir = null;
_lang = null;
_title = null;
_onclick = null;
_ondblclick = null;
_onkeydown = null;
_onkeypress = null;
_onkeyup = null;
_onmousedown = null;
_onmousemove = null;
_onmouseout = null;
_onmouseover = null;
_onmouseup = null;
_disabledClass = null;
_enabledClass = null;
_onblur = null;
_onfocus = null;
_validator = null;
_valueChangeListener = null;
_immediate = null;
_required = null;
_converter = null;
_value = null;
}
}