|
JAPI 0_6-alpha-2 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
net.sf.japi.swing.FilenameFileFilter
public final class FilenameFileFilter
Swing FileFilter implementation that filters files with specified names.
| Constructor Summary | |
|---|---|
FilenameFileFilter(boolean acceptDirectories,
boolean negate,
String description,
String... names)
Create a DFileFilter. |
|
FilenameFileFilter(boolean acceptDirectories,
String description,
String... names)
Create a DFileFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(File file)
|
String |
getDescription()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilenameFileFilter(boolean acceptDirectories,
String description,
String... names)
negate is set to false on this file filter.
acceptDirectories - pass true if this FileFilter should accept directories as well, false to deny directoriesdescription - The description to use for swingnames - The names to accept
public FilenameFileFilter(boolean acceptDirectories,
boolean negate,
String description,
String... names)
acceptDirectories - pass true if this FileFilter should accept directories as well, false to deny directoriesnegate - pass true if the names are to be negated, which means the filter will only accept files not names on one
of the names; usually you want to pass falsedescription - The description to use for swingnames - The names to accept| Method Detail |
|---|
public String getDescription()
getDescription in class FileFilterpublic boolean accept(File file)
accept in class FileFilter
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||