Class FileChooser
All Packages Class Hierarchy This Package Previous Next Index
Class FileChooser
public class netscape.application.FileChooser
extends java.lang.Object
{
/* Fields
*/
public final static int LOAD_TYPE;
public final static int SAVE_TYPE;
/* Constructors
*/
public FileChooser(RootView, String, int);
/* Methods
*/
public String directory();
public String file();
public java.io.FilenameFilter filenameFilter();
public void setDirectory(String);
public void setFile(String);
public void setFilenameFilter(FilenameFilter);
public void setTitle(String);
public void showModally();
public String title();
public int type();
}
Object subclass allowing the user to select a file. FileChooser creates
a a modal window, blocking the calling thread and remaining onscreen until
the user dismisses it.
Fields
LOAD_TYPE
public final static int LOAD_TYPE
- Type used to create a FileChooser that loads files.
SAVE_TYPE
public final static int SAVE_TYPE
- Type used to create a FileChooser that saves files.
Constructors
.FileChooser
public FileChooser(RootView rootView,
String title,
int type)
- Constructs a FileChooser associated with the RootView
rootView, with title title and type type.
- See Also:
- RootView, Application
Methods
public int type()
- Returns the FileChooser's type, either LOAD_TYPE or SAVE_TYPE.
public void setDirectory(String directory)
- Sets the FileChooser to the specified directory.
public String directory()
- Returns the FileChooser's current directory.
- See Also:
- setDirectory
public void setFile(String filePath)
- Sets the FileChooser to the specified file.
public String file()
- Returns the FileChooser's current file.
- See Also:
- setFile
public void setFilenameFilter(java.io.FilenameFilter aFilter)
- Sets the filename filter.
public java.io.FilenameFilter filenameFilter()
- Returns the filename filter.
- See Also:
- setFilenameFilter
public void setTitle(String title)
- Sets the FileChooser's Window's title.
public String title()
- Returns the FileChooser's Window's title.
- See Also:
- setTitle
public void showModally()
- Brings the FileChooser onscreen.
All Packages Class Hierarchy This Package Previous Next Index
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Oct 1997