Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.filechooser
Class FileFilter  view FileFilter download FileFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter

public abstract class FileFilter
extends java.lang.Object

The base class for filters that control the visibility of files in the javax.swing.JFileChooser component.


Constructor Summary
FileFilter()
          Default constructor.
 
Method Summary
abstract  boolean accept(java.io.File file)
          Returns true if the specified file matches the filter, and false otherwise.
abstract  java.lang.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

FileFilter

public FileFilter()
Default constructor.

Method Detail

accept

public abstract boolean accept(java.io.File file)
Returns true if the specified file matches the filter, and false otherwise.


getDescription

public abstract java.lang.String getDescription()
Returns a description of the files that will be selected by the filter (for example, "Java source files"). This description will usually be displayed on the javax.swing.JFileChooser component, often in a combo box that is used to select the appropriate filter (in cases where more than one filter is available).