public class

SCFriendsFragment

extends SCBaseFragment<T extends IController, Callbacks extends IFragmentCallbacks>
implements IFriendsFragmentCommunictation
java.lang.Object
   ↳ android.app.Fragment
     ↳ com.c2call.sdk.pub.fragments.core.SCBaseFragment<T extends com.c2call.sdk.pub.gui.core.controller.IController, Callbacks extends com.c2call.sdk.pub.fragments.core.IFragmentCallbacks>
       ↳ com.c2call.sdk.pub.fragments.SCFriendsFragment

Class Overview

This fragment is controlled by IFriendsController and provides a view of the friend list

Summary

Nested Classes
interface SCFriendsFragment.Callbacks Callbacks of SCFriendsFragment  
[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCFriendsFragment()
Public Methods
static SCFriendsFragment create(int layout)
Creates new Fragment.
void onControllerEvent(SCBaseControllerEvent event)
void onCreate(Bundle savedInstanceState)
void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
boolean onOptionsItemSelected(MenuItem item)
void searchQuery(String query)
Sets the search query of the frgament
void setFilter(int filterMask)
Sets the filtermask of the fragment.
Protected Methods
int getDefaultLayout()
If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default
void onBindCommunication(SCFriendsFragment.Callbacks callbacks)
void onControllerPostCreate(IFriendsController controller)
IFragmentCommunication onCreateCommunication()
Called to create a communication object for this Fragment
IFriendsController onCreateController(View v, SCViewDescription vd)
Called in onActivityCreated(Bundle) to create a IController for this fragment
SCViewDescription onCreateViewDescription()
Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller
void onEditModusChanged(SCListModusChangedEvent event)
Called if the controller fired an SCListModusChangedEvent
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.fragments.core.SCBaseFragment
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener
From interface com.c2call.sdk.pub.fragments.communication.IFragmentCommunication
From interface com.c2call.sdk.pub.fragments.communication.IFriendsFragmentCommunictation
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener

Public Constructors

public SCFriendsFragment ()

Public Methods

public static SCFriendsFragment create (int layout)

Creates new Fragment.

Parameters
layout the layout that is used is this Fragment
Returns
  • the newly created Fragment

public void onControllerEvent (SCBaseControllerEvent event)

public void onCreate (Bundle savedInstanceState)

public void onCreateOptionsMenu (Menu menu, MenuInflater inflater)

public boolean onOptionsItemSelected (MenuItem item)

public void searchQuery (String query)

Sets the search query of the frgament

Parameters
query the query to set

public void setFilter (int filterMask)

Sets the filtermask of the fragment.

Parameters
filterMask the filter mask to set

Protected Methods

protected int getDefaultLayout ()

If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default

Returns
  • the default layout for this fragment

protected void onBindCommunication (SCFriendsFragment.Callbacks callbacks)

protected void onControllerPostCreate (IFriendsController controller)

Parameters
controller the Controller

protected IFragmentCommunication onCreateCommunication ()

Called to create a communication object for this Fragment

Returns

protected IFriendsController onCreateController (View v, SCViewDescription vd)

Called in onActivityCreated(Bundle) to create a IController for this fragment

Parameters
v the view that is needed to create the controller. This is the result of onCreateView(LayoutInflater, ViewGroup, Bundle)
vd the view that is needed to create the contrller
Returns
  • the controller that will control this Fragment

protected SCViewDescription onCreateViewDescription ()

Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller

Returns

protected void onEditModusChanged (SCListModusChangedEvent event)

Called if the controller fired an SCListModusChangedEvent

Parameters
event the fired event