class chooseFolderDialog

superclass(es) object
subclass(es) -
description The chooseFolderDialog class implements a standard "Select a Folder" dialog. With the dialog a folder can selected, not files.

tasks

Usually the initial folder is set before a chooseFolderDialog is shown with the method putInitialFolder/1, the method execute/2 can be used to show the "Select a Folder" dialog, after the dialog has been closed the selected folder can be retrieved by calling the method folder/1.

methods

putInitialFolder(String)

func Set the initial folder of the dialog, the contents of this folder is shown when the dialog is opened.
pre The variable String must contain a string value.
post The initial folder of the dialog instance is equal to the value of String.

initialFolder(Output)

func Get the initial folder of the dialog, the contents of this folder is shown when the dialog is opened.
pre TRUE.
post The initial folder of the dialog instance is assigned to the variable Output.

putTitle(String)

func Set the title of the dialog.
pre The variable String must contain a string value.
post The value of String will be the title of the dialog.

title(Output)

func Get the title of the dialog.
pre TRUE.
post The title of the dialog is assigned to Output.

folder(Output)

func Get the folder that was choosen when the dialog was closed.
pre TRUE.
post The selected folder is assigned to the variable Output.

execute(Parent, Output)

func Show the "Select a Folder" dialog .
pre The Parent variable must refer to a window.
post If the dialog was closed by pressing on the "OK" button then true is assigned to Output, else false is assigned to Output.