public class MultiFileExtensionFilter
extends javax.swing.filechooser.FileFilter
| Constructor and Description |
|---|
MultiFileExtensionFilter(java.lang.String[] extensions,
java.lang.String description)
Create a file filter with a default name.
|
MultiFileExtensionFilter(java.lang.String extensions,
java.lang.String description)
Create a file filter with a default name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File f)
Whether the given file is accepted by this filter.
|
java.lang.String |
getDescription()
The description of this filter.
|
boolean |
isAllowDirectories()
Are directories allowed by this filter?
|
void |
setAllowDirectories(boolean allowDirectories)
Set whether directories are allowed by this filter.
|
public MultiFileExtensionFilter(@NotNull java.lang.String extensions, @NotNull java.lang.String description)
extensions - the extensions to look for, separated by |description - description of the filterpublic MultiFileExtensionFilter(@NotNull java.lang.String[] extensions, java.lang.String description)
extensions - the extensions to look fordescription - description of the filterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterFileView.getName(java.io.File)public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterpublic boolean isAllowDirectories()
public void setAllowDirectories(boolean allowDirectories)
allowDirectories - allow directories?