|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
public abstract class FileFilter
The base class for filters that control the visibility of files in the
JFileChooser
component.
JFileChooser.addChoosableFileFilter(FileFilter)
Constructor Summary | |
---|---|
FileFilter()
Default constructor. |
Method Summary | |
---|---|
abstract boolean |
accept(File file)
Returns true if the specified file matches the filter, and
false otherwise. |
abstract String |
getDescription()
Returns a description of the files that will be selected by the filter (for example, "Java source files"). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFilter()
Method Detail |
---|
public abstract boolean accept(File file)
true
if the specified file matches the filter, and
false
otherwise.
file
- the file.
public abstract String getDescription()
JFileChooser
component, often in a combo box that
is used to select the appropriate filter (in cases where more than one
filter is available).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |