public class GenericFileFilter
extends javax.swing.filechooser.FileFilter
| 构造器 | 说明 |
|---|---|
GenericFileFilter(java.lang.String[] filesExtsIn,
java.lang.String description) |
This is the constructor - it takes in the following:-
filesExtsIn - this is the array of file extensions that you wish to create a file filter for. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
accept(java.io.File f) |
This is the method to allow a file to bee added to the displayed list or
not.
|
java.lang.String |
getDescription() |
This is the method defined by the model
|
java.lang.String |
getFileExtent() |
Get file extent
|
public GenericFileFilter(java.lang.String[] filesExtsIn,
java.lang.String description)
filesExtsIn - File extensionsdescription - Descriptionpublic java.lang.String getFileExtent()
public boolean accept(java.io.File f)
accept 在类中 javax.swing.filechooser.FileFilterf - Filepublic java.lang.String getDescription()
getDescription 在类中 javax.swing.filechooser.FileFilterCopyright © 2019. All rights reserved.