Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.notificationconfiguration
Class SoundFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.java.sip.communicator.util.swing.SipCommFileFilter
          extended by 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

Constructor Summary
SoundFilter()
           
 
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 net.java.sip.communicator.util.swing.SipCommFileFilter
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundFilter

public SoundFilter()
Method Detail

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.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.