@mozilla.org/filepicker;1
This component implements the following interfaces:
Constants
Properties
AString nsIFilePicker.defaultExtension
The extension that should be associated with files of the type we want to work with. On some platforms, this extension will be automatically appended to filenames the user enters, if needed.
AString nsIFilePicker.defaultString
The filename that should be suggested to the user as a default.
nsILocalFile nsIFilePicker.displayDirectory
Set the directory that the file open/save dialog initially displays
readonly nsILocalFile nsIFilePicker.file
Get the nsILocalFile for the file or directory.
readonly nsISimpleEnumerator nsIFilePicker.files
Get the enumerator for the selected files only works in the modeOpenMultiple mode
readonly nsIFileURL nsIFilePicker.fileURL
Get the nsIFileURL for the file or directory.
PRInt32 nsIFilePicker.filterIndex
The filter which is currently selected in the File Picker dialog
Methods
| Interface | Method |
|---|---|
| nsIFilePicker |
void appendFilter ( AString title , AString filter )
|
| nsIFilePicker |
void appendFilters ( PRInt32 filterMask )
|
| nsIFilePicker |
void init ( nsIDOMWindow parent , AString title , PRInt16 mode )
|
| nsIFilePicker |
PRInt16 show ( )
|
Reference documentation is generated from Mozilla's source.
