com.iver.cit.gvsig.DEMO
Class SimpleFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bycom.iver.cit.gvsig.DEMO.SimpleFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class SimpleFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter

A simple file filter implementation that allow to specify one or more file extensions

Author:
wolf

Constructor Summary
SimpleFileFilter(java.lang.String[] extensions, java.lang.String description)
           
SimpleFileFilter(java.lang.String extension, java.lang.String description)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileFilter

public SimpleFileFilter(java.lang.String extension,
                        java.lang.String description)

SimpleFileFilter

public SimpleFileFilter(java.lang.String[] extensions,
                        java.lang.String description)
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in interface java.io.FileFilter
See Also:
FileFilter.accept(java.io.File)

getDescription

public java.lang.String getDescription()
See Also:
FileFilter.getDescription()