java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
             ↳ com.c2call.sdk.pub.activities.SCBoardFragmentActivity

Class Overview

Simple implementation of an Activity that is controlled by a IBoardController. It contains a two fragments, SCBoardFragment and SCNewMessageFragment. It should be started like:

 final Intent intent = new Intent(activity, SCBoardActivity.class);
 intent.putExtra(SCExtraData.BaseFragmentData.EXTRA_DATA_LAYOUT, R.layout.sc_board);
 intent.putExtra(SCExtraData.Board.EXTRA_DATA_USERID, userid); // if userid is not null the board will only show events of that user
 activity.startActivity(intent);
 

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
SCBoardFragmentActivity()
Public Methods
String getUserid()
void onControllerEvent(SCBaseControllerEvent event)
void onRegisterBoardCommunictation(IBoardFragmentCommunictation c)
Called to register a communication to a SCBoardFragment
void restoreFragment(Bundle savedInstanceState)
Protected Methods
int getBoardPartInputLayout()
int getBoardPartListLayout()
void onCreate(Bundle savedInstanceState)
Fragment onCreateBoardFragment(String userid)
Creates the board fragment
Fragment onCreateMessageInputFragment(String userid)
Creates the board fragment
void onInitWithIntent(Intent intent, Bundle savedInstanceState)
void onNewIntent(Intent intent)
void onStart()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface com.c2call.sdk.pub.fragments.SCBoardFragment.Callbacks
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContext
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContextProvider

Public Constructors

public SCBoardFragmentActivity ()

Public Methods

public String getUserid ()

public void onControllerEvent (SCBaseControllerEvent event)

public void onRegisterBoardCommunictation (IBoardFragmentCommunictation c)

Called to register a communication to a SCBoardFragment

Parameters
c the communication object

public void restoreFragment (Bundle savedInstanceState)

Protected Methods

protected int getBoardPartInputLayout ()

protected int getBoardPartListLayout ()

protected void onCreate (Bundle savedInstanceState)

protected Fragment onCreateBoardFragment (String userid)

Creates the board fragment

Parameters
userid optional parameter. If not null the board will be filtered to show only events related to that user
Returns

protected Fragment onCreateMessageInputFragment (String userid)

Creates the board fragment

Parameters
userid optional parameter. If set then the receipient is pre-filled with that user.
Returns

protected void onInitWithIntent (Intent intent, Bundle savedInstanceState)

protected void onNewIntent (Intent intent)

protected void onStart ()