Class CallbackValidator

java.lang.Object
gaiasky.util.validator.CallbackValidator
All Implemented Interfaces:
IValidator
Direct Known Subclasses:
DirectoryNameValidator, DoubleValidator, ExistingLocationValidator, FloatValidator, FolderValidator, IntValidator, LengthValidator, LongValidator, RegexpValidator, TextFieldComparatorValidator

public abstract class CallbackValidator extends Object implements IValidator
  • Constructor Details

    • CallbackValidator

      public CallbackValidator()
    • CallbackValidator

      public CallbackValidator(IValidator parent)
    • CallbackValidator

      public CallbackValidator(Runnable correctCallback, Runnable incorrectCallback)
  • Method Details

    • setIsValidCallback

      public void setIsValidCallback(Runnable isValidCallback)
    • setIsInvalidCallback

      public void setIsInvalidCallback(Runnable isInvalidCallback)
    • runIsValidCallback

      protected void runIsValidCallback()
    • runIsInvalidCallback

      protected void runIsInvalidCallback()
    • getParent

      public IValidator getParent()
    • validate

      public boolean validate(String value)
      Specified by:
      validate in interface IValidator
    • validateLocal

      protected abstract boolean validateLocal(String value)