public class FloatValidator
extends java.lang.Object
Constructor and Description |
---|
FloatValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isNumber(java.lang.String value) |
java.lang.String |
isValid(java.lang.String newText) |
float |
parseValue(java.lang.String value) |
public java.lang.String isValid(java.lang.String newText)
newText
- The text to be processednull
if the given text is a US-locale formatted number,
or the text of the parse exception.org.eclipse.jface.dialogs.IInputValidator#isValid(java.lang.String)
public float parseValue(java.lang.String value)
value
- The value to be parsedpublic static boolean isNumber(java.lang.String value)
value
- The value to be parsedtrue
if the string is a valid US-style number,
false
otherwise.