public abstract class

SCBasePickNumberController

extends SCBaseController<T extends IViewHolder>
implements IBasePickNumberController<V extends IBasePickNumberViewHolder>
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.picknumber.controller.core.SCBasePickNumberController<V extends com.c2call.sdk.pub.gui.picknumber.controller.core.IBasePickNumberViewHolder>
Known Direct Subclasses

Summary

Constants
int FLAG_SHOW_EMAILS
int FLAG_SHOW_FC_USERS
int FLAG_SHOW_RECENT_IF_EMPTY
Public Constructors
SCBasePickNumberController(View view, SCViewDescription viewDescription, IControllerRequestListener requestListener)
Public Methods
int getFlags()
ListView getListView()
String getTag()
synchronized void initListData()
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onEditSearchTextChanged(TextView v, Editable text)
Called when the input of the search field changed
void setFlags(int flags)
void setTag(String tag)
Protected Methods
synchronized void filterListData(String s)
abstract int getListItemLayout()
int getTypeIcon(String name, String number, SCPhoneNumberType numberType, String email, int userType)
void onAddContact(ArrayList<Map<String, Object>> list, String name, String number, SCPhoneNumberType numberType, String email, int userType)
void onAddEmailAddresses()
void onAddPhoneNumber(String contactName, String phoneNumber, SCPhoneNumberType numberType)
void onAddPhoneNumbers(String contactId, String contactName)
void onBindEditSearch(V vh)
void onBindList(V vh)
void onBindViewHolder(V vh)
void onFilter(String text)
void onInitAddressbookData()
synchronized void onInitAppContacts()
void onItemClicked(View view, int pos, String number, String name)
void onPostFilterTextChanged(String s)
void onPreFilterTextChanged(String s)
[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.picknumber.controller.core.IBasePickNumberController

Constants

public static final int FLAG_SHOW_EMAILS

Constant Value: 4 (0x00000004)

public static final int FLAG_SHOW_FC_USERS

Constant Value: 2 (0x00000002)

public static final int FLAG_SHOW_RECENT_IF_EMPTY

Constant Value: 1 (0x00000001)

Public Constructors

public SCBasePickNumberController (View view, SCViewDescription viewDescription, IControllerRequestListener requestListener)

Public Methods

public int getFlags ()

public ListView getListView ()

public String getTag ()

public synchronized void initListData ()

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

Called when the input of the search field changed

Parameters
v the changed view
text the new text

public void setFlags (int flags)

public void setTag (String tag)

Protected Methods

protected synchronized void filterListData (String s)

protected abstract int getListItemLayout ()

protected int getTypeIcon (String name, String number, SCPhoneNumberType numberType, String email, int userType)

protected void onAddContact (ArrayList<Map<String, Object>> list, String name, String number, SCPhoneNumberType numberType, String email, int userType)

protected void onAddEmailAddresses ()

protected void onAddPhoneNumber (String contactName, String phoneNumber, SCPhoneNumberType numberType)

protected void onAddPhoneNumbers (String contactId, String contactName)

protected void onBindEditSearch (V vh)

protected void onBindList (V vh)

protected void onBindViewHolder (V vh)

protected void onFilter (String text)

protected void onInitAddressbookData ()

protected synchronized void onInitAppContacts ()

protected void onItemClicked (View view, int pos, String number, String name)

protected void onPostFilterTextChanged (String s)

protected void onPreFilterTextChanged (String s)