public class

SCForwardFragment

extends SCBaseFragment<T extends IController, Callbacks extends IFragmentCallbacks>
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.SCForwardFragment

Class Overview

This fragment is controlled by IForwardController and provides a view to activate and edit the call forwarding.

Summary

Nested Classes
interface SCForwardFragment.Callbacks Callbacks of SCForwardFragment  
[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCForwardFragment()
Public Methods
static SCForwardFragment create(int layout, SCCallForward forward)
Creates new Fragment.
void onControllerEvent(SCBaseControllerEvent event)
void onCreate(Bundle savedInstanceState)
Protected Methods
int getDefaultLayout()
If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default
void onControllerPreCreate(IForwardController controller)
IForwardController 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
[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.gui.core.controller.IControllerRequestListener

Public Constructors

public SCForwardFragment ()

Public Methods

public static SCForwardFragment create (int layout, SCCallForward forward)

Creates new Fragment.

Parameters
layout the layout that is used is this Fragment
forward optional. If not null the view will be per-filled with that data
Returns
  • the newly created Fragment

public void onControllerEvent (SCBaseControllerEvent event)

public void onCreate (Bundle savedInstanceState)

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 onControllerPreCreate (IForwardController controller)

Parameters
controller the Controller

protected IForwardController 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