public class SimpleFilter
extends javax.swing.filechooser.FileFilter
| Constructor | Description |
|---|---|
SimpleFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(java.io.File checkFile) |
This method determines if a file or directory should be shown by the filter.
|
void |
acceptDirs(boolean accept) |
Returns a boolean value
|
java.lang.String |
getDescription() |
Returns the human-readable description of this filter.
|
void |
setDescription(java.lang.String desc) |
Set the human-readable description for this filter.
|
void |
setFilters(java.lang.String[] filts) |
This method sets the different filters.
|
public boolean accept(java.io.File checkFile)
accept in class javax.swing.filechooser.FileFiltercheckFile - The file to be checkedtrue - this file or directory should be shown
false - this file or directory should not be shownpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic void setDescription(java.lang.String desc)
desc - Description of the filter.public void setFilters(java.lang.String[] filts)
filts - An array of strings representing the filters (eg. .jpg, .tif, .tiff, .html).public void acceptDirs(boolean accept)
accept - true - accept directories
false - do not accept directories