|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
unbbayes.gui.SimpleFileFilter
public class SimpleFileFilter
Class responsible for filtering the type of files to show.
FileFilter| Constructor Summary | |
|---|---|
SimpleFileFilter(String ext)
Creates a FileFilter with the desired file extension. |
|
SimpleFileFilter(String[] exts,
String descr)
Creates a FileFilter with the desired file extension and description. |
|
| Method Summary | |
|---|---|
boolean |
accept(File f)
Verify if the file has one of the valid extensions. |
String |
getDescription()
Returns a generic description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFileFilter(String ext)
FileFilter with the desired file extension.
ext - Extension of the files to be shown.FileFilter
public SimpleFileFilter(String[] exts,
String descr)
FileFilter with the desired file extension and description.
exts - Extensions of the files to be shown.descr - Descriptions of the files to be shown.FileFilter| Method Detail |
|---|
public String getDescription()
getDescription in class FileFilterpublic boolean accept(File f)
accept in class FileFilterf - File to be checked for valid extension.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||