use of com.mobsandgeeks.saripaar.Validator in project android-saripaar by ragunathjawahar.
the class UnorderedValidateBeforeActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_un_ordered_validate_till_before);
// UI References
mNameEditText = (EditText) findViewById(R.id.nameEditText);
mAddressEditText = (EditText) findViewById(R.id.addressEditText);
mEmailEditText = (EditText) findViewById(R.id.emailEditText);
mPhoneEditText = (EditText) findViewById(R.id.phoneEditText);
mResultTextView = (TextView) findViewById(R.id.resultTextView);
RadioGroup modeRadioGroup = (RadioGroup) findViewById(R.id.modeRadioGroup);
// Validator
mValidator = new Validator(this);
mValidator.setValidationListener(this);
// Event listeners
mNameEditText.setOnFocusChangeListener(this);
mAddressEditText.setOnFocusChangeListener(this);
mEmailEditText.setOnFocusChangeListener(this);
mPhoneEditText.setOnFocusChangeListener(this);
modeRadioGroup.setOnCheckedChangeListener(this);
}
use of com.mobsandgeeks.saripaar.Validator in project android-saripaar by ragunathjawahar.
the class OptionalActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_optional);
// UI References
mEmailEditText = (EditText) findViewById(R.id.emailEditText);
mEmailUpdatesEditText = (CheckBox) findViewById(R.id.emailUpdatesCheckBox);
mResultTextView = (TextView) findViewById(R.id.resultTextView);
Button saripaarButton = (Button) findViewById(R.id.saripaarButton);
// Validator
mValidator = new Validator(this);
mValidator.setValidationListener(this);
// Event listeners
saripaarButton.setOnClickListener(this);
}
use of com.mobsandgeeks.saripaar.Validator in project android-saripaar by ragunathjawahar.
the class OrderedSequencingActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_un_ordered_sequencing);
// UI References
mNameEditText = (EditText) findViewById(R.id.nameEditText);
mAddressEditText = (EditText) findViewById(R.id.addressEditText);
mEmailEditText = (EditText) findViewById(R.id.emailEditText);
mPhoneEditText = (EditText) findViewById(R.id.phoneEditText);
mResultTextView = (TextView) findViewById(R.id.resultTextView);
RadioGroup modeRadioGroup = (RadioGroup) findViewById(R.id.modeRadioGroup);
Button saripaarButton = (Button) findViewById(R.id.saripaarButton);
// Validator
mValidator = new Validator(this);
mValidator.setValidationListener(this);
// Event listeners
modeRadioGroup.setOnCheckedChangeListener(this);
saripaarButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mValidator.validate();
}
});
}
use of com.mobsandgeeks.saripaar.Validator in project android-saripaar by ragunathjawahar.
the class ConfirmPasswordSeveralPasswordsActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_confirm_password_sevaral_passwords);
mPasswordEditText = (EditText) findViewById(R.id.passwordEditText);
mAnotherPasswordEditText = (EditText) findViewById(R.id.anotherPasswordEditText);
mConfirmPasswordEditText = (EditText) findViewById(R.id.confirmPasswordEditText);
mResultTextView = (TextView) findViewById(R.id.resultTextView);
mSaripaarButton = (Button) findViewById(R.id.saripaarButton);
// Event listeners
mSaripaarButton.setOnClickListener(this);
// Validation
mValidator = new Validator(this);
mValidator.setValidationListener(this);
}
use of com.mobsandgeeks.saripaar.Validator in project android-saripaar by ragunathjawahar.
the class ConfirmPasswordWithPasswordActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_confirm_password_with_password);
mPasswordEditText = (EditText) findViewById(R.id.passwordEditText);
mConfirmPasswordEditText = (EditText) findViewById(R.id.confirmPasswordEditText);
mResultTextView = (TextView) findViewById(R.id.resultTextView);
mSaripaarButton = (Button) findViewById(R.id.saripaarButton);
// Event listeners
mSaripaarButton.setOnClickListener(this);
// Validation
mValidator = new Validator(this);
mValidator.setValidationListener(this);
}
Aggregations