# FileSelectionMode

Import: `import com.install4j.api.beaninfo.FileSelectionMode;`

```java
public final enum FileSelectionMode
```

Enumeration class for all possible file selection modes for file property descriptors.


**See also:**

- [FilePropertyDescriptor.create](FilePropertyDescriptor.md#create-string-class-string-string-fileselectionmode-string-string)

## Constants

### FILES_ONLY

Only show files in the file chooser.

### DIRECTORIES_ONLY

Only show directories in the file chooser.

### FILES_AND_DIRECTORIES

Show both files and directories in the file chooser.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `FileSelectionMode[]` |  |
| [`valueOf(String)`](#valueof-string) | `FileSelectionMode` |  |
| [`getJFileChooserMode()`](#getjfilechoosermode) | `int` | Convert to an int value. |

### values()

```java
public static FileSelectionMode[] values()
```

### valueOf(String)

```java
public static FileSelectionMode valueOf(String name)
```

### getJFileChooserMode()

```java
public int getJFileChooserMode()
```

Convert to an int value.


**Returns:** the int value

