public class

SCGroupDetailController

extends SCBasePictureController<V extends IPictureViewHolder>
implements IGroupDetailController
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.SCBasePictureController<V extends com.c2call.sdk.pub.gui.core.controller.IPictureViewHolder>
       ↳ com.c2call.sdk.pub.gui.groupdetail.controller.SCGroupDetailController

Summary

[Expand]
Inherited Fields
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
Public Constructors
SCGroupDetailController(View view, SCViewDescription viewDescription)
Public Methods
void asyncUpdateGroup()
void enableSecureMessage(boolean enabled)
This method is called to enable/disable secure messaging for this conroller
SCFriendGroup getData()
Gets the group data
String getUserid()
boolean isEditing()
Check if the controller is in edit mode
boolean isModerator()
Checks if the user is the moderator of the group
boolean isSecureMessage()
Checkes whether this is group is secure
void onActivityResult(int requestCode, int resultCode, Intent data)
See onActivityResult() for further details
void onButtonCallClick(View v)
On Button for call clicked
void onButtonEditClick(View v)
On Button for edit clicked
void onButtonMessageClick(View v)
On Button for message clicked
void onButtonVideoCallClick(View v)
On button for video call clicked
void onCheckedChangedSecure(CompoundButton cb)
Called when the checkbox for secure messaging changed its checked-state
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onEditGroupNameFocusChange(View v)
Called if the the focus of the EditText for the group name changed
void onEditGroupNameTextChanged(CharSequence s, int start, int before, int count)
Colled if the input of the EditText for the group name changed
void onEvent(SCUploadEvent evt)
void onEvent(SCDownloadEvent evt)
void onPictureViewClick(View v)
Called if the picture view is clicked
void onTransferEvent(SCBaseTransferEvent evt)
void refreshUserPicture(boolean tryDownloadIfNotExist)
Refreshes the user picture
void refreshUserPicture()
Refreshes the user picture;
void save()
Save the group
void setData(SCFriendGroup data)
Sets the group data
void setDecorator(IGroupDetailDecorator decorator)
void setEditing(boolean value)
Sets the controller into edit mode
void showProgressDialogFromBackground(boolean show)
boolean updateGroup()
Protected Methods
void onBindButtonCall(IGroupDetailViewHolder vh)
void onBindButtonEdit(IGroupDetailViewHolder vh)
void onBindButtonMessage(IGroupDetailViewHolder vh)
void onBindButtonViedoCall(IGroupDetailViewHolder vh)
void onBindEditGroupName(IGroupDetailViewHolder vh)
void onBindSecureMessage(IGroupDetailViewHolder vh)
void onBindViewHolder(IGroupDetailViewHolder vh)
IGroupDetailLoaderHandler<?> onCreateLoaderHandler(ILoaderHandlerContextProvider contextProvider, IListViewProvider listProvider)
SCChoiceDialog onCreatePictureDialog(String filename)
IGroupDetailViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onEditModusChanged(boolean isEditing)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBasePictureController
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.core.controller.IPictureController
From interface com.c2call.sdk.pub.gui.core.controller.IUserController
From interface com.c2call.sdk.pub.gui.groupdetail.controller.IGroupDetailController

Public Constructors

public SCGroupDetailController (View view, SCViewDescription viewDescription)

Public Methods

public void asyncUpdateGroup ()

public void enableSecureMessage (boolean enabled)

This method is called to enable/disable secure messaging for this conroller

Parameters
enabled true to enable secure messaging.

public SCFriendGroup getData ()

Gets the group data

Returns
  • the group data

public String getUserid ()

public boolean isEditing ()

Check if the controller is in edit mode

Returns
  • true, if in edit mode

public boolean isModerator ()

Checks if the user is the moderator of the group

Returns
  • true, if the user is moderator of the group

public boolean isSecureMessage ()

Checkes whether this is group is secure

Returns
  • true, if this group is secure

public void onActivityResult (int requestCode, int resultCode, Intent data)

See onActivityResult() for further details

public void onButtonCallClick (View v)

On Button for call clicked

Parameters
v the clicked Button

public void onButtonEditClick (View v)

On Button for edit clicked

Parameters
v the clicked button

public void onButtonMessageClick (View v)

On Button for message clicked

Parameters
v the clicked Button

public void onButtonVideoCallClick (View v)

On button for video call clicked

Parameters
v the clicked button

public void onCheckedChangedSecure (CompoundButton cb)

Called when the checkbox for secure messaging changed its checked-state

Parameters
cb the checkbox that changed the state

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

Notifies the controller that tha surrounding activity will be destroyed.

public void onEditGroupNameFocusChange (View v)

Called if the the focus of the EditText for the group name changed

Parameters
v the focus that changed

public void onEditGroupNameTextChanged (CharSequence s, int start, int before, int count)

Colled if the input of the EditText for the group name changed

public void onEvent (SCUploadEvent evt)

public void onEvent (SCDownloadEvent evt)

public void onPictureViewClick (View v)

Called if the picture view is clicked

Parameters
v the view that was clicked

public void onTransferEvent (SCBaseTransferEvent evt)

public void refreshUserPicture (boolean tryDownloadIfNotExist)

Refreshes the user picture

Parameters
tryDownloadIfNotExist if true, tries to download again if it does not already exist

public void refreshUserPicture ()

Refreshes the user picture;

public void save ()

Save the group

public void setData (SCFriendGroup data)

Sets the group data

Parameters
data the group data

public void setDecorator (IGroupDetailDecorator decorator)

public void setEditing (boolean value)

Sets the controller into edit mode

Parameters
value if true, the controller will enter the edit mode, otherwise it leaves the edit mode

public void showProgressDialogFromBackground (boolean show)

public boolean updateGroup ()

Protected Methods

protected void onBindButtonCall (IGroupDetailViewHolder vh)

protected void onBindButtonEdit (IGroupDetailViewHolder vh)

protected void onBindButtonMessage (IGroupDetailViewHolder vh)

protected void onBindButtonViedoCall (IGroupDetailViewHolder vh)

protected void onBindEditGroupName (IGroupDetailViewHolder vh)

protected void onBindSecureMessage (IGroupDetailViewHolder vh)

protected void onBindViewHolder (IGroupDetailViewHolder vh)

protected IGroupDetailLoaderHandler<?> onCreateLoaderHandler (ILoaderHandlerContextProvider contextProvider, IListViewProvider listProvider)

protected SCChoiceDialog onCreatePictureDialog (String filename)

protected IGroupDetailViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onEditModusChanged (boolean isEditing)