Package gov.nih.mipav.view
Class ViewDirectoryChooser
- java.lang.Object
-
- gov.nih.mipav.view.ViewDirectoryChooser
-
public class ViewDirectoryChooser extends java.lang.Object
THIS CLASS IS MOST LIKELY TO BE DESTROYED!!!!!!!!!! Displays a chooser for selecting a directory.- Version:
- 0.1 Dec. 6, 2001
- Author:
- Lynne Pusanik
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
directory
DOCUMENT ME!private java.awt.Component
parentFrame
DOCUMENT ME!private ViewUserInterface
UI
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description ViewDirectoryChooser()
Creates a dialog for choosing a directory.ViewDirectoryChooser(java.awt.Component parent)
Creates a dialog for choosing a directory with a parent frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
chooseDirectory(java.lang.String initialDirectory)
Shows the file dialogs with the given directory as the default.java.lang.String
getDirectory()
Displays a dialog to select a directory, with the script directory as the default.java.lang.String
getImageDirectory()
Displays a dialog to select a directory, with the image directory as the default.
-
-
-
Field Detail
-
directory
private java.lang.String directory
DOCUMENT ME!
-
parentFrame
private java.awt.Component parentFrame
DOCUMENT ME!
-
UI
private ViewUserInterface UI
DOCUMENT ME!
-
-
Method Detail
-
chooseDirectory
public java.lang.String chooseDirectory(java.lang.String initialDirectory)
Shows the file dialogs with the given directory as the default.- Parameters:
initialDirectory
- Initial directory.- Returns:
- Directory chosen by user.
-
getDirectory
public java.lang.String getDirectory()
Displays a dialog to select a directory, with the script directory as the default.- Returns:
- Directory chosen by user.
-
getImageDirectory
public java.lang.String getImageDirectory()
Displays a dialog to select a directory, with the image directory as the default.- Returns:
- Directory chosen by user.
-
-