org.vizzini.ui
Class ExtensionFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.vizzini.ui.ExtensionFileFilter

public class ExtensionFileFilter
extends FileFilter

Provides a file filter for files.

Since:
v0.1
Version:
v0.1
Author:
Jeffrey M. Thompson

Constructor Summary
ExtensionFileFilter(String extension)
          Construct this object with the given extension.
 
Method Summary
 boolean accept(File file)
          Return true if the given file passes the filter.
 String getDescription()
          Return the description.
 String getExtension(File file)
          Get the extension of a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFileFilter

public ExtensionFileFilter(String extension)
Construct this object with the given extension.

Since:
v0.1
Method Detail

getDescription

public String getDescription()
Return the description.

Specified by:
getDescription in class FileFilter
Since:
v0.1

getExtension

public String getExtension(File file)
Get the extension of a file.

Since:
v0.1

accept

public boolean accept(File file)
Return true if the given file passes the filter.

Specified by:
accept in class FileFilter
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02