public class

SCBoardListItemRichController

extends SCBoardListItemBaseController<V extends IBoardListItemBaseViewHolder, D extends IBoardListItemBaseDecorator<?, ?>>
implements IBoardListItemRichController
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.boardlistitem.controller.SCBoardListItemBaseController<V extends com.c2call.sdk.pub.gui.boardlistitem.controller.IBoardListItemBaseViewHolder, D extends com.c2call.sdk.pub.gui.boardlistitem.decorator.IBoardListItemBaseDecorator<?, ?>>
           ↳ com.c2call.sdk.pub.gui.boardlistitem.controller.SCBoardListItemRichController
Known Direct Subclasses

Summary

Public Constructors
SCBoardListItemRichController(SCBoardListItemType type, View view, SCViewDescription viewDescription, SCBoardEventData data)
Public Methods
void clearRichContent()
Clears the rich content of this item
SCBitmapManager.IBitmapListener getPreviewImageListener()
Gets a listener that is called if the preview a rich message is available
SCRichMessageType getRichMessageType()
Gets the rich message type of this item
boolean isMediaAvailable()
void onButtonActionClick(View v)
Called when the action button was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
IBoardListItemRichViewHolder onCreateViewHolder(View v, SCViewDescription vd)
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onMainViewClick(View v)
Called when the item was clicked
void onPreSetData(SCBoardEventData oldData, SCBoardEventData newData)
Called before new data is set for this item
void onRichMessageLocationClick()
void onShareMessage()
Called to share the message of the controlled view.
void onViewDetachedFromWindow(View v)
void setData(SCBoardEventData data, boolean decorate)
Sets the data for this item
void setRichMessageType(SCRichMessageType type)
Sets the rich message type of this item
Protected Methods
String getXCallerId()
void onBindViewHolder(IBoardListItemRichViewHolder vh)
void onDownloadRichMediaContent(boolean thumbOnly, boolean force)
void onEvent(SCUploadEvent evt)
void onEvent(SCDownloadEvent evt)
void onRichMessageError(String key, String uri, SCDownloadState status, Object[] args)
void onRichMessageFriendClick()
void onRichMessageVCardClick()
void onTransferEvent(SCBaseTransferEvent evt)
void onUpdateOverlay(SCDownloadState state)
String onUpdateRichMessagePath()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.boardlistitem.controller.SCBoardListItemBaseController
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.boardlistitem.controller.IBoardListItemBaseController
From interface com.c2call.sdk.pub.gui.boardlistitem.controller.IBoardListItemRichController
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.storage.SCBitmapManager.IBitmapListener

Public Constructors

public SCBoardListItemRichController (SCBoardListItemType type, View view, SCViewDescription viewDescription, SCBoardEventData data)

Public Methods

public void clearRichContent ()

Clears the rich content of this item

public SCBitmapManager.IBitmapListener getPreviewImageListener ()

Gets a listener that is called if the preview a rich message is available

public SCRichMessageType getRichMessageType ()

Gets the rich message type of this item

Returns
  • the rich message type

public boolean isMediaAvailable ()

public void onButtonActionClick (View v)

Called when the action button was clicked

Parameters
v the clicked button

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 IBoardListItemRichViewHolder onCreateViewHolder (View v, SCViewDescription vd)

public synchronized 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 onPreSetData (SCBoardEventData oldData, SCBoardEventData newData)

Called before new data is set for this item

Parameters
oldData the current data
newData the new data.

public void onRichMessageLocationClick ()

public void onShareMessage ()

Called to share the message of the controlled view.

public void onViewDetachedFromWindow (View v)

public void setData (SCBoardEventData data, boolean decorate)

Sets the data for this item

Parameters
data the data to be set
decorate whether the item should be decorated now

public void setRichMessageType (SCRichMessageType type)

Sets the rich message type of this item

Parameters
type the type to be set

Protected Methods

protected String getXCallerId ()

protected void onBindViewHolder (IBoardListItemRichViewHolder vh)

protected void onDownloadRichMediaContent (boolean thumbOnly, boolean force)

protected void onEvent (SCUploadEvent evt)

protected void onEvent (SCDownloadEvent evt)

protected void onRichMessageError (String key, String uri, SCDownloadState status, Object[] args)

protected void onRichMessageFriendClick ()

protected void onRichMessageVCardClick ()

protected void onTransferEvent (SCBaseTransferEvent evt)

protected void onUpdateOverlay (SCDownloadState state)

protected String onUpdateRichMessagePath ()