public class PtFilenameFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter
Note that the containing class can use either java.awt.FileDialog or javax.swing.JFileChooser, so classes should extend FilenameFilter, which can be used with either.
| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
PtFilenameFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Return true if the file is acceptable.
|
boolean |
accept(java.io.File directory,
java.lang.String name)
Return true if the file is acceptable.
|
java.lang.String |
getDescription()
A description of this FilenameFilter.
|
public boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterfile - The file to be checked.public boolean accept(java.io.File directory,
java.lang.String name)
accept in interface java.io.FilenameFilterdirectory - The directory that contains the file.name - The name of the file.public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter