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 Details

    • CallbackValidator

      public CallbackValidator()
    • CallbackValidator

      public CallbackValidator​(IValidator parent)
    • 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

      public IValidator getParent()
    • validate

      public boolean validate​(java.lang.String value)
      Specified by:
      validate in interface IValidator
    • validateLocal

      protected abstract boolean validateLocal​(java.lang.String value)