public interface

IFilterListController

implements IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.core.controller.IFilterListController<V extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
Known Indirect Subclasses

Class Overview

This interface is should be implemented in Controllers that contain filter-able lists.

Summary

Public Methods
abstract void clearFilter()
Clears all filters
abstract String createFilterDescription()
abstract boolean isFilterActive()
abstract void onButtonClearFilterClick(View v)
Called if the clear button was clicked
abstract void onButtonFilterClick(View v)
Called if the filter button was clicked.
abstract void onButtonSearchClick(View v)
Called if the search button was clicked.
abstract void onSearchQuery(String query)
Called if a new search quiry was set
abstract void onSearchTextChanged(TextView v, Editable text)
Called if the user typed a new search query.
abstract void showFilterDialog()
Shows the filter dialog
abstract void showFilterInput(boolean show)
Shows/Hides the filter views
abstract boolean toggleFilterInput()
Toggles the visibility of the filter views
[Expand]
Inherited Methods
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract void clearFilter ()

Clears all filters

public abstract String createFilterDescription ()

Returns
  • a human readable description of the currently active filter

public abstract boolean isFilterActive ()

Returns
  • whether a filter is active

public abstract void onButtonClearFilterClick (View v)

Called if the clear button was clicked

Parameters
v the clicked button

public abstract void onButtonFilterClick (View v)

Called if the filter button was clicked.

Parameters
v this clicked button

public abstract void onButtonSearchClick (View v)

Called if the search button was clicked.

Parameters
v the clicked button

public abstract void onSearchQuery (String query)

Called if a new search quiry was set

Parameters
query the new query

public abstract void onSearchTextChanged (TextView v, Editable text)

Called if the user typed a new search query.

Parameters
v the search field.
text the new text

public abstract void showFilterDialog ()

Shows the filter dialog

public abstract void showFilterInput (boolean show)

Shows/Hides the filter views

Parameters
show whether to show or hide

public abstract boolean toggleFilterInput ()

Toggles the visibility of the filter views