picturedream.ui
Class MJFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--picturedream.ui.MJFileFilter

public class MJFileFilter
extends javax.swing.filechooser.FileFilter

Title: PictureDream

Description: a generic file filter class

Copyright: Copyright (c) 2003 MRoc

Organisation: MRoc Audiosolutions

Version:
1.0
Author:
MRoc mail@mroc.de

Field Summary
protected  java.lang.String description
          the file type description
protected  java.lang.String[] possibleSuffix
          the possible file suffix
 
Constructor Summary
MJFileFilter(java.lang.String[] possibleSuffix, java.lang.String description)
          constructs a file filter for the given file suffix
 
Method Summary
 boolean accept(java.io.File f)
          Whether the given file is accepted by this filter.
 java.lang.String getDescription()
          The description of this filter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

possibleSuffix

protected java.lang.String[] possibleSuffix
the possible file suffix

description

protected java.lang.String description
the file type description
Constructor Detail

MJFileFilter

public MJFileFilter(java.lang.String[] possibleSuffix,
                    java.lang.String description)
constructs a file filter for the given file suffix
Method Detail

accept

public boolean accept(java.io.File f)
Whether the given file is accepted by this filter.
Overrides:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
The description of this filter
Overrides:
getDescription in class javax.swing.filechooser.FileFilter