All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.FileDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----java.awt.FileDialog
- public class FileDialog
- extends Dialog
The File Dialog class displays a file selection dialog. It is a
modal dialog and will block the calling thread when the show method
is called to display it, until the user has chosen a file.
- See Also:
- show
-
LOAD
- The file load variable.
-
SAVE
- The file save variable.
-
FileDialog(Frame)
- Creates a file dialog for loading a file.
-
FileDialog(Frame, String)
- Creates a file dialog for loading a file.
-
FileDialog(Frame, String, int)
- Creates a file dialog with the specified title and mode.
-
addNotify()
- Creates the file dialog's peer.
-
getDirectory()
- Gets the directory of the Dialog.
-
getFile()
- Gets the file of the Dialog.
-
getFilenameFilter()
- Gets the filter.
-
getMode()
- Gets the mode of the file dialog.
-
paramString()
- Returns the parameter String of this file dialog.
-
setDirectory(String)
- Set the directory of the Dialog to the specified directory.
-
setFile(String)
- Sets the file for this dialog to the specified file.
-
setFilenameFilter(FilenameFilter)
- Sets the filter for this dialog to the specified filter.
-
setMode(int)
- Sets the mode of the file dialog.
LOAD
Properties Public Constant
LOAD=int
- The file load variable.
SAVE
Properties Public Constant
SAVE=int
- The file save variable.
FileDialog
method FileDialog(parent=Frame) public
- Creates a file dialog for loading a file. The title of the
file dialog is initialy empty.
- Parameters:
- parent - the owner of the dialog
FileDialog
method FileDialog(parent=Frame, -
title=String) public
- Creates a file dialog for loading a file.
- Parameters:
- parent - the owner of the dialog
- title - the title of the Dialog
FileDialog
method FileDialog(parent=Frame, -
title=String, -
mode=int) public
- Creates a file dialog with the specified title and mode.
- Parameters:
- parent - the owner of the dialog
- title - the title of the Dialog
- mode - the mode of the Dialog
addNotify
method addNotify() public
- Creates the file dialog's peer. The peer allows us to change the look
of the file dialog without changing its functionality.
- Overrides:
- addNotify in class Dialog
getMode
method getMode() returns int public
- Gets the mode of the file dialog. The mode determines whether
this file dialog will be used for loading a file (LOAD) or
saving a file (SAVE).
setMode
method setMode(mode=int) public
- Sets the mode of the file dialog.
- Parameters:
- mode - the mode (LOAD or SAVE) for this file dialog.
getDirectory
method getDirectory() returns String public
- Gets the directory of the Dialog.
setDirectory
method setDirectory(dir=String) public protect
- Set the directory of the Dialog to the specified directory.
- Parameters:
- dir - the specific directory
getFile
method getFile() returns String public
- Gets the file of the Dialog.
setFile
method setFile(file=String) public protect
- 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
getFilenameFilter
method getFilenameFilter() returns FilenameFilter public
- Gets the filter.
setFilenameFilter
method setFilenameFilter(filter=FilenameFilter) public protect
- Sets the filter for this dialog to the specified filter.
- Parameters:
- filter - the specified filter
paramString
method paramString() returns String Inheritable
- Returns the parameter String of this file dialog.
Parameter String.
- Overrides:
- paramString in class Dialog
All Packages Class Hierarchy This Package Previous Next Index