Java Code Examples for android.widget.AutoCompleteTextView#Validator

The following examples show how to use android.widget.AutoCompleteTextView#Validator . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void validator(AutoCompleteTextView.Validator arg) {
  return BaseDSL.attr("validator", arg);
}
 
Example 2
Source File: DSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void validator(AutoCompleteTextView.Validator arg) {
  return BaseDSL.attr("validator", arg);
}
 
Example 3
Source File: EditText.java    From MDPreference with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the validator used to perform text validation.
 * <p>Only work when autoComplete mode is {@link #AUTOCOMPLETE_MODE_SINGLE} or {@link #AUTOCOMPLETE_MODE_MULTI}</p>
 *
 * @param validator The validator used to validate the text entered in this widget.
 *
 * @see #getValidator()
 * @see #performValidation()
 */
public void setValidator(AutoCompleteTextView.Validator validator) {
    if(mAutoCompleteMode == AUTOCOMPLETE_MODE_NONE)
        return;
    ((AutoCompleteTextView)mInputView).setValidator(validator);
}
 
Example 4
Source File: EditText.java    From MDPreference with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the Validator set with {@link #setValidator},
 * or <code>null</code> if it was not set.
 * <p>Only work when autoComplete mode is {@link #AUTOCOMPLETE_MODE_SINGLE} or {@link #AUTOCOMPLETE_MODE_MULTI}</p>
 *
 * @see #setValidator(AutoCompleteTextView.Validator)
 * @see #performValidation()
 */
public AutoCompleteTextView.Validator getValidator() {
    if(mAutoCompleteMode == AUTOCOMPLETE_MODE_NONE)
        return null;
    return ((AutoCompleteTextView)mInputView).getValidator();
}
 
Example 5
Source File: EditText.java    From material with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the validator used to perform text validation.
 * <p>Only work when autoComplete mode is {@link #AUTOCOMPLETE_MODE_SINGLE} or {@link #AUTOCOMPLETE_MODE_MULTI}</p>
 *
 * @param validator The validator used to validate the text entered in this widget.
 *
 * @see #getValidator()
 * @see #performValidation()
 */
public void setValidator(AutoCompleteTextView.Validator validator) {
    if(mAutoCompleteMode == AUTOCOMPLETE_MODE_NONE)
        return;
    ((AutoCompleteTextView)mInputView).setValidator(validator);
}
 
Example 6
Source File: EditText.java    From material with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the Validator set with {@link #setValidator},
 * or <code>null</code> if it was not set.
 * <p>Only work when autoComplete mode is {@link #AUTOCOMPLETE_MODE_SINGLE} or {@link #AUTOCOMPLETE_MODE_MULTI}</p>
 *
 * @see #setValidator(AutoCompleteTextView.Validator)
 * @see #performValidation()
 */
public AutoCompleteTextView.Validator getValidator() {
    if(mAutoCompleteMode == AUTOCOMPLETE_MODE_NONE)
        return null;
    return ((AutoCompleteTextView)mInputView).getValidator();
}