|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.jfree.ui.ExtensionFileFilter
public class ExtensionFileFilter
A filter for JFileChooser that filters files by extension.
Constructor Summary | |
---|---|
ExtensionFileFilter(String description,
String extension)
Standard constructor. |
Method Summary | |
---|---|
boolean |
accept(File file)
Returns true if the file ends with the specified extension. |
String |
getDescription()
Returns the description of the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionFileFilter(String description, String extension)
description
- a description of the file type;extension
- the file extension;Method Detail |
---|
public boolean accept(File file)
accept
in class FileFilter
file
- the file to test.
public String getDescription()
getDescription
in class FileFilter
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |