|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
util.FileChooserFilter
This class provides a simple javax.swing.filechooser.FileFilter implementation that accepts files based on their extension, or if they are a directory (to allow traversal of the filesystem). multiple permissible extensions can be specified.
Constructor Summary | |
FileChooserFilter(java.lang.Object[] extensions,
java.lang.String description)
This method instantiates a new FileChooser filter. |
|
FileChooserFilter(java.lang.String[] extensions,
java.lang.String description)
This method instantiates a new FileChooser filter. |
Method Summary | |
boolean |
accept(java.io.File f)
This implements javax.swing.filechooser.FileFilter functionality. |
java.lang.String |
getDescription()
This is used to provide the JFileChooser with information on what the accept mapping represents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileChooserFilter(java.lang.String[] extensions, java.lang.String description)
extensions
- a String[] of extensions to map againstdescription
- a String describing what these extensions
represent.public FileChooserFilter(java.lang.Object[] extensions, java.lang.String description)
extensions
- a Object[] of extensions to map againstdescription
- a String describing what these extensions
represent.Method Detail |
public boolean accept(java.io.File f)
f
- the file to be checked for having a suitable extension
or for being a directory.
public java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |