net.datacrow.util.filefilters
Class DcFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.datacrow.util.filefilters.DcFileFilter

public class DcFileFilter
extends javax.swing.filechooser.FileFilter


Constructor Summary
DcFileFilter(java.lang.String extension)
          Create a file filter for the give extension
DcFileFilter(java.lang.String[] extensions)
           
 
Method Summary
 boolean accept(java.io.File file)
          Check the file with the filter
 java.lang.String getDescription()
          Get the description of this filter for displaying purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcFileFilter

public DcFileFilter(java.lang.String extension)
Create a file filter for the give extension

Parameters:
extension - criterium to filter

DcFileFilter

public DcFileFilter(java.lang.String[] extensions)
Method Detail

accept

public boolean accept(java.io.File file)
Check the file with the filter

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - file to check on

getDescription

public java.lang.String getDescription()
Get the description of this filter for displaying purposes

Specified by:
getDescription in class javax.swing.filechooser.FileFilter