class NumericIntegerTextBox extends AbstractRestrictedEntryTextBox {

    @Override
    public boolean isValidValue(final String value,
                                final boolean isOnFocusLost) {
        boolean isValid = VALID.test(value);
        if (!isValid) {
            return isValid;
        }
        if (!isOnFocusLost && "-".equals(value)) {
            return true;
        }
        try {
            Integer.parseInt(value);
        } catch (NumberFormatException nfe) {
            isValid = ("".equals(value) && allowEmptyValue);
        }
        return isValid;
    }

    public  NumericIntegerTextBox();
    public  NumericIntegerTextBox(final boolean allowEmptyValue);

}