mauda.utils
Class SuffixAwareFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by mauda.utils.SuffixAwareFilter
Direct Known Subclasses:
XMLFilter

public abstract class SuffixAwareFilter
extends javax.swing.filechooser.FileFilter

Super-class for file-filters used in filechooser.

Author:
Markus KREBS

Constructor Summary
SuffixAwareFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getSuffix(java.io.File f)
          Returns the suffix of the given file.
 
Methods inherited from class javax.swing.filechooser.FileFilter
getDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuffixAwareFilter

public SuffixAwareFilter()
Method Detail

getSuffix

public java.lang.String getSuffix(java.io.File f)
Returns the suffix of the given file.

Parameters:
f - File
Returns:
Suffix of the file

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter