package br.com.bloder.blormlib.validation.validations;

import android.widget.EditText;

import br.com.bloder.blormlib.validation.Validate;
import br.com.bloder.blormlib.validation.Validation;

/**
 * Created by bloder on 05/06/16.
 */
public class Filled extends Validation {

  public EditText editText;

  @Override
  public Validate validate() {
    return new Validate() {
      @Override
      public boolean validate() {
        editText = (EditText) field;
        return !String.valueOf(editText.getText()).trim().isEmpty();
      }
    };
  }
}

@@ -534,16 +534,192 @@
 %0A      %7D
+%0A%0A      @Override%0A      public void onError() %7B%0A        editText.setError(errorMessage != null && !errorMessage.isEmpty() ? errorMessage : %22This field can't be blank%22);%0A      %7D
 %0A    %7D;%0A

Implement on error funtion in filled validation