[scriptable, uuid(d24ef0aa-d555-4117-84af-9cbbb7406909)]
Constants
Attributes
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.
The filename that should be suggested to the user as a default. @throws NS_ERROR_FAILURE on attempts to get
Set the directory that the file open/save dialog initially displays @param displayDirectory the name of the directory
Get the nsILocalFile for the file or directory. @return Returns the file currently selected
Get the nsIURI for the file or directory. @return Returns the file currently selected
Get the enumerator for the selected files only works in the modeOpenMultiple mode @return Returns the files currently selected
Methods
Add a filter @param title name of the filter @param filter extensions to filter -- semicolon and space separated
Append to the filter list with things from the predefined list @param filters mask of filters i.e. (filterAll | filterHTML)
Initialize the file picker widget. The file picker is not valid until this
method is called.
@param parent nsIDOMWindow parent. This dialog will be dependent
on this parent. parent must be non-null.
@param title The title for the file widget
@param mode load, save, or get folder
Compare to:
