|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--audiojury.gui.admin.SoundfileFilter
A filter approving supported sound files. Extends the FileFilter
to filter out sound files supported by AudioJury.
Constructor Summary | |
SoundfileFilter()
|
Method Summary | |
boolean |
accept(java.io.File f)
Checks a File is a supported sound file or not (or a directory).
|
java.lang.String |
getDescription()
Retrieves a short description of this filter. |
static java.lang.String |
getExtension(java.io.File f)
Retrieves the extension of a File . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SoundfileFilter()
Method Detail |
public boolean accept(java.io.File f)
File
is a supported sound file or not (or a directory).
This check is done by looking at the file extension. Directories are also accepted.
accept
in class javax.swing.filechooser.FileFilter
f
- File
to check against the filter.
boolean
indicating if the file is accepted by this filter or not.public static java.lang.String getExtension(java.io.File f)
File
.
f
- File
to retrive the extension from.
String
with the extension from the File
.public java.lang.String getDescription()
SoundfileSingleSelector
.
getDescription
in class javax.swing.filechooser.FileFilter
String
with a short description of the filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |