Полезная информация

Java AWT

Previous Chapter 23
java.awt.peer Reference
Next
 

FileDialogPeer

Name

FileDialogPeer

[Graphic: Figure from the text]

Description

FileDialogPeer is an interface that defines the basis for a file dialog box.

Interface Definition

public abstract interface java.awt.peer.FileDialogPeer
   extends java.awt.peer.DialogPeer {
  // Interface Methods
  public abstract void setDirectory (String directory);
  public abstract void setFile (String file);
  public abstract void setFilenameFilter (FilenameFilter filter);
}

Interface Methods

setDirectory

public abstract void setDirectory (String directory)

Parameters

directory

Initial directory for file dialog's peer.

Description

Changes the directory displayed in the file dialog's peer.

setFile

public abstract void setFile (String file)

Parameters

file

Initial filename for the file dialog's peer.

Description

Changes the default file selection for the file dialog's peer.

setFilenameFilter

public abstract void setFilenameFilter (FilenameFilter filter)

Parameters

filter

Initial filter for file dialog's peer.

Description

Changes the current filename filter of the file dialog's peer.

See Also

DialogPeer, FilenameFilter, String


Previous Home Next
DialogPeer Book Index FontPeer (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java