|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
pgbennett.id3.MP3FileFilter
public class MP3FileFilter
This FileFilter only accepts files with a ".mp3" extension.
javax.swing.filechooser.FileFilter
| Constructor Summary | |
|---|---|
MP3FileFilter()
Create a default MP3FileFilter. |
|
MP3FileFilter(boolean allowDirectories)
Create an MP3FileFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Determines whether or not the file is an mp3 file. |
java.lang.String |
getDescription()
Returns the Name of the Filter for use in the Chooser Dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3FileFilter()
public MP3FileFilter(boolean allowDirectories)
allowDirectories - whether or not to accept directories| Method Detail |
|---|
public boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in class javax.swing.filechooser.FileFilterfile - the file to test
public java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||