BBjFileChooser::setFileSelectionMode

Description

In BBj 7.0 and higher, use this method to set whether the BBjFileChooser allows selecting files only, files and directories, or directories only.

Syntax

Return Value

Method

void

setFileSelectionMode(int mode)

Parameters

Variable

Description

mode

One of BBjFileChooser::FILES_ONLY, FILES_AND_DIRECTORIES or DIRECTORIES_ONLY.

Return Value

None.

Remarks

This method is not useful when using the $0008$ flag to show a directory chooser.

BUI logo

The BUI client-side file chooser ignores this setting; it's not possible to select directories with the BUI client-side file chooser.

See BUI: Interacting with client files for a detailed discussion of the BUI client-side file choosers.

Example

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjFileChooser

BBjFileChooser::getFileSelectionMode

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.