public abstract class TableDataAdapter<T>
extends android.widget.ArrayAdapter<T>
TableView.| Modifier | Constructor and Description |
|---|---|
protected |
TableDataAdapter(android.content.Context context,
int columnCount,
java.util.List<T> data)
Creates a new TableDataAdapter.
|
|
TableDataAdapter(android.content.Context context,
java.util.List<T> data)
Creates a new TableDataAdapter.
|
|
TableDataAdapter(android.content.Context context,
T[] data)
Creates a new TableDataAdapter.
|
protected |
TableDataAdapter(android.content.Context context,
TableColumnModel columnModel,
java.util.List<T> data)
Creates a new TableDataAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
abstract android.view.View |
getCellView(int rowIndex,
int columnIndex,
android.view.ViewGroup parentView)
Method that gives the cell views for the different table cells.
|
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. |
java.util.List<T> |
getData()
Gives the data that is set to this adapter.
|
android.view.LayoutInflater |
getLayoutInflater()
Gives the
LayoutInflater of this adapter. |
android.content.res.Resources |
getResources()
Gives the
Resources of this adapter. |
T |
getRowData(int rowIndex)
Gives the data object that shall be displayed in the row with the given index.
|
android.view.View |
getView(int rowIndex,
android.view.View convertView,
android.view.ViewGroup parent) |
protected void |
setColumnModel(TableColumnModel columnModel)
Sets the
TableColumnModel that will be used to render the table cells. |
protected void |
setRowBackgroundProvider(TableDataRowBackgroundProvider<? super T> rowBackgroundProvider)
Sets the
TableDataRowBackgroundProvider that will be used to define the table data rows background. |
add, addAll, addAll, clear, createFromResource, getCount, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sortareAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverpublic TableDataAdapter(android.content.Context context,
T[] data)
context - The context that shall be used.data - The data that shall be displayed.public TableDataAdapter(android.content.Context context,
java.util.List<T> data)
context - The context that shall be used.data - The data that shall be displayed.protected TableDataAdapter(android.content.Context context,
int columnCount,
java.util.List<T> data)
context - The context that shall be used.columnCount - The number of columns.data - The data which shall be displayed in the table.protected TableDataAdapter(android.content.Context context,
TableColumnModel columnModel,
java.util.List<T> data)
context - The context that shall be used.columnModel - The column model to be used.data - The data which shall be displayed in the table.public T getRowData(int rowIndex)
rowIndex - The index of the row to get the data for.public java.util.List<T> getData()
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.ArrayAdapter<T>Context 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 the context of this adapter.public android.content.res.Resources getResources()
Resources of this adapter. (Hint: use this method in the
getCellView()-method to resolve resources.)Resources of the context of this adapter.public abstract android.view.View getCellView(int rowIndex,
int columnIndex,
android.view.ViewGroup parentView)
rowIndex - The index of the row to return the table cell view.columnIndex - The index of the column to return the table cell view.parentView - The view to which the returned view will be added.public final android.view.View getView(int rowIndex,
android.view.View convertView,
android.view.ViewGroup parent)
getView in interface android.widget.AdaptergetView in class android.widget.ArrayAdapter<T>protected void setRowBackgroundProvider(TableDataRowBackgroundProvider<? super T> rowBackgroundProvider)
TableDataRowBackgroundProvider that will be used to define the table data rows background.rowBackgroundProvider - The TableDataRowBackgroundProvider that shall be used.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 cells.columnModel - The TableColumnModel that should be set.