public abstract class

SCBaseListItemController

extends SCBaseController<T extends IViewHolder>
implements IListItemController<T, V extends IListItemViewHolder>
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.SCBaseListItemController<T, V extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>
Known Direct Subclasses
Known Indirect Subclasses

Summary

Public Constructors
SCBaseListItemController(View view, SCViewDescription viewDescription, T data)
Public Methods
T getData()
Gets the data for this item
IDecorator getDecorator()
Gets the decorator.
int getFlags()
Get the currently set flags of this item
int getListItemType()
Getst the item type id of this view.
void onButtonDetailsClick(View v)
Called when the detail button of an item was clicked
void onCreate(Activity context, SCActivityResultDispatcher resultDispatcher)
This should be called when your Activity is created.
void onDecorate()
Called to decorato the item
void onMainViewClick(View v)
Called when the item was clicked
void onMainViewLongClick(View v)
Called when the item was long-clicked
void onPostSetData(T newData)
void onPreSetData(T oldData, T newData)
Called before new data is set for this item
void setData(T data, boolean decorate)
Sets the data for this item
void setDecorator(IDecorator decorator, boolean decorateNow)
Sets the decorator for this list item
void setFlags(int flags)
Set flags for thi item.
void setListItemType(int type)
Sets the item type id of this view.
Protected Methods
void onBindMainView(V viewHolder)
void onBindViewHolder(V vh)
IDecorator<IListItemController<T, V>> onCreateDecorator()
[Expand]
Inherited Methods
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.IListItemController

Public Constructors

public SCBaseListItemController (View view, SCViewDescription viewDescription, T data)

Public Methods

public T getData ()

Gets the data for this item

Returns
  • the data of this item

public IDecorator getDecorator ()

Gets the decorator.

Returns
  • the decorator

public int getFlags ()

Get the currently set flags of this item

Returns
  • the flags of this item

public int getListItemType ()

Getst the item type id of this view. This may be an arbitrary number and is used by list adapters to determine which view and controller is used for this item.

Returns
  • the item type id

public void onButtonDetailsClick (View v)

Called when the detail button of an item was clicked

Parameters
v the button that was clicked

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 onDecorate ()

Called to decorato the item

public void onMainViewClick (View v)

Called when the item was clicked

Parameters
v the item's main view

public void onMainViewLongClick (View v)

Called when the item was long-clicked

Parameters
v the item's main view

public void onPostSetData (T newData)

public void onPreSetData (T oldData, T newData)

Called before new data is set for this item

Parameters
oldData the current data
newData the new data.

public void setData (T data, boolean decorate)

Sets the data for this item

Parameters
data the data to be set
decorate whether the item should be decorated now

public void setDecorator (IDecorator decorator, boolean decorateNow)

Sets the decorator for this list item

Parameters
decorator the decorator to be set
decorateNow whether the item should be decorated now

public void setFlags (int flags)

Set flags for thi item.

Parameters
flags the flags to be set.

public void setListItemType (int type)

Sets the item type id of this view. This may be an arbitrary number and is used by list adapters to determine which view and controller is used for this item.

Parameters
type the type id

Protected Methods

protected void onBindMainView (V viewHolder)

protected void onBindViewHolder (V vh)

protected IDecorator<IListItemController<T, V>> onCreateDecorator ()