// //////////////////////////////////////////////////////////////////
@Override
protected Percentage doParse(final Object context, final String text) {
try {
return new Percentage(new Float(format.parse(text).floatValue()));
} catch (final ParseException e) {
try {
return new Percentage(asFloat(text));
} catch (final ParseException ee) {
throw new TextEntryParseException("Not a number " + text, ee);
}
}
}