public interface

IOfferwallController

implements IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.offerwall.controller.IOfferwallController
Known Indirect Subclasses

Class Overview

Interface for Offerwall Controllers

Summary

Public Methods
abstract IOfferwallItemControllerFactory getItemControllerFactory()
Gets the ControllerFactory to create item controllers.
abstract int getItemLayout()
Gets the resource id of the item layouts
abstract SCViewDescription getItemViewDescription()
Gets the ViewdDscription of the items
abstract void initItemController(int itemLayout, SCViewDescription itemViewDescription, IOfferwallItemControllerFactory itemMediatorFactory)
Initializes an item controller
abstract ListAdapter onCreateListAdapter(Activity context, int itemLayout, SCViewDescription itemViewDescription, IOfferwallItemControllerFactory itemContorllerFactory)
Called to create a ListAdapter for the offer list
abstract void onPostRefresh(Map<String, IOffer> items)
Called after the list was refreshed
abstract void onPreRefresh(Map<String, IOffer> items)
Called befor the list will be refreshed
abstract void onRefresh(Map<String, IOffer> items)
Called when the offer list should be refreshed
abstract void refresh()
Refreshes the offer list
[Expand]
Inherited Methods
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract IOfferwallItemControllerFactory getItemControllerFactory ()

Gets the ControllerFactory to create item controllers.

Returns
  • the ControllerFactory to create item controllers

public abstract int getItemLayout ()

Gets the resource id of the item layouts

public abstract SCViewDescription getItemViewDescription ()

Gets the ViewdDscription of the items

Returns
  • thet ViewDescription of the items

public abstract void initItemController (int itemLayout, SCViewDescription itemViewDescription, IOfferwallItemControllerFactory itemMediatorFactory)

Initializes an item controller

Parameters
itemLayout the item's resource id for its layout
itemViewDescription the ViewDescription of the item
itemMediatorFactory the factory to create the Controller

public abstract ListAdapter onCreateListAdapter (Activity context, int itemLayout, SCViewDescription itemViewDescription, IOfferwallItemControllerFactory itemContorllerFactory)

Called to create a ListAdapter for the offer list

Parameters
context the context
itemLayout the resource id of the layout for list items
itemViewDescription the ViewDescription for list items
itemContorllerFactory the ControllerFactory for list items

public abstract void onPostRefresh (Map<String, IOffer> items)

Called after the list was refreshed

Parameters
items the new items

public abstract void onPreRefresh (Map<String, IOffer> items)

Called befor the list will be refreshed

Parameters
items the new items

public abstract void onRefresh (Map<String, IOffer> items)

Called when the offer list should be refreshed

Parameters
items the new items

public abstract void refresh ()

Refreshes the offer list