org.fife.rsta.ac.demo
Class ExtensionFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.fife.rsta.ac.demo.ExtensionFileFilter

public class ExtensionFileFilter
extends FileFilter

A file filter for opening files with a specific extension.

Version:
1.0
Author:
Robert Futrell

Constructor Summary
ExtensionFileFilter(String desc, String ext)
          Constructor.
 
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

ExtensionFileFilter

public ExtensionFileFilter(String desc,
                           String ext)
Constructor.

Parameters:
desc - A description of the file type.
ext - The extension of the file type.
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-2011. All Rights Reserved.