public final class DirectoryChooser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<java.io.File> |
initialDirectory
The initial directory for the displayed dialog.
|
private StringProperty |
title
The title of the displayed dialog.
|
Constructor and Description |
---|
DirectoryChooser() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getInitialDirectory() |
java.lang.String |
getTitle() |
ObjectProperty<java.io.File> |
initialDirectoryProperty() |
void |
setInitialDirectory(java.io.File value) |
void |
setTitle(java.lang.String value) |
java.io.File |
showDialog(Window ownerWindow)
Shows a new directory selection dialog.
|
StringProperty |
titleProperty() |
private StringProperty title
private ObjectProperty<java.io.File> initialDirectory
public final void setTitle(java.lang.String value)
public final java.lang.String getTitle()
public final StringProperty titleProperty()
public final void setInitialDirectory(java.io.File value)
public final java.io.File getInitialDirectory()
public final ObjectProperty<java.io.File> initialDirectoryProperty()
public java.io.File showDialog(Window ownerWindow)
null
if no selection has been
made. If the owner window for the directory selection dialog is set,
input to all windows in the dialog's owner chain is blocked while the
dialog is being shown.ownerWindow
- the owner window of the displayed dialognull
if no directory has been
selected