public abstract class

SCBaseControllerArrayAdapter

extends SCSectionArrayAdapter<T>
java.lang.Object
   ↳ android.widget.BaseAdapter
     ↳ android.widget.ArrayAdapter<T>
       ↳ com.c2call.sdk.lib.controlfoundation.adapters.SCSectionArrayAdapter<T>
         ↳ com.c2call.sdk.pub.gui.core.adapter.SCBaseControllerArrayAdapter<T, M extends com.c2call.sdk.pub.gui.core.controller.IListItemController<T, ? extends com.c2call.sdk.pub.gui.core.controller.IListItemViewHolder>, F extends com.c2call.sdk.pub.gui.core.controller.IListItemControllerFactory<T, M>, D extends com.c2call.sdk.pub.gui.core.decorator.IDecorator<M>>

Summary

[Expand]
Inherited Constants
From class com.c2call.sdk.lib.controlfoundation.adapters.SCSectionArrayAdapter
From interface android.widget.Adapter
[Expand]
Inherited Fields
From class com.c2call.sdk.lib.controlfoundation.adapters.SCSectionArrayAdapter
Public Constructors
SCBaseControllerArrayAdapter(Context context, List<T> objects, int itemLayout, F controllerFactory, SCViewDescription vd, int flags)
Instantiates a new SCBaseControllerCursorAdapter.
SCBaseControllerArrayAdapter(Context context, List<T> objects, int itemLayout, F controllerFactory, int flags)
Instantiates a new SCBaseControllerCursorAdapter.
Public Methods
View getItemView(int position, View convertView, ViewGroup parent)
void onBindView(int position, View view, Context context, T data)
Protected Methods
abstract D onCreateDecorator(M controller)
Creates a decorator for given controller.
SCViewDescription onCreateViewDescription(T data)
Creates a SCViewDescription for the given data
View onInflateView(LayoutInflater inflater, T data, ViewGroup parent)
Inflates a view for the given data.
M onNewController(Context context, int position, View view, T data)
Called to create a new controller for a given data
void onUpdateView(M controller, View v, T data)
called in #bindView(View, Context, Cursor) and after the controller took control of the item
[Expand]
Inherited Methods
From class com.c2call.sdk.lib.controlfoundation.adapters.SCSectionArrayAdapter
From class android.widget.ArrayAdapter
From class android.widget.BaseAdapter
From class java.lang.Object
From interface android.widget.Adapter
From interface android.widget.Filterable
From interface android.widget.ListAdapter
From interface android.widget.SectionIndexer
From interface android.widget.SpinnerAdapter

Public Constructors

public SCBaseControllerArrayAdapter (Context context, List<T> objects, int itemLayout, F controllerFactory, SCViewDescription vd, int flags)

Instantiates a new SCBaseControllerCursorAdapter.

Parameters
context the context
objects the objects of this adapter
itemLayout the item layout
controllerFactory the controller factory for the items
vd the view description of the items. May be null, if onCreateViewDescription(Object) is overridden
flags additional flags that will be passed to each item

public SCBaseControllerArrayAdapter (Context context, List<T> objects, int itemLayout, F controllerFactory, int flags)

Instantiates a new SCBaseControllerCursorAdapter. If using this constructor you should really override onCreateViewDescription(Object)!

Parameters
context the context
objects the objects of this adapter
itemLayout the item layout
controllerFactory the controller factory for the items
flags additional flags that will be passed to each item

Public Methods

public View getItemView (int position, View convertView, ViewGroup parent)

public void onBindView (int position, View view, Context context, T data)

Protected Methods

protected abstract D onCreateDecorator (M controller)

Creates a decorator for given controller. This decorator will be used to decorate the item.

Parameters
controller of the current item
Returns
  • a decortator.

protected SCViewDescription onCreateViewDescription (T data)

Creates a SCViewDescription for the given data

Parameters
data the data to create a SCViewDescription for
Returns

protected View onInflateView (LayoutInflater inflater, T data, ViewGroup parent)

Inflates a view for the given data. This method is called by #newView(Context, Cursor, ViewGroup)

Parameters
inflater the inflater that is used the inflate the view
data the result of #onCreateData(Cursor)
parent the parent View where this view will be atteched to. May be null.

protected M onNewController (Context context, int position, View view, T data)

Called to create a new controller for a given data

Parameters
context the context.
view the view that is needed to create a controller
data the data to create a controller for
Returns
  • a controller that will control the current item

protected void onUpdateView (M controller, View v, T data)

called in #bindView(View, Context, Cursor) and after the controller took control of the item

Parameters
controller the controller of the item
v the view of the item
data the data of the item