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.Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.