public abstract class TableDataAdapter<T> extends
TableView
.Constructor and Description |
---|
TableDataAdapter(Context context,
java.util.List<T> data)
Creates a new TableDataAdapter.
|
TableDataAdapter(Context context,
T[] data)
Creates a new TableDataAdapter.
|
Modifier and Type | Method and Description |
---|---|
abstract View |
getCellView(int rowIndex,
int columnIndex,
ViewGroup parentView)
Method that gives the cell views for the different table cells.
|
Context |
getContext()
Gives the
Context of this adapter. |
java.util.List<T> |
getData()
Gives the data that is set to this adapter.
|
LayoutInflater |
getLayoutInflater()
Gives the
LayoutInflater of this adapter. |
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.
|
View |
getView(int rowIndex,
View convertView,
ViewGroup parent) |
public TableDataAdapter(Context context, T[] data)
context
- The context that shall be used.public TableDataAdapter(Context context, java.util.List<T> data)
context
- The context that shall be used.public T getRowData(int rowIndex)
rowIndex
- The index of the row to get the data for.public java.util.List<T> getData()
public Context getContext()
Context
of this adapter. (Hint: use this method in the getHeaderView()
-method
to programmatically initialize new views.)Context
of this adapter.public 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 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 View getCellView(int rowIndex, int columnIndex, 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 View getView(int rowIndex, View convertView, ViewGroup parent)