|
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.EndingFileFilter
public class EndingFileFilter
Swing FileFilter implementation that filters files with specified endings.
| Constructor Summary | |
|---|---|
EndingFileFilter(boolean acceptDirectories,
boolean negate,
String description,
String... endings)
Create an EndingFileFilter. |
|
EndingFileFilter(boolean acceptDirectories,
String description,
String... endings)
Create an EndingFileFilter. |
|
| 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 EndingFileFilter(boolean acceptDirectories,
String description,
String... endings)
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 swingendings - The endings to accept, including their period
Example: new EndingFileFilter(false, "jpeg image files", ".jpg", ".jpeg", ".jfif")
public EndingFileFilter(boolean acceptDirectories,
boolean negate,
String description,
String... endings)
acceptDirectories - pass true if this FileFilter should accept directories as well, false to deny directoriesnegate - pass true if the endings are to be negated, which means the filter will only accept files not ending on one
of the endings; usually you want to pass falsedescription - The description to use for swingendings - The endings to accept, including their period
Example: new EndingFileFilter(false, true, "all files but jpeg image files", ".jpg", ".jpeg", ".jfif")| Method Detail |
|---|
public final 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 | |||||||||