util.filters
Class FileFormatFilter
java.lang.Object
util.filters.FileFormatFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class FileFormatFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
FileFormatFilter provides any type of file format filter
by implementing the FilenameFilter
- Author:
- shankar
|
Constructor Summary |
FileFormatFilter(java.awt.FileDialog fd,
java.lang.String e)
Constructs a fileDialog with given extension |
|
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
|
void |
setExtension(java.lang.String e)
Sets the extension |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileFormatFilter
public FileFormatFilter(java.awt.FileDialog fd,
java.lang.String e)
- Constructs a fileDialog with given extension
- Parameters:
fd - - FileDialoge - holds the extension
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Specified by:
accept in interface java.io.FilenameFilter
setExtension
public void setExtension(java.lang.String e)
- Sets the extension
- Parameters:
e -