public class

SCFriendListItemController

extends SCBasePictureListItemController<T, V extends IPictureViewHolder & IListItemViewHolder>
implements IFriendListItemController
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.core.controller.SCBaseListItemController<T, V extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>
       ↳ com.c2call.sdk.pub.gui.core.controller.SCBasePictureListItemController<T, V extends com.c2call.sdk.pub.gui.core.controller.IPictureViewHolder & com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>
         ↳ com.c2call.sdk.pub.gui.friendlistitem.controller.SCFriendListItemController

Summary

Public Constructors
SCFriendListItemController(View view, SCViewDescription viewDescription, SCFriendData data)
Public Methods
SCListModus getModus()
Gets the list modus
boolean isSelectable()
Checks if this item is selectable
void onButtonDetailsClick(View anchor)
Called when the detail button of an item was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onMainViewClick(View v)
Called when the item was clicked
void onMainViewLongClick(View v)
Called when the item was long-clicked
void onPictureViewClick(View v)
Called when the picture view was clicked
void onViewAttachedToWindow(View v)
void onViewDetachedFromWindow(View v)
boolean openDetail()
Opens the detail view of this item
void setModus(SCListModus modus)
Sets the list modus
boolean shareCallmeLink()
Only relevant for items that show the CallMeLink.
void showBoard(String userid)
boolean toggleFavorites()
Toggles the favorite status
Protected Methods
void onBindViewHolder(IFriendListItemViewHolder viewHolder)
SCChoiceDialog onCreateContextDialog()
IFriendListItemViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onFireGroupDetailEvent()
void onShowContactDetail(View anchor)
void onShowContextDialog()
void onShowGroupDetail(View anchor)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureListItemController
From class com.c2call.sdk.pub.gui.core.controller.SCBaseListItemController
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.core.controller.IListItemController
From interface com.c2call.sdk.pub.gui.core.controller.IPictureListItemController
From interface com.c2call.sdk.pub.gui.friendlistitem.controller.IFriendListItemController

Public Constructors

public SCFriendListItemController (View view, SCViewDescription viewDescription, SCFriendData data)

Public Methods

public SCListModus getModus ()

Gets the list modus

Returns
  • the list modus

public boolean isSelectable ()

Checks if this item is selectable

Returns
  • true, if selectable

public void onButtonDetailsClick (View anchor)

Called when the detail button of an item was clicked

Parameters
anchor 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 onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onMainViewClick (View v)

Called when the item was clicked

Parameters
v the item's main view

public void onMainViewLongClick (View v)

Called when the item was long-clicked

Parameters
v the item's main view

public void onPictureViewClick (View v)

Called when the picture view was clicked

Parameters
v the view that was clicked

public void onViewAttachedToWindow (View v)

public void onViewDetachedFromWindow (View v)

public boolean openDetail ()

Opens the detail view of this item

public void setModus (SCListModus modus)

Sets the list modus

Parameters
modus the list modus

public boolean shareCallmeLink ()

Only relevant for items that show the CallMeLink. If this item contains the CallMeLink then share it

Returns
  • true, if success

public void showBoard (String userid)

public boolean toggleFavorites ()

Toggles the favorite status

Returns
  • true, if item is favorite now

Protected Methods

protected void onBindViewHolder (IFriendListItemViewHolder viewHolder)

protected SCChoiceDialog onCreateContextDialog ()

protected IFriendListItemViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onFireGroupDetailEvent ()

protected void onShowContactDetail (View anchor)

protected void onShowContextDialog ()

protected void onShowGroupDetail (View anchor)