|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
futils.WildFilter
public class WildFilter
Constructor Summary | |
---|---|
WildFilter(java.lang.String suffix)
Accept only those File instances that
are of type file (i.e. |
|
WildFilter(java.lang.String[] suffix)
Accept only those File instances that
are of type file (i.e. |
|
WildFilter(java.lang.String prefix,
java.lang.String suffix)
Accept from the interface FilenameFilter will return
true if the file name begins with the prefix and ends with the
suffix. |
|
WildFilter(java.lang.String prefix,
java.lang.String midfix,
java.lang.String suffix)
Accept from the interface FilenameFilter will return
true if the file name begins with the prefix and ends with the
suffix. |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir)
|
boolean |
accept(java.io.File dir,
java.lang.String name)
|
java.lang.String |
getDescription()
|
java.io.FilenameFilter |
getFileNameFilter()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WildFilter(java.lang.String suffix)
File
instances that
are of type file (i.e. not directory) and end with the
suffix
suffix
- a string that all file names must end with.public WildFilter(java.lang.String[] suffix)
File
instances that
are of type file (i.e. not directory) and end with the
one of the suffix elements in the suffix array
suffix
- a string that all file names must end with.public WildFilter(java.lang.String prefix, java.lang.String suffix)
FilenameFilter
will return
true if the file name begins with the prefix and ends with the
suffix.
Like:
prefix
- string passed in to describe the file names beginningsuffix
- ending part of the file name.public WildFilter(java.lang.String prefix, java.lang.String midfix, java.lang.String suffix)
FilenameFilter
will return
true if the file name begins with the prefix and ends with the
suffix.
Like:
prefix
- string passed in to describe the file names beginningsuffix
- ending part of the file name.midfix
- contained in the file name.Method Detail |
---|
public boolean accept(java.io.File dir)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public java.io.FilenameFilter getFileNameFilter()
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |