net.java.sip.communicator.plugin.notificationconfiguration
Class SoundFilter
java.lang.Object
javax.swing.filechooser.FileFilter
net.java.sip.communicator.util.swing.SipCommFileFilter
net.java.sip.communicator.plugin.notificationconfiguration.SoundFilter
- All Implemented Interfaces:
- FilenameFilter
public class SoundFilter
- extends SipCommFileFilter
Filter to display only the sound files in the filechooser
- Author:
- Alexandre Maillard
|
Method Summary |
boolean |
accept(File f)
Method which describes differents permits extensions and defines which file or
directory will be displayed in the filechoser. |
String |
getDescription()
Method which describes, in the file chooser, the text representing the permit extension
files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoundFilter
public SoundFilter()
accept
public boolean accept(File f)
- Method which describes differents permits extensions and defines which file or
directory will be displayed in the filechoser.
- Specified by:
accept in class FileFilter
- Parameters:
f - file for the test
- Returns:
- boolean true if the File is a Directory or a sound file. And
return false in the other cases.
getDescription
public String getDescription()
- Method which describes, in the file chooser, the text representing the permit extension
files.
- Specified by:
getDescription in class FileFilter
- Returns:
- String which is displayed in the sound file chooser.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.