This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.filechooser
class FileFilter
- Direct Known Subclasses:
- BasicFileChooserUI.AcceptAllFileFilter, FileNameExtensionFilter
public abstract class FileFilter
extends Object
FileFilter
is an abstract class used by {@code JFileChooser}
for filtering the set of files shown to the user. See
{@code FileNameExtensionFilter} for an implementation that filters using
the file name extension.
A FileFilter
can be set on a JFileChooser
to
keep unwanted files from appearing in the directory listing.
For an example implementation of a simple file filter, see
yourJDK/demo/jfc/FileChooserDemo/ExampleFileFilter.java
.
For more information and examples see
How to Use File Choosers,
a section in The Java Tutorial.
Method Summary |
abstract boolean |
Whether the given file is accepted by this filter.
|
abstract String |
The description of this filter.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileFilter
public FileFilter()
-
accept
public abstract boolean accept(File f)
-
Whether the given file is accepted by this filter.
- Parameters:
f
getDescription
public abstract String getDescription()
-
The description of this filter. For example: "JPG and GIF Images"
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.