jcreek.cke.command
Class CreekFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byjcreek.cke.command.CreekFileFilter

public class CreekFileFilter
extends javax.swing.filechooser.FileFilter


Field Summary
protected  java.util.Hashtable docTypes
          List of document types supported by Creek.
 
Constructor Summary
CreekFileFilter(java.util.Hashtable types)
          Creates a new CreekFileFilter object.
 
Method Summary
 boolean accept(java.io.File pathname)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 java.lang.String getDescription()
          Returns the description of this file type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docTypes

protected java.util.Hashtable docTypes
List of document types supported by Creek.

Constructor Detail

CreekFileFilter

public CreekFileFilter(java.util.Hashtable types)
Creates a new CreekFileFilter object.

Parameters:
types - supported document types
Method Detail

accept

public boolean accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Parameters:
pathname - The pathname to be tested.
Returns:
true if the pathname should be included.

getDescription

public java.lang.String getDescription()
Returns the description of this file type.

Returns:
string representation of file type


Created at IDI, NTNU by the Artificial Intelligence and Learning group