org.arakhne.afc.ui.android.filechooser
public class FileListFragment extends android.support.v4.app.ListFragment implements android.support.v4.app.LoaderManager.LoaderCallbacks<List<File>>
The path to open at startup should be stored in the argument with the name "path".
| Constructor and Description |
|---|
FileListFragment() |
| Modifier and Type | Method and Description |
|---|---|
static FileListFragment |
newInstance(File path,
FileFilter fileFilter,
FileChooserIconSelector iconSelector) |
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.support.v4.content.Loader<List<File>> |
onCreateLoader(int id,
android.os.Bundle args) |
void |
onListItemClick(android.widget.ListView l,
android.view.View v,
int position,
long id) |
void |
onLoaderReset(android.support.v4.content.Loader<List<File>> loader) |
void |
onLoadFinished(android.support.v4.content.Loader<List<File>> loader,
List<File> data) |
void |
setFileFilter(FileFilter fileFilter)
Set the filte filter to use.
|
void |
setIconSelector(FileChooserIconSelector iconSelector)
Set the icon selector to use.
|
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onCreateView, onDestroyView, onViewCreated, setEmptyText, setListAdapter, setListShown, setListShownNoAnimation, setSelectiondump, equals, getActivity, getArguments, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenupublic static FileListFragment newInstance(File path, FileFilter fileFilter, FileChooserIconSelector iconSelector)
path - is the he absolute path of the file (directory) to display.fileFilter - is the file filter to use.iconSelector - is the selector of icon.public void onCreate(android.os.Bundle savedInstanceState)
onCreate in class android.support.v4.app.Fragmentpublic void setFileFilter(FileFilter fileFilter)
fileFilter - public void setIconSelector(FileChooserIconSelector iconSelector)
iconSelector - public void onActivityCreated(android.os.Bundle savedInstanceState)
onActivityCreated in class android.support.v4.app.Fragmentpublic void onListItemClick(android.widget.ListView l,
android.view.View v,
int position,
long id)
onListItemClick in class android.support.v4.app.ListFragmentpublic android.support.v4.content.Loader<List<File>> onCreateLoader(int id, android.os.Bundle args)
public void onLoadFinished(android.support.v4.content.Loader<List<File>> loader, List<File> data)
Copyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor