com.jaxfront.swing.ui.editor
Class GenericSuffixFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.jaxfront.swing.ui.editor.GenericSuffixFilter
All Implemented Interfaces:
java.io.FileFilter

public class GenericSuffixFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter


Constructor Summary
GenericSuffixFilter(java.lang.String suffix, java.lang.String description)
          Creates an instance of XUIFilter
 
Method Summary
 boolean accept(java.io.File f)
          Returns whether the given file is accepted by this filter.
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSuffixFilter

public GenericSuffixFilter(java.lang.String suffix,
                           java.lang.String description)
Creates an instance of XUIFilter

Method Detail

accept

public boolean accept(java.io.File f)
Returns whether the given file is accepted by this filter.

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - a file
Returns:
boolean true, if the given file is accepted by this filter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter