org.xnap.io
Class FileExtensionFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.xnap.io.FileExtensionFilter
- All Implemented Interfaces:
- java.io.FileFilter
public class FileExtensionFilter
- extends javax.swing.filechooser.FileFilter
- implements java.io.FileFilter
Provides a FileFilter that accepts a certain file
extension only.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileExtensionFilter
public FileExtensionFilter(java.lang.String ext,
java.lang.String description)
FileExtensionFilter
public FileExtensionFilter(java.lang.String ext)
accept
public boolean accept(java.io.File file)
- Specified by:
accept in interface java.io.FileFilter- Specified by:
accept in class javax.swing.filechooser.FileFilter
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Copyright © 2001-2005 XNap Team. All Rights Reserved.