public class

SCForwardController

extends SCBaseController<T extends IViewHolder>
implements IForwardController
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.forward.controller.SCForwardController

Summary

Public Constructors
SCForwardController(View view, SCViewDescription viewDescription)
Public Methods
SCCallForward getData()
Gets the call forwarding data of this controller
void onButtonSaveClick(View v)
On Button save click
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onEditPhoneNumberChanged(TextView v, Editable text)
On edit phone number changed.
void onSwitchOnOffChanged(CompoundButton v, boolean isChecked)
On (de-)actvivate switch changed
void setData(SCCallForward data)
Sets call forwarding data
void setDecorator(IForwardDecorator decorator)
Protected Methods
void onBindButtonSave(IForwardViewHolder vh)
void onBindEditPhoneNumber(IForwardViewHolder vh)
void onBindSwitchOnOff(IForwardViewHolder vh)
void onBindViewHolder(IForwardViewHolder vh)
IForwardViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onValidateInput()
[Expand]
Inherited Methods
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.forward.controller.IForwardController

Public Constructors

public SCForwardController (View view, SCViewDescription viewDescription)

Public Methods

public SCCallForward getData ()

Gets the call forwarding data of this controller

Returns
  • the call forwarding data

public void onButtonSaveClick (View v)

On Button save click

Parameters
v the Button that was clicked

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 void onEditPhoneNumberChanged (TextView v, Editable text)

On edit phone number changed.

Parameters
v the TextView that changed
text the new text

public void onSwitchOnOffChanged (CompoundButton v, boolean isChecked)

On (de-)actvivate switch changed

Parameters
v the switch that changed
isChecked true, if checked

public void setData (SCCallForward data)

Sets call forwarding data

Parameters
data the call forwarding data

public void setDecorator (IForwardDecorator decorator)

Protected Methods

protected void onBindButtonSave (IForwardViewHolder vh)

protected void onBindEditPhoneNumber (IForwardViewHolder vh)

protected void onBindSwitchOnOff (IForwardViewHolder vh)

protected void onBindViewHolder (IForwardViewHolder vh)

protected IForwardViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onValidateInput ()