org.graffiti.core
Class GenericFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.graffiti.core.GenericFileFilter

public class GenericFileFilter
extends FileFilter

Contains a generic file filter for filtering file extensions in the file chooser dialog.

Version:
$Revision: 5767 $

Constructor Summary
GenericFileFilter(String extension)
          Constructor for GenericFileFilter.
 
Method Summary
 boolean accept(File f)
          Whether the given file is accepted by this filter.
 String getDescription()
          The description of this filter.
 String getExtension()
          Return the extension string for files that this filter allows.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFileFilter

public GenericFileFilter(String extension)
Constructor for GenericFileFilter.

Parameters:
extension - a extension for which the filter will be built.
Method Detail

getDescription

public String getDescription()
The description of this filter. For example: ".gml"

Specified by:
getDescription in class FileFilter
Returns:
DOCUMENT ME!

getExtension

public String getExtension()
Return the extension string for files that this filter allows.

Returns:
DOCUMENT ME!

accept

public boolean accept(File f)
Whether the given file is accepted by this filter.

Specified by:
accept in class FileFilter
Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:00:14 PM CEST