org.knime.core.util
Class FileReaderFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.knime.core.util.FileReaderFileFilter

public class FileReaderFileFilter
extends FileFilter

Our File Filter for the JFileChooser Dialog You can create one accepting all files ending with one extension ".ext". Other pattern matches are not supported.

Author:
ohl University of Konstanz

Constructor Summary
FileReaderFileFilter(String ext, String description)
          creates a new FileFilter that accepts files matching "*.'ext'".
 
Method Summary
 boolean accept(File f)
          
 String getDescription()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReaderFileFilter

public FileReaderFileFilter(String ext,
                            String description)
creates a new FileFilter that accepts files matching "*.'ext'".

Parameters:
ext - the extension
description - the readable description (like "XML files")
Method Detail

accept

public boolean accept(File f)

Specified by:
accept in class FileFilter

getDescription

public String getDescription()

Specified by:
getDescription in class FileFilter


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.