private Component setAttribute(final TextArea<String> textField, final String attributeName, final int i) {
return textField.add(AttributeModifier.replace(attributeName, ""+i));
}
private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
final SingleIntValueFacet facet = model.getFacet(facetType);
return facet != null ? facet.value() : null;
}