{
if (!(component instanceof HtmlInputSecret))
{
throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlInputSecret");
}
HtmlInputSecret comp = (HtmlInputSecret)component;
super.setProperties(component);
if (_styleClass != null)
{
comp.setValueExpression("styleClass", _styleClass);
}
if (_immediate != null)
{
comp.setValueExpression("immediate", _immediate);
}
if (_onclick != null)
{
comp.setValueExpression("onclick", _onclick);
}
if (_alt != null)
{
comp.setValueExpression("alt", _alt);
}
if (_title != null)
{
comp.setValueExpression("title", _title);
}
if (_value != null)
{
comp.setValueExpression("value", _value);
}
if (_onmouseout != null)
{
comp.setValueExpression("onmouseout", _onmouseout);
}
if (_onselect != null)
{
comp.setValueExpression("onselect", _onselect);
}
if (_tabindex != null)
{
comp.setValueExpression("tabindex", _tabindex);
}
if (_ondblclick != null)
{
comp.setValueExpression("ondblclick", _ondblclick);
}
if (_onmouseup != null)
{
comp.setValueExpression("onmouseup", _onmouseup);
}
if (_maxlength != null)
{
comp.setValueExpression("maxlength", _maxlength);
}
if (_onmousemove != null)
{
comp.setValueExpression("onmousemove", _onmousemove);
}
if (_validatorMessage != null)
{
comp.setValueExpression("validatorMessage", _validatorMessage);
}
if (_converterMessage != null)
{
comp.setValueExpression("converterMessage", _converterMessage);
}
if (_converter != null)
{
if (!_converter.isLiteralText())
{
comp.setValueExpression("converter", _converter);
}
else
{
String s = _converter.getExpressionString();
if (s != null)
{
Converter converter = getFacesContext().getApplication().
createConverter(s);
comp.setConverter(converter);
}
}
}
if (_required != null)
{
comp.setValueExpression("required", _required);
}
if (_onchange != null)
{
comp.setValueExpression("onchange", _onchange);
}
if (_label != null)
{
comp.setValueExpression("label", _label);
}
if (_onfocus != null)
{
comp.setValueExpression("onfocus", _onfocus);
}
if (_onmouseover != null)
{
comp.setValueExpression("onmouseover", _onmouseover);
}
if (_dir != null)
{
comp.setValueExpression("dir", _dir);
}
if (_readonly != null)
{
comp.setValueExpression("readonly", _readonly);
}
if (_lang != null)
{
comp.setValueExpression("lang", _lang);
}
if (_validator != null)
{
comp.addValidator(new MethodExpressionValidator(_validator));
}
if (_requiredMessage != null)
{
comp.setValueExpression("requiredMessage", _requiredMessage);
}
if (_autocomplete != null)
{
comp.setValueExpression("autocomplete", _autocomplete);
}
if (_size != null)
{
comp.setValueExpression("size", _size);
}
if (_accesskey != null)
{
comp.setValueExpression("accesskey", _accesskey);
}
if (_onmousedown != null)
{
comp.setValueExpression("onmousedown", _onmousedown);
}
if (_valueChangeListener != null)
{
comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
}
if (_redisplay != null)
{
comp.setValueExpression("redisplay", _redisplay);
}
if (_style != null)
{
comp.setValueExpression("style", _style);
}
if (_onkeyup != null)
{
comp.setValueExpression("onkeyup", _onkeyup);
}
if (_onkeydown != null)
{
comp.setValueExpression("onkeydown", _onkeydown);
}
if (_onblur != null)
{
comp.setValueExpression("onblur", _onblur);
}
if (_onkeypress != null)
{
comp.setValueExpression("onkeypress", _onkeypress);
}
if (_disabled != null)
{
comp.setValueExpression("disabled", _disabled);
}
}