Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.whiteboard.gui
Class WhiteboardFileFilter

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.whiteboard.gui.WhiteboardFileFilter
All Implemented Interfaces:
FilenameFilter

public class WhiteboardFileFilter
extends SipCommFileFilter

A simple file filter manager

Author:
Julien Waechter

Constructor Summary
WhiteboardFileFilter(String ext, String description)
          WhiteboardFileFilter constructor
 
Method Summary
 boolean accept(File f)
          Tests the specified file, returning true if the file is accepted, false otherwise.
 String getDescription()
          The description of this filter.
 String getExtension()
          The description of this filter.
 String getExtension(File f)
          The extension of the file"
 
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

WhiteboardFileFilter

public WhiteboardFileFilter(String ext,
                            String description)
WhiteboardFileFilter constructor

Parameters:
ext - extension
description - description
Method Detail

accept

public boolean accept(File f)
Tests the specified file, returning true if the file is accepted, false otherwise. True is returned if the extension matches one of the file name extensions of this FileFilter, or the file is a directory.

Specified by:
accept in class FileFilter
Parameters:
f - file
Returns:
true if file is accepted

getDescription

public String getDescription()
The description of this filter. For example: "JPG and GIF Images"

Specified by:
getDescription in class FileFilter
Returns:
description

getExtension

public String getExtension()
The description of this filter. For example: "JPG and GIF Images"

Returns:
description

getExtension

public String getExtension(File f)
The extension of the file"

Parameters:
f - File
Returns:
file extension

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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