Important Note
This class is not intended to be subclassed.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| public | DirectoryDialog(Shell
a shell which will be the parent of the new instance parent)Constructs a new instance of this class given only its parent. |
| public | DirectoryDialog(Shell
a shell which will be the parent of the new instance parent, int the style of dialog to construct style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the filter pathReturns the path which the dialog will use to filter the directories it shows. |
| public String | Returns: the messageReturns the dialog's message, which is a description of the purpose for which it was opened. |
| pack-priv void | |
| public String | Returns: a string describing the absolute path of the selected directory, or null if the dialog was cancelled or an error occurredMakes the dialog visible and brings it to the front of the display. |
| pack-priv String | Returns: a string describing the absolute path of the first selected file, or nullOpen the file chooser dialog using the GtkFileChooserNative API (GTK3.20+) for running applications without direct filesystem access (such as Flatpak). |
| public void | setFilterPath(String
the filter path string)Sets the path that the dialog will use to filter the directories it shows to the argument, which may be null. |
| public void | setMessage(String
the message string)Sets the dialog's message, which is a description of the purpose for which it was opened. |
| filterPath | back to summary |
|---|---|
| pack-priv String filterPath | |
| message | back to summary |
|---|---|
| pack-priv String message | |
| SEPARATOR | back to summary |
|---|---|
| pack-priv static final String SEPARATOR | |
| DirectoryDialog | back to summary |
|---|---|
| public DirectoryDialog(Shell parent) Constructs a new instance of this class given only its parent.
| |
| DirectoryDialog | back to summary |
|---|---|
| public DirectoryDialog(Shell parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| getFilterPath | back to summary |
|---|---|
| public String getFilterPath() Returns the path which the dialog will use to filter the directories it shows.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Returns the dialog's message, which is a description of the purpose for which it was opened. This message will be visible on the dialog while it is open.
| |
| GTK3setNativeDialogMessage | back to summary |
|---|---|
| pack-priv void GTK3setNativeDialogMessage(long handle, String message) GTK3 only function. As of GTK4, gtk_file_chooser_set_extra_widget is no longer available, and the alternatives do not allow for such flexibility to display just the message. Therefore in GTK4, there will be no message displayed in the file chooser dialog. | |
| open | back to summary |
|---|---|
| public String open() Makes the dialog visible and brings it to the front of the display.
| |
| openNativeChooserDialog | back to summary |
|---|---|
| pack-priv String openNativeChooserDialog() Open the file chooser dialog using the GtkFileChooserNative API (GTK3.20+) for running applications without direct filesystem access (such as Flatpak). API for GtkFileChoosernative does not give access to any GtkWindow or GtkWidget for the dialog, thus this method omits calls that requires such access. These are be handled by the GtkNativeDialog API.
| |
| setFilterPath | back to summary |
|---|---|
| public void setFilterPath(String string) Sets the path that the dialog will use to filter the directories it shows to the argument, which may be null. If the string is null, then the operating system's default filter path will be used. Note that the path string is platform dependent. For convenience, either '/' or '\' can be used as a path separator.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(String string) Sets the dialog's message, which is a description of the purpose for which it was opened. This message will be visible on the dialog while it is open. Note This operation is a hint and is not supported on some platforms. For
example, on Windows (Vista and later), the
| |