public class

SCDialpadController

extends SCBaseController<T extends IViewHolder>
implements IDialpadController
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.dialpad.controller.SCDialpadController

Summary

Public Constructors
SCDialpadController(View view, SCViewDescription viewDescription)
Public Methods
String getE164Number()
Gets the e164 converted number.
SCPhoneNumberInputHandler getPhoneNumberInputHandler()
String getRawNumber()
Gets the raw number.
void onActivityResult(int requestCode, int resultCode, Intent intent)
See onActivityResult() for further details
void onAddSignClick(View v)
On add sign click.
void onBrowseAreas(View v)
On browse areas.
void onCallClick(View v)
On call click.
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDeleteClick(View v)
On delete click.
void onDeleteLongClick(View v)
On delete long click.
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onExtraButton1Click(View v)
On extra button1 click.
void onExtraButton2Click(View v)
On extra button2 click.
void onNumberChanged(Editable s)
On number changed.
void onNumberClick(View v, int number)
On number click.
void onNumberInfoClick(View v)
On number info click.
void onSmsClick(View v)
On sms click.
boolean pickNumber()
Picks a number from the local addressbook
void setNumber(String number)
Sets the number.
Protected Methods
boolean isAddSignValid()
void onAssistDismiss()
void onBindItemButtonAddSign(IDialpadViewHolder viewHolder)
void onBindItemButtonAssist(IDialpadViewHolder viewHolder)
void onBindItemButtonBrowseAreas(IDialpadViewHolder viewHolder)
void onBindItemButtonContacts(IDialpadViewHolder viewHolder)
void onBindItemButtonDelete(IDialpadViewHolder viewHolder)
void onBindItemButtonNumbers(IDialpadViewHolder viewHolder)
void onBindItemButtonSMS(IDialpadViewHolder viewHolder)
void onBindItemEditNumber(IDialpadViewHolder viewHolder)
void onBindItemTextCredits(IDialpadViewHolder viewHolder)
void onBindItemTextNumberInfo(IDialpadViewHolder viewHolder)
void onBindItemTextPriceInfo(IDialpadViewHolder viewHolder)
void onBindViewHolder(IDialpadViewHolder viewHolder)
SCPhoneNumberInputHandler onCreatePhoneNumberInputHandler(IDialpadViewHolder viewHolder)
IDialpadViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onPriceInfoChanged(String priceString)
[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.dialpad.controller.IDialpadController

Public Constructors

public SCDialpadController (View view, SCViewDescription viewDescription)

Public Methods

public String getE164Number ()

Gets the e164 converted number.

Returns
  • the e164 converted number

public SCPhoneNumberInputHandler getPhoneNumberInputHandler ()

public String getRawNumber ()

Gets the raw number.

Returns
  • the raw number

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

See onActivityResult() for further details

public void onAddSignClick (View v)

On add sign click.

Parameters
v the Button that was clicked

public void onBrowseAreas (View v)

On browse areas.

Parameters
v the Button that was clicked

public void onCallClick (View v)

On call 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 onDeleteClick (View v)

On delete click.

Parameters
v the Button that was clicked

public void onDeleteLongClick (View v)

On delete long click.

Parameters
v the Button that was clicked

public synchronized void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onExtraButton1Click (View v)

On extra button1 click.

Parameters
v the Button that was clicked

public void onExtraButton2Click (View v)

On extra button2 click.

Parameters
v the Button that was clicked

public void onNumberChanged (Editable s)

On number changed.

Parameters
s the s

public void onNumberClick (View v, int number)

On number click.

Parameters
v the Button that was clicked
number the number

public void onNumberInfoClick (View v)

On number info click.

Parameters
v the Button that was clicked

public void onSmsClick (View v)

On sms click.

Parameters
v the Button that was clicked

public boolean pickNumber ()

Picks a number from the local addressbook

Returns
  • true on success

public void setNumber (String number)

Sets the number.

Parameters
number the new number

Protected Methods

protected boolean isAddSignValid ()

protected void onAssistDismiss ()

protected void onBindItemButtonAddSign (IDialpadViewHolder viewHolder)

protected void onBindItemButtonAssist (IDialpadViewHolder viewHolder)

protected void onBindItemButtonBrowseAreas (IDialpadViewHolder viewHolder)

protected void onBindItemButtonContacts (IDialpadViewHolder viewHolder)

protected void onBindItemButtonDelete (IDialpadViewHolder viewHolder)

protected void onBindItemButtonNumbers (IDialpadViewHolder viewHolder)

protected void onBindItemButtonSMS (IDialpadViewHolder viewHolder)

protected void onBindItemEditNumber (IDialpadViewHolder viewHolder)

protected void onBindItemTextCredits (IDialpadViewHolder viewHolder)

protected void onBindItemTextNumberInfo (IDialpadViewHolder viewHolder)

protected void onBindItemTextPriceInfo (IDialpadViewHolder viewHolder)

protected void onBindViewHolder (IDialpadViewHolder viewHolder)

protected SCPhoneNumberInputHandler onCreatePhoneNumberInputHandler (IDialpadViewHolder viewHolder)

protected IDialpadViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onPriceInfoChanged (String priceString)