public class UploaderFileExtensionFilter
extends javax.swing.filechooser.FileFilter
Constructor and Description |
---|
UploaderFileExtensionFilter(java.lang.String description,
java.util.List fileExtensionsList)
Construct an extension-based file filter
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file) |
java.lang.String |
getDescription() |
public UploaderFileExtensionFilter(java.lang.String description, java.util.List fileExtensionsList)
description
- the name for this filter, such as "Movie files"fileExtensionsList
- a list of file extensions that the filter will accept, eg "avi", "mpg".public boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter