public class

SCBoardController

extends SCBaseFilterListController<T, V extends IFilterListViewHolder, F extends IListItemControllerFactory<T, ? extends IListItemController<T, ? extends IListItemViewHolder>>, L extends ILoaderhandler<?>>
implements IBoardController IControllerRequestListener
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.SCBaseListController<T, V extends com.c2call.sdk.pub.gui.core.controller.IListViewHolder, F extends com.c2call.sdk.pub.gui.core.controller.IListItemControllerFactory<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemController<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>>, L extends com.c2call.sdk.pub.gui.core.controller.ILoaderhandler<?>>
       ↳ com.c2call.sdk.pub.gui.core.controller.SCBaseFilterListController<T, V extends com.c2call.sdk.pub.gui.core.controller.IFilterListViewHolder, F extends com.c2call.sdk.pub.gui.core.controller.IListItemControllerFactory<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemController<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>>, L extends com.c2call.sdk.pub.gui.core.controller.ILoaderhandler<?>>
         ↳ com.c2call.sdk.pub.gui.board.controller.SCBoardController

Summary

Public Constructors
SCBoardController(View view, SCViewDescription viewDescription, SCViewDescriptionMap itemViewDescriptions, IBoardListItemControllerFactory itemMediatorFactory, IControllerRequestListener requestListener)
Public Methods
void clearFilter()
Clears all filters
void clearHistory()
Delete all shown events from thet board
String createFilterDescription()
int getFilterMask()
Gets the current active filter mask
List<String> getFilterStringParts()
String getUserId()
Returns the user ID for the board that was used for filtering.
boolean isFilterActive()
void onButtonClearFilterClick(View v)
Called if the clear button was clicked
void onButtonFilterClick(View v)
Called if the filter button was clicked.
void onButtonPrevClicked(View v)
Callde when the button was pressed to show previous messages
void onButtonSearchClick(View v)
Called if the search button was clicked.
void onControllerEvent(SCBaseControllerEvent event)
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
IBoardLoaderHandler<?> onCreateLoaderHandler(IListViewProvider listViewProvider, ILoaderHandlerContextProvider loaderHandlerMasterProvider, IBoardListItemControllerFactory itemMediatorFactory, SCViewDescriptionMap itemDescriptions)
synchronized void onDestroy()
Notifies the controller that tha surrounding activity will be destroyed.
void onPostCreate()
Called within onCreate(Activity, SCActivityResultDispatcher) but after all other initialization is done.
void onSearchQuery(String query)
Called if a new search quiry was set
void onSearchTextChanged(TextView v, Editable text)
Called if the user typed a new search query.
void setDecorator(IBoardDecorator decorator)
void setFilterMask(int filterMask)
Sets a filter mask for the board.
void setUserId(String id)
Sets a user ID for board.
void showFilterDialog()
Shows the filter dialog
Protected Methods
boolean enableOverscroll()
void onBindViewHolder(IBoardViewHolder vh)
void onClearHistoryCancel()
void onClearHistoryConfirm()
SCChoiceDialog onCreateFilterDialog()
IBoardViewHolder onCreateViewHolder(View v, SCViewDescription vd)
void onDecorate()
void onEvent(SCEncryptFileStopEvent evt)
void onEvent(SCEncryptFileStartEvent evt)
void onListLeavingTop()
synchronized void onListOverscroll()
void onLoadPreviousEvents()
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.gui.core.controller.SCBaseFilterListController
From class com.c2call.sdk.pub.gui.core.controller.SCBaseListController
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.board.controller.IBoardController
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.IControllerRequestListener
From interface com.c2call.sdk.pub.gui.core.controller.IFilterListController
From interface com.c2call.sdk.pub.gui.core.controller.IListController

Public Constructors

public SCBoardController (View view, SCViewDescription viewDescription, SCViewDescriptionMap itemViewDescriptions, IBoardListItemControllerFactory itemMediatorFactory, IControllerRequestListener requestListener)

Public Methods

public void clearFilter ()

Clears all filters

public void clearHistory ()

Delete all shown events from thet board

public String createFilterDescription ()

public int getFilterMask ()

Gets the current active filter mask

Returns
  • the filter mask

public List<String> getFilterStringParts ()

public String getUserId ()

Returns the user ID for the board that was used for filtering.

Returns
  • thet user ID for the board

public boolean isFilterActive ()

public void onButtonClearFilterClick (View v)

Called if the clear button was clicked

Parameters
v the clicked button

public void onButtonFilterClick (View v)

Called if the filter button was clicked.

Parameters
v this clicked button

public void onButtonPrevClicked (View v)

Callde when the button was pressed to show previous messages

Parameters
v the button that was pressed

public void onButtonSearchClick (View v)

Called if the search button was clicked.

Parameters
v the clicked button

public void onControllerEvent (SCBaseControllerEvent event)

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 IBoardLoaderHandler<?> onCreateLoaderHandler (IListViewProvider listViewProvider, ILoaderHandlerContextProvider loaderHandlerMasterProvider, IBoardListItemControllerFactory itemMediatorFactory, SCViewDescriptionMap itemDescriptions)

public synchronized void onDestroy ()

Notifies the controller that tha surrounding activity will be destroyed.

public void onPostCreate ()

Called within onCreate(Activity, SCActivityResultDispatcher) but after all other initialization is done.

public void onSearchQuery (String query)

Called if a new search quiry was set

Parameters
query the new query

public void onSearchTextChanged (TextView v, Editable text)

Called if the user typed a new search query.

Parameters
v the search field.
text the new text

public void setDecorator (IBoardDecorator decorator)

public void setFilterMask (int filterMask)

Sets a filter mask for the board. See SCBoardFilterFactory for valid items

Parameters
filterMask the filter to be set

public void setUserId (String id)

Sets a user ID for board. The board will be filtered to items related to that user

public void showFilterDialog ()

Shows the filter dialog

Protected Methods

protected boolean enableOverscroll ()

protected void onBindViewHolder (IBoardViewHolder vh)

protected void onClearHistoryCancel ()

protected void onClearHistoryConfirm ()

protected SCChoiceDialog onCreateFilterDialog ()

protected IBoardViewHolder onCreateViewHolder (View v, SCViewDescription vd)

protected void onDecorate ()

protected void onEvent (SCEncryptFileStopEvent evt)

protected void onEvent (SCEncryptFileStartEvent evt)

protected void onListLeavingTop ()

protected synchronized void onListOverscroll ()

protected void onLoadPreviousEvents ()