FileDocCategorySizeDatePackage
BrowserHomepagePreference.javaAPI DocAndroid 1.5 API2212Wed May 06 22:42:42 BST 2009com.android.browser

BrowserHomepagePreference

public class BrowserHomepagePreference extends android.preference.EditTextPreference implements android.text.TextWatcher

Fields Summary
Constructors Summary
public BrowserHomepagePreference(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
        getEditText().addTextChangedListener(this);
    
public BrowserHomepagePreference(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
        getEditText().addTextChangedListener(this);
    
public BrowserHomepagePreference(android.content.Context context)

        super(context);
        getEditText().addTextChangedListener(this);
    
Methods Summary
public voidafterTextChanged(android.text.Editable s)

        AlertDialog dialog = (AlertDialog) getDialog();
        // This callback is called before the dialog has been fully constructed
        if (dialog != null) {
            String url = s.toString();
            dialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(
                    url.length() == 0 || url.equals("about:blank") ||
                    Regex.WEB_URL_PATTERN.matcher(url).matches());
        }
    
public voidbeforeTextChanged(java.lang.CharSequence s, int start, int count, int after)

    
public voidonTextChanged(java.lang.CharSequence s, int start, int before, int count)