borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----borland.jbcl.control.Filer
Variables Constructors Properties Methods
Implements WindowListener, EventListener
A File Open or File Save dialog box component.
public static final int LOAD = FileDialog.LOAD
public static final int SAVE = FileDialog.SAVE
protected FileDialog dialog
protected String dir
protected String file
protected FilenameFilter filter
protected Frame frame
protected int mode
protected String title
public Filer()Constructs a File Open dialog box with no title-bar text.
public Filer(java.awt.Frame frame)Constructs a File Open dialog box with the specified parent frame and no title-bar text.
Parameters:
public Filer(java.awt.Frame frame, java.lang.String title)Constructs a File Open dialog box with the specified parent frame and title-bar text.
Parameters:
public Filer(java.awt.Frame frame, java.lang.String title, int mode)Constructs a File Open or File Save dialog box.
Parameters:
public String getDirectory() public void setDirectory(java.lang.String dir)Specifies the directory selected in the dialog.
public String getFile() public void setFile(java.lang.String file)Gets the file of the Dialog. Sets the file for this dialog to the specified file. This will become the default file if set before the dialog is shown.
Parameters:
public FilenameFilter getFilenameFilter() public void setFilenameFilter(java.io.FilenameFilter filter)For the Show Files Of Type drop-down list. Gets the filter, or sets the filter for this dialog to the specified filter.
Parameters:
public Frame getFrame() public void setFrame(java.awt.Frame frame)The parent frame of the dialog box.
public int getMode() public void setMode(int m)Can be LOAD (for a File Open dialog box) or SAVE (for a File Save dialog box).
public String getTitle() public void setTitle(java.lang.String title)The title-bar text of the dialog box.
public boolean isVisible() public void setVisible(boolean visible)Makes the dialog box visible.
public void show()Displays the dialog box using java.awt.Dialog.show().