public interface

IListItemController

implements View.OnAttachStateChangeListener IController<T extends IViewHolder>
com.c2call.sdk.pub.gui.core.controller.IListItemController<T, V extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>
Known Indirect Subclasses

Class Overview

This interface is implemented by most controllers of list items within the C2Call SDK

Summary

Public Methods
abstract T getData()
Gets the data for this item
abstract IDecorator getDecorator()
Gets the decorator.
abstract int getFlags()
Get the currently set flags of this item
abstract int getListItemType()
Getst the item type id of this view.
abstract void onButtonDetailsClick(View v)
Called when the detail button of an item was clicked
abstract void onDecorate()
Called to decorato the item
abstract void onMainViewClick(View v)
Called when the item was clicked
abstract void onMainViewLongClick(View v)
Called when the item was long-clicked
abstract void onPreSetData(T oldData, T newData)
Called before new data is set for this item
abstract void setData(T data, boolean decorate)
Sets the data for this item
abstract void setDecorator(IDecorator decorator, boolean decorateNow)
Sets the decorator for this list item
abstract void setFlags(int flags)
Set flags for thi item.
abstract void setListItemType(int type)
Sets the item type id of this view.
[Expand]
Inherited Methods
From interface android.view.View.OnAttachStateChangeListener
From interface com.c2call.sdk.pub.gui.core.controller.IController

Public Methods

public abstract T getData ()

Gets the data for this item

Returns
  • the data of this item

public abstract IDecorator getDecorator ()

Gets the decorator.

Returns
  • the decorator

public abstract int getFlags ()

Get the currently set flags of this item

Returns
  • the flags of this item

public abstract 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 abstract void onButtonDetailsClick (View v)

Called when the detail button of an item was clicked

Parameters
v the button that was clicked

public abstract void onDecorate ()

Called to decorato the item

public abstract void onMainViewClick (View v)

Called when the item was clicked

Parameters
v the item's main view

public abstract void onMainViewLongClick (View v)

Called when the item was long-clicked

Parameters
v the item's main view

public abstract 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 abstract 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 abstract 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 abstract void setFlags (int flags)

Set flags for thi item.

Parameters
flags the flags to be set.

public abstract 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