}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UIFlowLayout component = (UIFlowLayout) uiComponent;
final FacesContext context = FacesContext.getCurrentInstance();
final Application application = context.getApplication();
if (marginBottom != null) {
if (!marginBottom.isLiteralText()) {
component.setValueExpression("marginBottom", marginBottom);
} else {
component.setMarginBottom(org.apache.myfaces.tobago.layout.Measure.valueOf(marginBottom.getExpressionString()));
}
}
if (markup != null) {
if (!markup.isLiteralText()) {
component.setValueExpression("markup", markup);
} else {
component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
}
}
if (marginTop != null) {
if (!marginTop.isLiteralText()) {
component.setValueExpression("marginTop", marginTop);
} else {
component.setMarginTop(org.apache.myfaces.tobago.layout.Measure.valueOf(marginTop.getExpressionString()));
}
}
if (marginLeft != null) {
if (!marginLeft.isLiteralText()) {
component.setValueExpression("marginLeft", marginLeft);
} else {
component.setMarginLeft(org.apache.myfaces.tobago.layout.Measure.valueOf(marginLeft.getExpressionString()));
}
}
if (marginRight != null) {
if (!marginRight.isLiteralText()) {
component.setValueExpression("marginRight", marginRight);
} else {
component.setMarginRight(org.apache.myfaces.tobago.layout.Measure.valueOf(marginRight.getExpressionString()));
}
}
if (textAlign != null) {
if (!textAlign.isLiteralText()) {
component.setValueExpression("textAlign", textAlign);
} else {
component.setTextAlign(org.apache.myfaces.tobago.layout.TextAlign.parse(textAlign.getExpressionString()));
}
}
if (margin != null) {
if (!margin.isLiteralText()) {
component.setValueExpression("margin", margin);
} else {
component.setMargin(org.apache.myfaces.tobago.layout.Measure.valueOf(margin.getExpressionString()));
}
}
}