LocalResourceSelectDialog

public class LocalResourceSelectDialog extends StyledDialogFragment implements LoaderManager.LoaderCallbacks<List<LocalResourceListItem>>, LocalResourceListAdapter.OnChangePathListener, ListSelectorAdapter.OnSelectionChangedListener

Fields

KEY_CAN_SEL_MULTI

protected static final String KEY_CAN_SEL_MULTI

KEY_MASK

protected static final String KEY_MASK

KEY_PATH

protected static final String KEY_PATH

KEY_SELECTED_ITEMS

protected static final String KEY_SELECTED_ITEMS

KEY_WRITABLE

protected static final String KEY_WRITABLE

mAdapter

protected LocalResourceListAdapter mAdapter

mCanSelectMulti

protected boolean mCanSelectMulti

mCanWrite

protected boolean mCanWrite

mOnSelectionListener

protected OnSelectionListener mOnSelectionListener

mPath

protected File mPath

mSavedPathList

protected ArrayList<String> mSavedPathList

mTypeMask

protected int mTypeMask

Methods

onChangePath

public void onChangePath(File path)

onCreate

public void onCreate(Bundle savedInstanceState)

onCreateLoader

public Loader<List<LocalResourceListItem>> onCreateLoader(int id, Bundle args)

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

onLoadFinished

public void onLoadFinished(Loader<List<LocalResourceListItem>> loader, List<LocalResourceListItem> resources)

onLoaderReset

public void onLoaderReset(Loader<List<LocalResourceListItem>> loader)

onSaveInstanceState

public void onSaveInstanceState(Bundle outState)

onSelectionChanged

public void onSelectionChanged(int position, boolean selection)

setCanSelectMultiple

public LocalResourceSelectDialog setCanSelectMultiple(boolean can)

setOnSelectionListener

public void setOnSelectionListener(OnSelectionListener onSelectionListener)

setPath

public LocalResourceSelectDialog setPath(File path)

setTypeMask

public LocalResourceSelectDialog setTypeMask(int typeMask)

setWritable

public LocalResourceSelectDialog setWritable(boolean can)