|
||||||||||
| 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.FilesystemFilter
public class FilesystemFilter
A filesystem filter.
| Constructor Summary | |
|---|---|
FilesystemFilter(String[] fileext,
String descr,
boolean accDirs)
Creates a new filter. |
|
FilesystemFilter(String fileext,
String descr)
Creates a new filter. |
|
FilesystemFilter(String fileext,
String descr,
boolean accDirs)
Creates a new filter. |
|
| Method Summary | |
|---|---|
boolean |
accept(File dir)
Returns true if the specified file matches the requirements of this
filter, and false otherwise. |
boolean |
accept(File dir,
String name)
Returns true if the file is accepted, and false otherwise. |
void |
acceptDirectories(boolean b)
Sets the flag that controls whether or not the filter accepts directories. |
boolean |
acceptsDirectories()
Returns the flag that indicates whether or not the filter accepts directories. |
String |
getDescription()
Returns the filter description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilesystemFilter(String fileext,
String descr)
fileext - the file extension.descr - the description.
public FilesystemFilter(String fileext,
String descr,
boolean accDirs)
fileext - the file extension.descr - the description.accDirs - accept directories?
public FilesystemFilter(String[] fileext,
String descr,
boolean accDirs)
fileext - the file extension.descr - the description.accDirs - accept directories?
NullPointerException - if the file extensions are null.| Method Detail |
|---|
public boolean accept(File dir,
String name)
true if the file is accepted, and false otherwise.
accept in interface FilenameFilterdir - the directory.name - the file name.
public boolean accept(File dir)
true if the specified file matches the requirements of this
filter, and false otherwise.
accept in class FileFilterdir - the file or directory.
public String getDescription()
getDescription in class FileFilterpublic void acceptDirectories(boolean b)
b - a boolean.public boolean acceptsDirectories()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||