}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UIImage component = (UIImage) uiComponent;
final FacesContext context = FacesContext.getCurrentInstance();
final Application application = context.getApplication();
if (markup != null) {
if (!markup.isLiteralText()) {
component.setValueExpression("markup", markup);
} else {
component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
}
}
if (tip != null) {
component.setValueExpression("tip", tip);
}
if (height != null) {
if (!height.isLiteralText()) {
component.setValueExpression("height", height);
} else {
component.setHeight(org.apache.myfaces.tobago.layout.Measure.valueOf(height.getExpressionString()));
}
}
if (alt != null) {
component.setValueExpression("alt", alt);
}
if (value != null) {
component.setValueExpression("value", value);
}
if (border != null) {
component.setValueExpression("border", border);
}
if (width != null) {
if (!width.isLiteralText()) {
component.setValueExpression("width", width);
} else {
component.setWidth(org.apache.myfaces.tobago.layout.Measure.valueOf(width.getExpressionString()));
}
}
if (disabled != null) {
if (!disabled.isLiteralText()) {
component.setValueExpression("disabled", disabled);
} else {
component.setDisabled(Boolean.parseBoolean(disabled.getExpressionString()));
}
}
}