keffa
Class SadissFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--keffa.SadissFileFilter

public class SadissFileFilter
extends javax.swing.filechooser.FileFilter

SadissFileFilter a subclass of FileFilter which filters Sadiss' files


Constructor Summary
SadissFileFilter(java.lang.String ext)
          Constructor
SadissFileFilter(java.lang.String[] exts, java.lang.String descr)
          Constructor
 
Method Summary
 boolean accept(java.io.File f)
          Returns true if the given file is acceptable; otherwise, false.
 java.lang.String getDescription()
          Returns a description of acceptable file types based on their extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SadissFileFilter

public SadissFileFilter(java.lang.String ext)
Constructor


SadissFileFilter

public SadissFileFilter(java.lang.String[] exts,
                        java.lang.String descr)
Constructor

Method Detail

accept

public boolean accept(java.io.File f)
Returns true if the given file is acceptable; otherwise, false.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - a file object

getDescription

public java.lang.String getDescription()
Returns a description of acceptable file types based on their extensions.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter