Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
OpenDialog Class Reference

Public Member Functions

 OpenDialog (String title, String path)
 
 OpenDialog (String title, String defaultDir, String defaultName)
 
String getDirectory ()
 
String getFileName ()
 

Static Public Member Functions

static String getDefaultDirectory ()
 
static void setDefaultDirectory (String defaultDir)
 

Detailed Description

This class displays a dialog window from which the user can select an input file.

Definition at line 13 of file OpenDialog.java.

Constructor & Destructor Documentation

OpenDialog ( String  title,
String  path 
)
inline

Displays a file open dialog with 'title' as the title. If 'path' is non-blank, it is used and the dialog is not displayed. Uses and updates the ImageJ default directory.

Definition at line 26 of file OpenDialog.java.

OpenDialog ( String  title,
String  defaultDir,
String  defaultName 
)
inline

Displays a file open dialog, using the specified default directory and file name.

Definition at line 40 of file OpenDialog.java.

Member Function Documentation

static String getDefaultDirectory ( )
inlinestatic

Returns the current working directory, which my be null.

Definition at line 99 of file OpenDialog.java.

String getDirectory ( )
inline

Returns the selected directory.

Definition at line 87 of file OpenDialog.java.

String getFileName ( )
inline

Returns the selected file name.

Definition at line 92 of file OpenDialog.java.


The documentation for this class was generated from the following file: