}
protected void setProperties(UIComponent component) {
super.setProperties(component);
AreaComponent area = (AreaComponent) component;
if (alt != null) {
if (!alt.isLiteralText()) {
area.setValueExpression("alt", alt);
} else {
area.setAlt(alt.getExpressionString());
}
}
if (coords != null) {
if (!coords.isLiteralText()) {
area.setValueExpression("coords", coords);
} else {
area.setCoords(coords.getExpressionString());
}
}
if (onmouseout != null) {
if (!onmouseout.isLiteralText()) {
area.setValueExpression("onmouseout", onmouseout);
} else {
area.getAttributes()
.put(
"onmouseout",
onmouseout.getExpressionString());
}
}
if (onmouseover != null) {
if (!onmouseover.isLiteralText()) {
area.setValueExpression("onmouseover", onmouseover);
} else {
area.getAttributes()
.put(
"onmouseover",
onmouseover.getExpressionString());
}
}
if (shape != null) {
if (!shape.isLiteralText()) {
area.setValueExpression("shape", shape);
} else {
area.setShape(shape.getExpressionString());
}
}
if (styleClass != null) {
if (!styleClass.isLiteralText()) {
area.setValueExpression("styleClass", styleClass);
} else {
area.getAttributes()
.put(
"styleClass",
styleClass.getExpressionString());
}
}
if (area instanceof ValueHolder) {
ValueHolder valueHolder = (ValueHolder) component;
if (value != null) {
if (!value.isLiteralText()) {
area.setValueExpression("value", value);
} else {
valueHolder.setValue(value.getExpressionString());
}
}
}
// target image is required
area.setValueExpression("targetImage", targetImage);
}