*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlPaint2D comp = (HtmlPaint2D) component;
if (this._align != null) {
if (this._align.isLiteralText()) {
try {
java.lang.String __align = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._align.getExpressionString(),
java.lang.String.class);
comp.setAlign(__align);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("align", this._align);
}
}
if (this._alt != null) {
if (this._alt.isLiteralText()) {
try {
java.lang.String __alt = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._alt.getExpressionString(),
java.lang.String.class);
comp.setAlt(__alt);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("alt", this._alt);
}
}
if (this._bgcolor != null) {
if (this._bgcolor.isLiteralText()) {
try {
java.lang.String __bgcolor = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._bgcolor.getExpressionString(),
java.lang.String.class);
comp.setBgcolor(__bgcolor);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("bgcolor", this._bgcolor);
}
}
if (this._border != null) {
if (this._border.isLiteralText()) {
try {
java.lang.String __border = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._border.getExpressionString(),
java.lang.String.class);
comp.setBorder(__border);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("border", this._border);
}
}
if (this._cacheable != null) {
if (this._cacheable.isLiteralText()) {
try {
Boolean __cacheable = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._cacheable.getExpressionString(),
Boolean.class);
comp.setCacheable(__cacheable.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("cacheable", this._cacheable);
}
}
if (this._data != null) {
if (this._data.isLiteralText()) {
try {
java.lang.Object __data = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._data.getExpressionString(),
java.lang.Object.class);
comp.setData(__data);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("data", this._data);
}
}
if (this._format != null) {
if (this._format.isLiteralText()) {
try {
java.lang.String __format = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._format.getExpressionString(),
java.lang.String.class);
comp.setFormat(__format);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("format", this._format);
}
}
if (this._height != null) {
if (this._height.isLiteralText()) {
try {
Integer __height = (Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._height.getExpressionString(),
Integer.class);
comp.setHeight(__height.intValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("height", this._height);
}
}
if (this._hspace != null) {
if (this._hspace.isLiteralText()) {
try {
java.lang.String __hspace = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._hspace.getExpressionString(),
java.lang.String.class);
comp.setHspace(__hspace);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("hspace", this._hspace);
}
}
if(null != this._paint){
if (!this._paint.isLiteralText())
{
MethodBinding mb = new MethodBindingMethodExpressionAdaptor(this._paint);
((HtmlPaint2D)component).setPaint(mb);
}
else
{
getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid paint value: " + this._paint);
}
}
if (this._value != null) {
if (this._value.isLiteralText()) {
try {
java.lang.Object __value = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._value.getExpressionString(),
java.lang.Object.class);
comp.setValue(__value);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("value", this._value);
}
}
if (this._vspace != null) {
if (this._vspace.isLiteralText()) {
try {
java.lang.String __vspace = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._vspace.getExpressionString(),
java.lang.String.class);
comp.setVspace(__vspace);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("vspace", this._vspace);
}
}
if (this._width != null) {
if (this._width.isLiteralText()) {
try {
Integer __width = (Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._width.getExpressionString(),
Integer.class);
comp.setWidth(__width.intValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("width", this._width);