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>> |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Instantiates a new SCBaseControllerCursorAdapter.
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 |
Instantiates a new SCBaseControllerCursorAdapter. If using this
constructor you should really override
onCreateViewDescription(Object)
!
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 |
Creates a decorator for given controller. This decorator will be used to decorate the item.
controller | of the current item |
---|
Creates a SCViewDescription
for the given data
data | the data to create a SCViewDescription for |
---|
Inflates a view for the given data
. This method is called by
#newView(Context, Cursor, ViewGroup)
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. |
Called to create a new controller for a given data
context | the context. |
---|---|
view | the view that is needed to create a controller |
data | the data to create a controller for |
called in #bindView(View, Context, Cursor) and after the
controller
took control of the item
controller | the controller of the item |
---|---|
v | the view of the item |
data | the data of the item |