}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UINumberSlider component = (UINumberSlider) 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 (valueChangeListener != null) {
component.addValueChangeListener(new javax.faces.event.MethodExpressionValueChangeListener(valueChangeListener));
}
if (value != null) {
component.setValueExpression("value", value);
}
if (min != null) {
if (!min.isLiteralText()) {
component.setValueExpression("min", min);
} else {
component.setMin(Integer.parseInt(min.getExpressionString()));
}
}
if (max != null) {
if (!max.isLiteralText()) {
component.setValueExpression("max", max);
} else {
component.setMax(Integer.parseInt(max.getExpressionString()));
}
}
if (readonly != null) {
if (!readonly.isLiteralText()) {
component.setValueExpression("readonly", readonly);
} else {
component.setReadonly(Boolean.parseBoolean(readonly.getExpressionString()));
}
}
if (disabled != null) {
if (!disabled.isLiteralText()) {
component.setValueExpression("disabled", disabled);
} else {
component.setDisabled(Boolean.parseBoolean(disabled.getExpressionString()));
}
}
}