|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--javatools.swing.SimpleFileFilter
It's an implementation of the file filter, accepting a set of extensions.
Constructor Summary | |
SimpleFileFilter(java.lang.String ext)
Creates a new SimpleFileFilter, with default description. |
|
SimpleFileFilter(java.lang.String[] exts,
java.lang.String descr)
Creates a new SimpleFileFilter, with an array of extensions and a description. |
|
SimpleFileFilter(java.lang.String ext,
java.lang.String descr)
Creates a new SimpleFileFilter, with one extension and a description. |
Method Summary | |
boolean |
accept(java.io.File f)
Checks if a certain file should be accepted or not. |
java.lang.String |
getDescription()
Returns the description for this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleFileFilter(java.lang.String ext)
ext
- The requested extension.public SimpleFileFilter(java.lang.String ext, java.lang.String descr)
ext
- The requested extension.descr
- The description of the extension.public SimpleFileFilter(java.lang.String[] exts, java.lang.String descr)
exts
- The extension to use.descr
- The description of these extension.Method Detail |
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
f
- The file to check.
true
: the file is accepted;
false
: the file is NOT accepted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |