public static final class CommonDialogs.ExtensionFilter extends Object
ExtensionFilter that will show
txt files:
List extensions = new ArrayList();
extensions.add("*.txt");
ExtensionFilter filter = new ExtensionFilter("Text files", extensions);
List filters = new ArrayList();
filters.add(filters);
FileChooser.show(..., filters);
| Constructor and Description |
|---|
ExtensionFilter(String description,
List<String> extensions)
Creates an
ExtensionFilter with the specified description
and the file name extensions. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
List<String> |
getExtensions() |
public ExtensionFilter(String description, List<String> extensions)
ExtensionFilter with the specified description
and the file name extensions.description - the textual description for the filterextensions - the accepted file name extensionsIllegalArgumentException - if the description of the filter is null or empty;
if the extensions is null, empty or contains an empty stringCopyright © 2025. All rights reserved.