public class ImportFileBrowserDialog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ImportFileBrowserDialog.DialogDismissed |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
ImportFileBrowserDialog(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
ImportFileBrowserDialog |
setExtensionTypes(java.lang.String... exts)
Set which file extensions should be displayed by the browser
|
ImportFileBrowserDialog |
setOnDismissListener(ImportFileBrowserDialog.DialogDismissed l)
Set a listener to be used when a file is selected or the dialog is closed
|
ImportFileBrowserDialog |
setStartDirectory(java.io.File dir) |
ImportFileBrowserDialog |
setStartDirectory(java.lang.String path)
Set the default directory to display when opening this browser
|
ImportFileBrowserDialog |
setTitle(java.lang.String title)
Set the title of the dialog
|
ImportFileBrowserDialog |
setUseProvider(boolean useIoProvider)
Set whether to use the file IO provider proxy or the default
|
void |
show()
Show the dialog
|
static void |
show(java.lang.String title,
java.lang.String[] extensionTypes,
ImportFileBrowserDialog.DialogDismissed dismissed,
android.content.Context context)
Produce a file browser without a defined location, uses the last recorded location.
|
static void |
show(java.lang.String title,
java.lang.String[] extensionTypes,
ImportFileBrowserDialog.DialogDismissed dismissed,
android.content.Context context,
boolean useProvider)
Produce a file browser without a defined location, uses the last recorded location and
whether or not a IO Provider should be used.
|
static void |
show(java.lang.String title,
java.lang.String location,
java.lang.String[] extensionTypes,
ImportFileBrowserDialog.DialogDismissed dismissed,
android.content.Context context)
Produce a file browser with a defined location.
|
static void |
show(java.lang.String title,
java.lang.String location,
java.lang.String[] extensionTypes,
ImportFileBrowserDialog.DialogDismissed dismissed,
android.content.Context context,
boolean useProvider)
Produce a file browser with a defined location and whether or not a IO Provider should be used.
|
public static final java.lang.String TAG
public ImportFileBrowserDialog(MapView mapView)
public ImportFileBrowserDialog setTitle(java.lang.String title)
title
- Title stringpublic ImportFileBrowserDialog setExtensionTypes(java.lang.String... exts)
exts
- File extensionspublic ImportFileBrowserDialog setStartDirectory(java.lang.String path)
path
- Path to directorypublic ImportFileBrowserDialog setStartDirectory(java.io.File dir)
public ImportFileBrowserDialog setUseProvider(boolean useIoProvider)
useIoProvider
- True to use the proxy provider, false to use the defaultpublic void show()
public ImportFileBrowserDialog setOnDismissListener(ImportFileBrowserDialog.DialogDismissed l)
l
- Listenerpublic static void show(java.lang.String title, java.lang.String[] extensionTypes, ImportFileBrowserDialog.DialogDismissed dismissed, android.content.Context context)
public static void show(java.lang.String title, java.lang.String location, java.lang.String[] extensionTypes, ImportFileBrowserDialog.DialogDismissed dismissed, android.content.Context context)
public static void show(java.lang.String title, java.lang.String[] extensionTypes, ImportFileBrowserDialog.DialogDismissed dismissed, android.content.Context context, boolean useProvider)
useProvider
- if true
, the
IOProviderFactory
will be used for all filesystem interactions, else default
filesystem IO will be utilized.public static void show(java.lang.String title, java.lang.String location, java.lang.String[] extensionTypes, ImportFileBrowserDialog.DialogDismissed dismissed, android.content.Context context, boolean useProvider)
useProvider
- if true
, the
IOProviderFactory
will be used for all filesystem interactions, else default
filesystem IO will be utilized.