Package gaiasky.util.validator
Class CallbackValidator
- java.lang.Object
-
- gaiasky.util.validator.CallbackValidator
-
- All Implemented Interfaces:
IValidator
- Direct Known Subclasses:
DoubleValidator
,ExistingLocationValidator
,FloatValidator
,FolderValidator
,IntValidator
,LengthValidator
,RegexpValidator
,TextFieldComparatorValidator
public abstract class CallbackValidator extends java.lang.Object implements IValidator
-
-
Constructor Summary
Constructors Constructor Description CallbackValidator()
CallbackValidator(IValidator parent)
CallbackValidator(java.lang.Runnable correctCallback, java.lang.Runnable incorrectCallback)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IValidator
getParent()
protected void
runIsInvalidCallback()
protected void
runIsValidCallback()
void
setIsInvalidCallback(java.lang.Runnable isInvalidCallback)
void
setIsValidCallback(java.lang.Runnable isValidCallback)
boolean
validate(java.lang.String value)
protected abstract boolean
validateLocal(java.lang.String value)
-
-
-
Constructor Detail
-
CallbackValidator
public CallbackValidator()
-
CallbackValidator
public CallbackValidator(IValidator parent)
-
CallbackValidator
public CallbackValidator(java.lang.Runnable correctCallback, java.lang.Runnable incorrectCallback)
-
-
Method Detail
-
setIsValidCallback
public void setIsValidCallback(java.lang.Runnable isValidCallback)
-
setIsInvalidCallback
public void setIsInvalidCallback(java.lang.Runnable isInvalidCallback)
-
runIsValidCallback
protected void runIsValidCallback()
-
runIsInvalidCallback
protected void runIsInvalidCallback()
-
getParent
public IValidator getParent()
-
validate
public boolean validate(java.lang.String value)
- Specified by:
validate
in interfaceIValidator
-
validateLocal
protected abstract boolean validateLocal(java.lang.String value)
-
-