{
if (!(component instanceof HtmlSelectManyListbox))
{
throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlSelectManyListbox");
}
HtmlSelectManyListbox comp = (HtmlSelectManyListbox)component;
super.setProperties(component);
if (_disabledClass != null)
{
comp.setValueExpression("disabledClass", _disabledClass);
}
if (_ondblclick != null)
{
comp.setValueExpression("ondblclick", _ondblclick);
}
if (_onkeypress != null)
{
comp.setValueExpression("onkeypress", _onkeypress);
}
if (_onmouseover != null)
{
comp.setValueExpression("onmouseover", _onmouseover);
}
if (_onselect != null)
{
comp.setValueExpression("onselect", _onselect);
}
if (_onmouseup != null)
{
comp.setValueExpression("onmouseup", _onmouseup);
}
if (_onclick != null)
{
comp.setValueExpression("onclick", _onclick);
}
if (_onfocus != null)
{
comp.setValueExpression("onfocus", _onfocus);
}
if (_dir != null)
{
comp.setValueExpression("dir", _dir);
}
if (_lang != null)
{
comp.setValueExpression("lang", _lang);
}
if (_styleClass != null)
{
comp.setValueExpression("styleClass", _styleClass);
}
if (_requiredMessage != null)
{
comp.setValueExpression("requiredMessage", _requiredMessage);
}
if (_onmousemove != null)
{
comp.setValueExpression("onmousemove", _onmousemove);
}
if (_onchange != null)
{
comp.setValueExpression("onchange", _onchange);
}
if (_immediate != null)
{
comp.setValueExpression("immediate", _immediate);
}
if (_enabledClass != null)
{
comp.setValueExpression("enabledClass", _enabledClass);
}
if (_size != null)
{
comp.setValueExpression("size", _size);
}
if (_validator != null)
{
comp.addValidator(new MethodExpressionValidator(_validator));
}
if (_onmouseout != null)
{
comp.setValueExpression("onmouseout", _onmouseout);
}
if (_onkeyup != null)
{
comp.setValueExpression("onkeyup", _onkeyup);
}
if (_onmousedown != null)
{
comp.setValueExpression("onmousedown", _onmousedown);
}
if (_tabindex != null)
{
comp.setValueExpression("tabindex", _tabindex);
}
if (_style != null)
{
comp.setValueExpression("style", _style);
}
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 (_valueChangeListener != null)
{
comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
}
if (_label != null)
{
comp.setValueExpression("label", _label);
}
if (_readonly != null)
{
comp.setValueExpression("readonly", _readonly);
}
if (_converterMessage != null)
{
comp.setValueExpression("converterMessage", _converterMessage);
}
if (_required != null)
{
comp.setValueExpression("required", _required);
}
if (_title != null)
{
comp.setValueExpression("title", _title);
}
if (_accesskey != null)
{
comp.setValueExpression("accesskey", _accesskey);
}
if (_validatorMessage != null)
{
comp.setValueExpression("validatorMessage", _validatorMessage);
}
if (_onkeydown != null)
{
comp.setValueExpression("onkeydown", _onkeydown);
}
if (_disabled != null)
{
comp.setValueExpression("disabled", _disabled);
}
if (_value != null)
{
comp.setValueExpression("value", _value);
}
if (_onblur != null)
{
comp.setValueExpression("onblur", _onblur);
}
}