uk.ac.ic.doc.automed.editor
Class DotExtensionFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by uk.ac.ic.doc.automed.editor.DotExtensionFileFilter

public class DotExtensionFileFilter
extends javax.swing.filechooser.FileFilter


Constructor Summary
DotExtensionFileFilter(java.lang.String description, java.lang.String[] extensions)
          Create a FileFilter that selects only files with certain 'dot' extentions.
 
Method Summary
 boolean accept(java.io.File file)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotExtensionFileFilter

public DotExtensionFileFilter(java.lang.String description,
                              java.lang.String[] extensions)
Create a FileFilter that selects only files with certain 'dot' extentions.

Parameters:
description - a user oriented desciption of what files with be selected by the filter
extensions - the array the file types that will be selected.
Method Detail

accept

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

getDescription

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