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
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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CallbackValidator
public CallbackValidator() -
CallbackValidator
-
CallbackValidator
public CallbackValidator(java.lang.Runnable correctCallback, java.lang.Runnable incorrectCallback)
-
-
Method Details
-
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
-
validate
public boolean validate(java.lang.String value)- Specified by:
validate
in interfaceIValidator
-
validateLocal
protected abstract boolean validateLocal(java.lang.String value)
-