Package gaiasky.util.validator
Class TextFieldComparatorValidator
- java.lang.Object
-
- gaiasky.util.validator.CallbackValidator
-
- gaiasky.util.validator.TextFieldComparatorValidator
-
- All Implemented Interfaces:
IValidator
public class TextFieldComparatorValidator extends CallbackValidator
A validator that compares the current value to the value of the given text fields (lessThan and greaterThan). It assumes all values are floats.
-
-
Constructor Summary
Constructors Constructor Description TextFieldComparatorValidator(IValidator parent, OwnTextField[] lessThan, OwnTextField[] greaterThan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
validateLocal(java.lang.String value)
-
Methods inherited from class gaiasky.util.validator.CallbackValidator
getParent, runIsInvalidCallback, runIsValidCallback, setIsInvalidCallback, setIsValidCallback, validate
-
-
-
-
Constructor Detail
-
TextFieldComparatorValidator
public TextFieldComparatorValidator(IValidator parent, OwnTextField[] lessThan, OwnTextField[] greaterThan)
-
-
Method Detail
-
validateLocal
protected boolean validateLocal(java.lang.String value)
- Specified by:
validateLocal
in classCallbackValidator
-
-