FileDocCategorySizeDatePackage
SearchViewCompatHoneycomb.javaAPI DocAndroid 5.1 API4256Thu Mar 12 22:22:56 GMT 2015android.support.v4.widget

SearchViewCompatHoneycomb

public class SearchViewCompatHoneycomb extends Object
Implementation of SearchView compatibility that can call Honeycomb APIs.

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.CharSequencegetQuery(android.view.View searchView)

        return ((SearchView) searchView).getQuery();
    
public static booleanisIconified(android.view.View searchView)

        return ((SearchView) searchView).isIconified();
    
public static booleanisQueryRefinementEnabled(android.view.View searchView)

        return ((SearchView) searchView).isQueryRefinementEnabled();
    
public static booleanisSubmitButtonEnabled(android.view.View searchView)

        return ((SearchView) searchView).isSubmitButtonEnabled();
    
public static java.lang.ObjectnewOnCloseListener(android.support.v4.widget.SearchViewCompatHoneycomb$OnCloseListenerCompatBridge listener)

        return new OnCloseListener() {
            @Override
            public boolean onClose() {
                return listener.onClose();
            }
        };
    
public static java.lang.ObjectnewOnQueryTextListener(android.support.v4.widget.SearchViewCompatHoneycomb$OnQueryTextListenerCompatBridge listener)

        return new OnQueryTextListener() {
            @Override
            public boolean onQueryTextSubmit(String query) {
                return listener.onQueryTextSubmit(query);
            }

            @Override
            public boolean onQueryTextChange(String newText) {
                return listener.onQueryTextChange(newText);
            }
        };
    
public static android.view.ViewnewSearchView(android.content.Context context)

        return new SearchView(context);
    
public static voidsetIconified(android.view.View searchView, boolean iconify)

        ((SearchView) searchView).setIconified(iconify);
    
public static voidsetMaxWidth(android.view.View searchView, int maxpixels)

        ((SearchView) searchView).setMaxWidth(maxpixels);
    
public static voidsetOnCloseListener(java.lang.Object searchView, java.lang.Object listener)

        ((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
    
public static voidsetOnQueryTextListener(java.lang.Object searchView, java.lang.Object listener)

        ((SearchView) searchView).setOnQueryTextListener((OnQueryTextListener) listener);
    
public static voidsetQuery(android.view.View searchView, java.lang.CharSequence query, boolean submit)

        ((SearchView) searchView).setQuery(query, submit);
    
public static voidsetQueryHint(android.view.View searchView, java.lang.CharSequence hint)

        ((SearchView) searchView).setQueryHint(hint);
    
public static voidsetQueryRefinementEnabled(android.view.View searchView, boolean enable)

        ((SearchView) searchView).setQueryRefinementEnabled(enable);
    
public static voidsetSearchableInfo(android.view.View searchView, android.content.ComponentName searchableComponent)

        SearchView sv = ((SearchView) searchView);
        SearchManager searchManager = (SearchManager)
                sv.getContext().getSystemService(Context.SEARCH_SERVICE);
        sv.setSearchableInfo(searchManager.getSearchableInfo(searchableComponent));
    
public static voidsetSubmitButtonEnabled(android.view.View searchView, boolean enabled)

        ((SearchView) searchView).setSubmitButtonEnabled(enabled);