es.prodevelop.gvsig.mobile.gui.dialog
Class CustomizedFilenameFilter

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.gui.dialog.CustomizedFilenameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class CustomizedFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter

Customized file name filter. Simply needs to indicate the allowed extension in the constructor. Does not work in J9. Does work in Phoneme.

Author:
jldominguez

Constructor Summary
CustomizedFilenameFilter(java.lang.String _ext)
          Constructor
 
Method Summary
 boolean accept(java.io.File f, java.lang.String name)
          Method to find out whether a file is accepted by the filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomizedFilenameFilter

public CustomizedFilenameFilter(java.lang.String _ext)
Constructor

Parameters:
_ext - allowed extension
Method Detail

accept

public boolean accept(java.io.File f,
                      java.lang.String name)
Method to find out whether a file is accepted by the filter.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
f - file object to be treated
name - file name