public boolean validateRange(String fieldName, Integer min, Integer max)
{
String value = textBox_.getValue().trim();
if (!value.matches("^\\d+$"))
{
fireEvent(new EnsureVisibleEvent());
textBox_.getElement().focus();
RStudioGinjector.INSTANCE.getGlobalDisplay().showErrorMessage(
"Error",
fieldName + " must be a valid number.");
return false;