public class SoundFilter extends SipCommFileFilter
Constructor and Description |
---|
SoundFilter()
Creates a new sound filter which accepts all sound format available in
SoundFileUtils.
|
SoundFilter(java.lang.String[] soundFormats)
Creates a new sound filter which accepts only sound format corresponding
to the list given in parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Method which describes differents permits extensions and defines which
file or directory will be displayed in the filechoser.
|
java.lang.String |
getDescription()
Method which describes, in the file chooser, the text representing the
permit extension files.
|
accept
public SoundFilter()
public SoundFilter(java.lang.String[] soundFormats)
soundFormats
- The list of sound format to accept.public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- file for the testpublic java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.