public abstract class

GenericListPickerFormCellAdapter

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.fiori.formcell.GenericListPickerFormCellAdapter<V extends android.view.View, T extends java.io.Serializable>

Summary

Public Constructors
GenericListPickerFormCellAdapter()
Protected Methods
abstract T getId(int pos)
Given the position get the Id of the element.
int getItemBottomMargin(Context context)
Get the bottom margin to be applied to the item view while putting it into Picker Cell
abstract int getItemCount()
How many types of View to be inflated in the list filter
int getItemTopMargin(Context context)
Get the top margin to be applied to the item view while putting it into Picker Cell
abstract int getItemViewType(int position)
Type of View to be inflated in the list filter at index represented by position
int getSelectorBottomMargin(Context context)
Get the bottom margin to be applied to the selector view (Radio or checkbox)
int getSelectorGravity()
Get the gravity of the selector drawable
int getSelectorTopMargin(Context context)
Get the top margin to be applied to the item view while putting it into Picker Cell
void onBindPosition(int pos)
A callback mechanism to notify the user that view at given position was just loaded.
abstract void onBindView(V view, T id)
Bind the view for the data at position represented by position
abstract V onCreateView(int viewType, Context context)
Create the view of type represented by viewType and context
void onSelectionChanged(T id, boolean isSelected)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GenericListPickerFormCellAdapter ()

Protected Methods

protected abstract T getId (int pos)

Given the position get the Id of the element.

Parameters
pos position

protected int getItemBottomMargin (Context context)

Get the bottom margin to be applied to the item view while putting it into Picker Cell

Returns
  • bottom margin

protected abstract int getItemCount ()

How many types of View to be inflated in the list filter

Returns
  • int

protected int getItemTopMargin (Context context)

Get the top margin to be applied to the item view while putting it into Picker Cell

Returns
  • top margin

protected abstract int getItemViewType (int position)

Type of View to be inflated in the list filter at index represented by position

Parameters
position int
Returns
  • int

protected int getSelectorBottomMargin (Context context)

Get the bottom margin to be applied to the selector view (Radio or checkbox)

Returns
  • bottom margin

protected int getSelectorGravity ()

Get the gravity of the selector drawable

protected int getSelectorTopMargin (Context context)

Get the top margin to be applied to the item view while putting it into Picker Cell

Returns
  • top margin

protected void onBindPosition (int pos)

A callback mechanism to notify the user that view at given position was just loaded.

Parameters
pos int

protected abstract void onBindView (V view, T id)

Bind the view for the data at position represented by position

Parameters
view View
id int

protected abstract V onCreateView (int viewType, Context context)

Create the view of type represented by viewType and context

Parameters
viewType int
context Context
Returns
  • View

protected void onSelectionChanged (T id, boolean isSelected)