public class

SCGroupDetailFragment

extends SCBaseFragment<T extends IController, Callbacks extends IFragmentCallbacks>
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.SCGroupDetailFragment

Class Overview

This fragment is controlled by IGroupDetailController and provides a view to show the details of a given SCFriendCallerGroup

Summary

[Expand]
Inherited Constants
From interface android.content.ComponentCallbacks2
Public Constructors
SCGroupDetailFragment()
Public Methods
static SCGroupDetailFragment create(SCFriendGroup group, int layout)
Creates new Fragment.
SCFriendGroup getData()
void onControllerEvent(SCBaseControllerEvent event)
void onCreate(Bundle savedInstanceState)
void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
boolean onOptionsItemSelected(MenuItem item)
Protected Methods
int getDefaultLayout()
If no layout was passed by intent (key: EXTRA_DATA_LAYOUT) then this layout will be used as default
void onControllerPostCreate(IGroupDetailController controller)
IGroupDetailController onCreateController(View v, SCViewDescription vd)
Called in onActivityCreated(Bundle) to create a IController for this fragment
SCViewDescription onCreateViewDescription()
Create a SCViewDescription that is used in onCreateController(View, SCViewDescription) to create a new Controller
void onEditModusChanged(SCBaseControllerEvent event)
Called if the controller fired an SCListModusChangedEvent
void onMenuDeleteClicked(MenuItem item)
void onMenuEditClicked(MenuItem item)
Called if the edit item was clicked in the menu
void onMenuSaveClicked(MenuItem item)
Called if the save item was clicked in the menu
[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.IFragmentCommunication
From interface com.c2call.sdk.pub.gui.core.controller.IControllerRequestListener

Public Constructors

public SCGroupDetailFragment ()

Public Methods

public static SCGroupDetailFragment create (SCFriendGroup group, int layout)

Creates new Fragment.

Parameters
group the group to show
layout the layout that is used is this Fragment
Returns
  • the newly created Fragment

public SCFriendGroup getData ()

public void onControllerEvent (SCBaseControllerEvent event)

public void onCreate (Bundle savedInstanceState)

public void onCreateOptionsMenu (Menu menu, MenuInflater inflater)

public boolean onOptionsItemSelected (MenuItem item)

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 onControllerPostCreate (IGroupDetailController controller)

Parameters
controller the Controller

protected IGroupDetailController 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 SCViewDescription onCreateViewDescription ()

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

Returns

protected void onEditModusChanged (SCBaseControllerEvent event)

Called if the controller fired an SCListModusChangedEvent

Parameters
event the vent

protected void onMenuDeleteClicked (MenuItem item)

protected void onMenuEditClicked (MenuItem item)

Called if the edit item was clicked in the menu

protected void onMenuSaveClicked (MenuItem item)

Called if the save item was clicked in the menu