public static final class FileChooser.ExtensionFilter extends Object
| Constructor and Description |
|---|
ExtensionFilter(String description,
List<String> extensions)
Creates an
ExtensionFilter with the specified description
and the file name extensions. |
ExtensionFilter(String description,
String... extensions)
Creates an
ExtensionFilter with the specified description
and the file name extensions. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description for this
ExtensionFilter. |
List<String> |
getExtensions()
Gets the file name extensions for this
ExtensionFilter. |
public ExtensionFilter(String description, String... extensions)
ExtensionFilter with the specified description
and the file name extensions.
File name extension should be specified in the *.<extension>
format.
description - the textual description for the filterextensions - the accepted file name extensionsNullPointerException - if the description or the extensions
are nullIllegalArgumentException - if the description or the extensions
are emptypublic ExtensionFilter(String description, List<String> extensions)
ExtensionFilter with the specified description
and the file name extensions.
File name extension should be specified in the *.<extension>
format.
description - the textual description for the filterextensions - the accepted file name extensionsNullPointerException - if the description or the extensions
are nullIllegalArgumentException - if the description or the extensions
are emptypublic String getDescription()
ExtensionFilter.Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.