org.jperdian.swing.tools
Class ExtensionFileFilter
java.lang.Object
|
+--javax.swing.filechooser.FileFilter
|
+--org.jperdian.swing.tools.ExtensionFileFilter
- public class ExtensionFileFilter
- extends javax.swing.filechooser.FileFilter
A FileFilter based on the extension(s) of a file
- Author:
- Christian Robert
|
Method Summary |
boolean |
accept(java.io.File f)
|
java.lang.String |
getDescription()
Gets the description of the current filter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensionFileFilter
public ExtensionFileFilter(java.lang.String extension,
java.lang.String description)
ExtensionFileFilter
public ExtensionFileFilter(java.lang.String[] extensions,
java.lang.String description)
accept
public boolean accept(java.io.File f)
- Specified by:
accept in class javax.swing.filechooser.FileFilter
getDescription
public java.lang.String getDescription()
- Gets the description of the current filter
- Specified by:
getDescription in class javax.swing.filechooser.FileFilter