public int getInt() throws NumberFormatException, NumberRangeException {
int ret = 0;
ret = Integer.parseInt(this.getText());
if (hasRange) {
if (ret < minimum) {
throw new NumberRangeException("JNumberField.getInt: Value less than minimum", NumberRangeException.ExceptionStatus.UNDER);
}
else if (ret > maximum) {
throw new NumberRangeException("JNumberField.getInt: Value greater than maximum", NumberRangeException.ExceptionStatus.OVER);
}
}
return ret;
}