kea.programs.jPrimrose
Class ProjectFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by kea.io.KeaFileFilter
          extended by kea.programs.jPrimrose.ProjectFileFilter
All Implemented Interfaces:
java.io.FileFilter

public final class ProjectFileFilter
extends kea.io.KeaFileFilter

File filter for project files.

Version:
2.17.
Author:
Kevin Ashelford.

Constructor Summary
ProjectFileFilter()
          Creates a new instance of class.
 
Method Summary
 boolean accept(java.io.File f)
          Method used by JFileChooser object.
 java.lang.String getDescription()
          Gets description for file filter.
 java.lang.String getExtension()
          Gets extension for files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFileFilter

public ProjectFileFilter()
Creates a new instance of class.

Method Detail

getDescription

public java.lang.String getDescription()
Gets description for file filter.

Specified by:
getDescription in class kea.io.KeaFileFilter
Returns:
Description.
See Also:
FileFilter.getDescription()

getExtension

public java.lang.String getExtension()
Gets extension for files.

Specified by:
getExtension in class kea.io.KeaFileFilter
Returns:
Suffix String.

accept

public boolean accept(java.io.File f)
Method used by JFileChooser object. In this implementation, returns true if supplied file object has the correct extension (.ppf).

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class kea.io.KeaFileFilter
Parameters:
f - File object.
Returns:
True if suitable file.
See Also:
FileFilter.accept(java.io.File)