public class

SCBoardFragment

extends SCBaseFragment<T extends IController, Callbacks extends IFragmentCallbacks>
implements IBoardFragmentCommunictation
java.lang.Object
   ↳ android.app.Fragment
     ↳ com.c2call.sdk.pub.fragments.core.SCBaseFragment<T extends com.c2call.sdk.pub.gui.core.controller.IController, Callbacks extends com.c2call.sdk.pub.fragments.core.IFragmentCallbacks>
       ↳ com.c2call.sdk.pub.fragments.SCBoardFragment

Class Overview

This fragment is controlled by IBoardController and provides a view of the board.

Summary

Nested Classes
interface SCBoardFragment.Callbacks  
[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCBoardFragment()
Instantiates a new SCBoardFragment.
Public Methods
static SCBoardFragment create(String userid, int layout)
Creates new Fragment.
SCActivityResultDispatcher getResultDispatcher()
String getUserid()
void onCreate(Bundle savedInstanceState)
void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
boolean onOptionsItemSelected(MenuItem item)
void setFilterByUserid(String userid)
Sets a filter of the board fragment to filter the board by the specified userid
Protected Methods
int getDefaultLayout()
If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default
void onBindCommunication(SCBoardFragment.Callbacks callbacks)
void onControllerPostCreate(IBoardController controller)
IFragmentCommunication onCreateCommunication()
Called to create a communication object for this Fragment
IBoardController onCreateController(View v, SCViewDescription vd)
Called in onActivityCreated(Bundle) to create a IController for this fragment
SCActivityResultDispatcher onCreateResultDispactcher()
Creates a SCActivityResultDispatcher that will be set in the IController of this fragment
SCViewDescription onCreateViewDescription()
Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.fragments.core.SCBaseFragment
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener
From interface com.c2call.sdk.pub.fragments.communication.IBoardFragmentCommunictation
From interface com.c2call.sdk.pub.fragments.communication.IFragmentCommunication
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener

Public Constructors

public SCBoardFragment ()

Instantiates a new SCBoardFragment.

Public Methods

public static SCBoardFragment create (String userid, int layout)

Creates new Fragment.

Parameters
userid optional parameter to filter the board by that user
layout the layout that is used is this Fragment
Returns
  • the newly created Fragment

public SCActivityResultDispatcher getResultDispatcher ()

public String getUserid ()

public void onCreate (Bundle savedInstanceState)

public void onCreateOptionsMenu (Menu menu, MenuInflater inflater)

public boolean onOptionsItemSelected (MenuItem item)

public void setFilterByUserid (String userid)

Sets a filter of the board fragment to filter the board by the specified userid

Parameters
userid the ID to filter the board by.

Protected Methods

protected int getDefaultLayout ()

If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default

Returns
  • the default layout for this fragment

protected void onBindCommunication (SCBoardFragment.Callbacks callbacks)

protected void onControllerPostCreate (IBoardController controller)

Parameters
controller the Controller

protected IFragmentCommunication onCreateCommunication ()

Called to create a communication object for this Fragment

Returns

protected IBoardController onCreateController (View v, SCViewDescription vd)

Called in onActivityCreated(Bundle) to create a IController for this fragment

Parameters
v the view that is needed to create the controller. This is the result of onCreateView(LayoutInflater, ViewGroup, Bundle)
vd the view that is needed to create the contrller
Returns
  • the controller that will control this Fragment

protected SCActivityResultDispatcher onCreateResultDispactcher ()

Creates a SCActivityResultDispatcher that will be set in the IController of this fragment

Returns
  • a result dispatcher

protected SCViewDescription onCreateViewDescription ()

Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller

Returns