public class

SCFriendsController

extends SCBaseFilterListController<T, V extends IFilterListViewHolder, F extends IListItemControllerFactory<T, ? extends IListItemController<T, ? extends IListItemViewHolder>>, L extends ILoaderhandler<?>>
implements IControllerRequestListener IFriendsController
java.lang.Object
   ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseController<T extends com.c2call.sdk.pub.gui.core.controller.IViewHolder>
     ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseListController<T, V extends com.c2call.sdk.pub.gui.core.controller.IListViewHolder, F extends com.c2call.sdk.pub.gui.core.controller.IListItemControllerFactory<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemController<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>>, L extends com.c2call.sdk.pub.gui.core.controller.ILoaderhandler<?>>
       ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseFilterListController<T, V extends com.c2call.sdk.pub.gui.core.controller.IFilterListViewHolder, F extends com.c2call.sdk.pub.gui.core.controller.IListItemControllerFactory<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemController<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>>, L extends com.c2call.sdk.pub.gui.core.controller.ILoaderhandler<?>>
         ↳ com.c2call.sdk.pub.gui.friends.controller.SCFriendsController

Summary

Public Constructors
SCFriendsController(View view, SCViewDescription viewDescription, SCViewDescription itemViewDescription, IFriendListItemControllerFactory itemControllerFactory, IControllerRequestListener requestListener)
SCFriendsController(View view, SCViewDescription viewDescription, SCViewDescriptionMap itemViewDescriptions, IFriendListItemControllerFactory itemMediatorFactory, IControllerRequestListener requestListener)
Public Methods
void clearFilter()
Clears all filters
String createFilterDescription()
void deleteSelectedFriends()
Deletes the selected friends.
int getFilterMask()
Gets the current filter mask.
List<String> getFilterStringParts()
SCListModus getListModus()
Gets the list modus
StringPair getSelectionKey()
Gets the key under which friends will be selected in SCSelectionManager when in edit mode.
boolean isFilterActive()
void onActivityResult(int requestCode, int resultCode, Intent data)
See onActivityResult() for further details
void onButtonClearFilterClick(View v)
Called if the clear button was clicked
void onButtonFilterClick(View v)
Called if the filter button was clicked.
void onButtonSearchClick(View v)
Called if the search button was clicked.
void onControllerEvent(SCBaseControllerEvent event)
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
IFriendLoaderHandler<?> onCreateLoaderHandler(IListViewProvider listViewProvider, ILoaderHandlerContextProvider loaderHandlerMasterProvider, IFriendListItemControllerFactory itemMediatorFactory, SCViewDescriptionMap itemDescriptions)
void onDeleteFriends(Collection<String> friends, Collection<String> contacts)
Called to delete the given friends
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onResume()
Notifies the controller that tha surrounding activity is resumed.
void onSearchQuery(String query)
Called if a new search quiry was set
void onSearchTextChanged(TextView v, Editable text)
Called if the user typed a new search query.
void searchQuery(String query)
void setFilterMask(int filterMask)
Sets a filter mask for the friend list.
void setListModus(SCListModus modus)
Sets the list modus
void showFilterDialog()
Shows the filter dialog
Protected Methods
void onBindViewHolder(IFriendsViewHolder vh)
ListAdapter onCreateAdapter(SCListModus modus, ListAdapter curAdapter)
ListAdapter onCreateDeleteModeAdapter(ListAdapter curAdapter)
SCChoiceDialog onCreateFilterDialog()
IFriendListItemControllerFactory onCreateListItemFactory()
SCViewDescription onCreateListItemViewDescription()
ListAdapter onCreateNormalModeAdapter(ListAdapter curAdapter)
IFriendsViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onDecorate()
void onListModusChanged(SCListModus modus)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBaseFilterListController
From class com.c2call.sdk.pub.gui.core.controller.SCBaseListController
From class com.c2call.sdk.pub.gui.core.controller.SCBaseController
From class java.lang.Object
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.core.common.IActivityResultListener
From interface com.c2call.sdk.pub.gui.core.controller.IController
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener
From interface com.c2call.sdk.pub.gui.core.controller.IFilterListController
From interface com.c2call.sdk.pub.gui.core.controller.IListController
From interface com.c2call.sdk.pub.gui.friends.controller.IFriendsController

Public Constructors

public SCFriendsController (View view, SCViewDescription viewDescription, SCViewDescription itemViewDescription, IFriendListItemControllerFactory itemControllerFactory, IControllerRequestListener requestListener)

public SCFriendsController (View view, SCViewDescription viewDescription, SCViewDescriptionMap itemViewDescriptions, IFriendListItemControllerFactory itemMediatorFactory, IControllerRequestListener requestListener)

Public Methods

public void clearFilter ()

Clears all filters

public String createFilterDescription ()

public void deleteSelectedFriends ()

Deletes the selected friends.

public int getFilterMask ()

Gets the current filter mask. See SCFriendFilterFactory for more details

public List<String> getFilterStringParts ()

public SCListModus getListModus ()

Gets the list modus

Returns
  • the list modus

public StringPair getSelectionKey ()

Gets the key under which friends will be selected in SCSelectionManager when in edit mode.

Returns
  • the selection key

public boolean isFilterActive ()

public void onActivityResult (int requestCode, int resultCode, Intent data)

See onActivityResult() for further details

public void onButtonClearFilterClick (View v)

Called if the clear button was clicked

Parameters
v the clicked button

public void onButtonFilterClick (View v)

Called if the filter button was clicked.

Parameters
v this clicked button

public void onButtonSearchClick (View v)

Called if the search button was clicked.

Parameters
v the clicked button

public void onControllerEvent (SCBaseControllerEvent event)

public void onCreate (Activity context, SCActivityResultDispatcher resultDispatcher)

This should be called when your Activity is created. Typically in onCreate(...) of the surrounding Activiy.

Parameters
context the surrounding activity
resultDispatcher a result dispatcher that is used by the controller

public IFriendLoaderHandler<?> onCreateLoaderHandler (IListViewProvider listViewProvider, ILoaderHandlerContextProvider loaderHandlerMasterProvider, IFriendListItemControllerFactory itemMediatorFactory, SCViewDescriptionMap itemDescriptions)

public void onDeleteFriends (Collection<String> friends, Collection<String> contacts)

Called to delete the given friends

Parameters
friends the friends that should be deleted
contacts the contacts that should be deleted

public synchronized void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onResume ()

Notifies the controller that tha surrounding activity is resumed.

public void onSearchQuery (String query)

Called if a new search quiry was set

Parameters
query the new query

public 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 void searchQuery (String query)

public void setFilterMask (int filterMask)

Sets a filter mask for the friend list. see SCFriendFilterFactory for more details

public void setListModus (SCListModus modus)

Sets the list modus

Parameters
modus the list modus

public void showFilterDialog ()

Shows the filter dialog

Protected Methods

protected void onBindViewHolder (IFriendsViewHolder vh)

protected ListAdapter onCreateAdapter (SCListModus modus, ListAdapter curAdapter)

protected ListAdapter onCreateDeleteModeAdapter (ListAdapter curAdapter)

protected SCChoiceDialog onCreateFilterDialog ()

protected IFriendListItemControllerFactory onCreateListItemFactory ()

protected SCViewDescription onCreateListItemViewDescription ()

protected ListAdapter onCreateNormalModeAdapter (ListAdapter curAdapter)

protected IFriendsViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onDecorate ()

protected void onListModusChanged (SCListModus modus)