|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
com.jrefinery.ui.ExtensionFileFilter
public class ExtensionFileFilter
A filter for JFileChooser that filters files by extension.
| Constructor Summary | |
|---|---|
ExtensionFileFilter(java.lang.String description,
java.lang.String extension)
Standard constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Returns true if the file ends with the specified extension. |
java.lang.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(java.lang.String description,
java.lang.String extension)
description - A description of the file type;extension - The file extension;| Method Detail |
|---|
public boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterfile - The file to test;
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||