borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

Filer component

java.lang.Object
   +----borland.jbcl.control.Filer

About the Filer component

Variables  Constructors  Properties  Methods  

Implements WindowListener, EventListener

A File Open or File Save dialog box component.


Filer variables

Variables implemented in this class

Filer constructors

Filer properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

Filer methods

Methods implemented in this class

Methods implemented in java.lang.Object


Filer variables

LOAD

  public static final int LOAD = FileDialog.LOAD

SAVE

  public static final int SAVE = FileDialog.SAVE

dialog

  protected FileDialog dialog

dir

  protected String dir

file

  protected String file

filter

  protected FilenameFilter filter

frame

  protected Frame frame

mode

  protected int mode

title

  protected String title

Filer constructors

Filer()

  public Filer()
Constructs a File Open dialog box with no title-bar text.

Filer(java.awt.Frame)

  public Filer(java.awt.Frame frame)
Constructs a File Open dialog box with the specified parent frame and no title-bar text.

Parameters:

frame
The parent frame of the dialog box.

Filer(java.awt.Frame, java.lang.String)

  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:

frame
The parent frame of the dialog box.
title
The title-bar text of the dialog box.

Filer(java.awt.Frame, java.lang.String, int)

  public Filer(java.awt.Frame frame, java.lang.String title, int mode)
Constructs a File Open or File Save dialog box.

Parameters:

frame
The parent frame of the dialog box.
title
The title-bar text of the dialog box.
mode
Can be LOAD (for a File Open dialog box) or SAVE (for a File Save dialog box).

Filer properties

directory

 public String getDirectory()
 public void setDirectory(java.lang.String dir)
Specifies the directory selected in the dialog.

file

 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:

file
The file being set.

filenameFilter

 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:

filter
The specified filter.

frame

 public Frame getFrame()
 public void setFrame(java.awt.Frame frame)
The parent frame of the dialog box.

mode

 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).

title

 public String getTitle()
 public void setTitle(java.lang.String title)
The title-bar text of the dialog box.

visible

 public boolean isVisible()
 public void setVisible(boolean visible)
Makes the dialog box visible.


Filer methods

show()

  public void show()
Displays the dialog box using java.awt.Dialog.show().