de.unikassel.android.sdcframework.app
Class FileListAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<File>
de.unikassel.android.sdcframework.app.FileListAdapter
- All Implemented Interfaces:
- Adapter, Filterable, ListAdapter, SpinnerAdapter
public class FileListAdapter
- extends ArrayAdapter<File>
A simple file list adapter.
Methods inherited from class android.widget.ArrayAdapter |
add, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private final Activity context
- The activity context.
filter
private final FileMatcherFilter filter
- The file matcher filter.
FileListAdapter
public FileListAdapter(Activity context,
FileMatcherFilter filter)
- Constructor
- Parameters:
context
- the activity contextfilter
- a regular file pattern expression
getView
public View getView(int position,
View convertView,
ViewGroup parent)
- Specified by:
getView
in interface Adapter
- Overrides:
getView
in class ArrayAdapter<File>
setDirectory
public void setDirectory(File dir)
- File list update method.
- Parameters:
dir
- the directory