Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/io/OpenDialog.html
Дата изменения: Thu Dec 2 23:03:11 2010 Дата индексирования: Mon Oct 1 21:44:56 2012 Кодировка: Поисковые слова: mercury program |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.io.OpenDialog
public class OpenDialog
This class displays a dialog window from which the user can select an input file.
Constructor Summary | |
---|---|
OpenDialog(java.lang.String title,
java.lang.String path)
Displays a file open dialog with 'title' as the title. |
|
OpenDialog(java.lang.String title,
java.lang.String defaultDir,
java.lang.String defaultName)
Displays a file open dialog, using the specified default directory and file name. |
Method Summary | |
---|---|
static java.lang.String |
getDefaultDirectory()
Returns the current working directory, which may be null. |
java.lang.String |
getDirectory()
Returns the selected directory. |
java.lang.String |
getFileName()
Returns the selected file name. |
static java.lang.String |
getLastDirectory()
Returns the path to the last directory opened by the user using a file open or file save dialog, or using drag and drop. |
static java.lang.String |
getLastName()
Returns the name of the last file opened by the user using a file open or file save dialog, or using drag and drop. |
static void |
setDefaultDirectory(java.lang.String defaultDir)
Sets the current working directory. |
static void |
setLastDirectory(java.lang.String dir)
Sets the path to the directory containing the last file opened by the user. |
static void |
setLastName(java.lang.String name)
Sets the name of the last file opened by the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenDialog(java.lang.String title, java.lang.String path)
public OpenDialog(java.lang.String title, java.lang.String defaultDir, java.lang.String defaultName)
Method Detail |
---|
public java.lang.String getDirectory()
public java.lang.String getFileName()
public static java.lang.String getDefaultDirectory()
public static void setDefaultDirectory(java.lang.String defaultDir)
public static java.lang.String getLastDirectory()
public static void setLastDirectory(java.lang.String dir)
public static java.lang.String getLastName()
public static void setLastName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |