public class

SCCustomStatusController

extends SCBaseController<T extends IViewHolder>
implements ICustomStatusController
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.customstatus.controller.SCCustomStatusController

Summary

Public Constructors
SCCustomStatusController(View view, SCViewDescription viewDescription, List<String> predefinedStatuses)
Public Methods
void onButtonClearClicked(View v)
Called when the ClearButton was clicked
void onButtonRequestStatusClicked(View v)
Called when the RequestStatusButton was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onPredefinedSelected(String status)
Called when an item of list of predefined statuses was selected
void onStatusChanged(String status)
Called when the status was changed;
boolean onSubmitStatus(String status)
Called when the new status should be saved on the server.
void setPredefinedItemLayout(int predefinedItemLayout, int textViewId)
void setPredefinedStatuses(List<String> predefinedStatuses)
void submit(String status)
Submit the given status to the server
Protected Methods
String getCustomStatus(SCProfile p)
void onBindButtonClear(ICustomStatusViewHolder vh)
void onBindButtonRequestStatus(ICustomStatusViewHolder vh)
void onBindListPredefined(ICustomStatusViewHolder vh)
void onBindTextStatus(ICustomStatusViewHolder vh)
void onBindViewHolder(ICustomStatusViewHolder vh)
ListAdapter onCreatePredefinedAdapter()
ICustomStatusViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onInitListPredefined(ListView list)
void updateClearButton(SCProfile p)
[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.customstatus.controller.ICustomStatusController

Public Constructors

public SCCustomStatusController (View view, SCViewDescription viewDescription, List<String> predefinedStatuses)

Public Methods

public void onButtonClearClicked (View v)

Called when the ClearButton was clicked

Parameters
v the button view

public void onButtonRequestStatusClicked (View v)

Called when the RequestStatusButton was clicked

Parameters
v the button view

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 synchronized void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onPredefinedSelected (String status)

Called when an item of list of predefined statuses was selected

Parameters
status the selected status

public void onStatusChanged (String status)

Called when the status was changed;

Parameters
status the new status

public boolean onSubmitStatus (String status)

Called when the new status should be saved on the server. This method is called during #submit

Parameters
status the status to save
Returns
  • true when the status was successfully saved, false otherwise.

public void setPredefinedItemLayout (int predefinedItemLayout, int textViewId)

public void setPredefinedStatuses (List<String> predefinedStatuses)

public void submit (String status)

Submit the given status to the server

Parameters
status the new status

Protected Methods

protected String getCustomStatus (SCProfile p)

protected void onBindButtonClear (ICustomStatusViewHolder vh)

protected void onBindButtonRequestStatus (ICustomStatusViewHolder vh)

protected void onBindListPredefined (ICustomStatusViewHolder vh)

protected void onBindTextStatus (ICustomStatusViewHolder vh)

protected void onBindViewHolder (ICustomStatusViewHolder vh)

protected ListAdapter onCreatePredefinedAdapter ()

protected ICustomStatusViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onInitListPredefined (ListView list)

protected void updateClearButton (SCProfile p)