cct.tools
Class FileFilterImpl

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by cct.tools.FileFilterImpl

public class FileFilterImpl
extends javax.swing.filechooser.FileFilter


Field Summary
protected  java.lang.String Description
           
protected  java.util.ArrayList Extensions
           
 
Constructor Summary
FileFilterImpl()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 boolean accept(java.lang.String fileName, boolean isDirectory)
           
 void addExtension(java.lang.String file_ext)
           
 java.lang.String getDescription()
           
static java.lang.String getExtension(java.io.File f)
           
static java.lang.String getExtension(java.lang.String file_name)
           
static javax.swing.filechooser.FileFilter[] getFileFilters(java.util.LinkedHashMap fileFormats)
          Builds file filter implementations using HaspMap
 void setDescription(java.lang.String descr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Description

protected java.lang.String Description

Extensions

protected java.util.ArrayList Extensions
Constructor Detail

FileFilterImpl

public FileFilterImpl()
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.lang.String fileName,
                      boolean isDirectory)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter

setDescription

public void setDescription(java.lang.String descr)

getExtension

public static java.lang.String getExtension(java.io.File f)

getExtension

public static java.lang.String getExtension(java.lang.String file_name)

getFileFilters

public static javax.swing.filechooser.FileFilter[] getFileFilters(java.util.LinkedHashMap fileFormats)
Builds file filter implementations using HaspMap

Parameters:
fileFormats - LinkedHashMap
Returns:
FileFilterImpl[]

addExtension

public void addExtension(java.lang.String file_ext)