-
Notifications
You must be signed in to change notification settings - Fork 141
Dialog Properties
The DialogProperties class define properties of the Dialog. Various actions like selection, filtering are performed upon these Properties.
| Public constructors |
|---|
DialogProperties() Creates a DialogProperties reference which is a wrapper for all Properties of Dialog. |
| Public Variables | |
|---|---|
selection_mode |
int: Selection Mode defines whether a single of multiple Files/Directories have to be selected. |
selection_type |
int: Selection Type defines whether a File/Directory or both of these has to be selected. |
root |
File: The Parent/Root Directory. List of Files are populated from here. Can be set to any readable directory. |
error_dir |
File: The Directory is used when Root Directory is not readable or accessible. /sdcard is the default location. |
extensions |
String[]: An Array of String containing extensions, Files with only that will be shown. Others will be ignored. |
###DialogProperties
DialogProperties()
Creates a DialogProperties reference which is a wrapper for all Properties of Dialog.
Initializes Dialog Properties to default values. ie.
- Sets
selection_modeto Single File/Directory Selection. - Sets
selection_typeto File. - Instantiates
rootwith SDCard Location. ie. /sdcard. - Instantiates
error_dirwith SDCard Location. ie. /sdcard. - Initializes
extensionswith null.
###selection_mode Selection Mode defines whether a single of multiple Files/Directories have to be selected.
SINGLE_MODE and MULTI_MODE are the two selection modes, See DialogConfigs for more info.
Is set to SINGLE_MODE as default value by constructor.
###selection_type Selection Type defines that whether a File/Directory or both of these has to be selected.
FILE_SELECT ,DIR_SELECT, FILE_AND_DIR_SELECT are the three selection modes, See DialogConfigs for more info. Set to FILE_SELECT as default value by constructor.
###root The Parent/Root Directory. List of Files are populated from here. Can be set to any readable directory. '/sdcard' is the default location. Note: You cannot go before/above root directory.
Eg. /sdcard
Eg. /mnt
###error_dir The Directory is used when Root Directory is not readable or accessible. '/sdcard' is the default location. Note: You cannot go before/above root directory.
Eg. /sdcard
Eg. /mnt
###extensions An Array of String containing extensions, Files with only that will be shown. Others will be ignored. Set to null as default value by constructor.
Eg. String ext={"jpg","jpeg","png","gif"};