public abstract class TableHeaderAdapter
extends android.widget.ArrayAdapter
TableHeaderView.| Modifier | Constructor and Description |
|---|---|
|
TableHeaderAdapter(android.content.Context context)
Creates a new TableHeaderAdapter.
|
protected |
TableHeaderAdapter(android.content.Context context,
int columnCount)
Creates a new TableHeaderAdapter.
|
protected |
TableHeaderAdapter(android.content.Context context,
TableColumnModel columnModel)
Creates a new TableHeaderAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getColumnCount()
Gives the column count that is currently used to render the table headers.
|
protected TableColumnModel |
getColumnModel()
Gives the
TableColumnWeightModel that is currently used to render the table headers. |
android.content.Context |
getContext()
Gives the
Context of this adapter. |
int |
getCount() |
abstract android.view.View |
getHeaderView(int columnIndex,
android.view.ViewGroup parentView)
Method that gives the header views for the different columns.
|
android.view.LayoutInflater |
getLayoutInflater()
Gives the
LayoutInflater of this adapter. |
android.content.res.Resources |
getResources()
Gives the
Resources of this adapter. |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
protected void |
setColumnCount(int columnCount)
Sets the column count which is used to render the table headers.
|
protected void |
setColumnModel(TableColumnModel columnModel)
Sets the
TableColumnModel that will be used to render the table headers. |
add, addAll, addAll, clear, createFromResource, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sortareAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic TableHeaderAdapter(android.content.Context context)
context - The context that shall be used.protected TableHeaderAdapter(android.content.Context context,
int columnCount)
context - The context that shall be used.columnCount - The number of columns.protected TableHeaderAdapter(android.content.Context context,
TableColumnModel columnModel)
context - The context that shall be used.columnModel - The column model to be used.public android.content.Context getContext()
Context of this adapter. (Hint: use this method in the getHeaderView()-method
to programmatically initialize new views.)getContext in class android.widget.ArrayAdapterContext of this adapter.public android.view.LayoutInflater getLayoutInflater()
LayoutInflater of this adapter. (Hint: use this method in the
getHeaderView()-method to inflate xml-layout-files.)LayoutInflater of this adapter.public android.content.res.Resources getResources()
Resources of this adapter. (Hint: use this method in the
getHeaderView()-method to resolve resources.)Resources of the context of this adapter.protected TableColumnModel getColumnModel()
TableColumnWeightModel that is currently used to render the table headers.TableColumnModel which is currently used.protected void setColumnModel(TableColumnModel columnModel)
TableColumnModel that will be used to render the table headers.columnModel - The TableColumnModel that should be used.protected int getColumnCount()
protected void setColumnCount(int columnCount)
columnCount - The column count that should be set.public int getCount()
getCount in interface android.widget.AdaptergetCount in class android.widget.ArrayAdapterpublic final android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
getView in interface android.widget.AdaptergetView in class android.widget.ArrayAdapterpublic abstract android.view.View getHeaderView(int columnIndex,
android.view.ViewGroup parentView)
columnIndex - The index of the column to return the header view.parentView - The view to which the returned view will be added.