home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- import java.awt.FileDialog;
- import java.io.FilenameFilter;
- import netscape.util.InconsistencyException;
-
- public class FileChooser {
- FileDialog awtDialog;
- int type;
- public static final int LOAD_TYPE = 0;
- public static final int SAVE_TYPE = 1;
-
- public FileChooser(RootView var1, String var2, int var3) {
- if (var1 == null) {
- throw new InconsistencyException("No rootView for FileChooser");
- } else {
- this.type = var3;
- byte var4;
- if (var3 == 1) {
- var4 = 1;
- } else {
- var4 = 0;
- }
-
- this.awtDialog = new FileDialog(var1.panel().frame(), var2, var4);
- }
- }
-
- public int type() {
- return this.type;
- }
-
- public void setDirectory(String var1) {
- this.awtDialog.setDirectory(var1);
- }
-
- public String directory() {
- return this.awtDialog.getDirectory();
- }
-
- public void setFile(String var1) {
- this.awtDialog.setFile(var1);
- }
-
- public String file() {
- return this.awtDialog.getFile();
- }
-
- public void setFilenameFilter(FilenameFilter var1) {
- this.awtDialog.setFilenameFilter(var1);
- }
-
- public FilenameFilter filenameFilter() {
- return this.awtDialog.getFilenameFilter();
- }
-
- public void setTitle(String var1) {
- this.awtDialog.setTitle(var1);
- }
-
- public String title() {
- return this.awtDialog.getTitle();
- }
-
- public void showModally() {
- this.awtDialog.show();
- }
- }
-