jpiv2
Class JpivFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by jpiv2.JpivFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class JpivFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter

Some file filters that are used by the jpiv2.FlexFileChooser.

See Also:
FlexFileChooser

Constructor Summary
JpivFileFilter(java.lang.String[] validExtension, java.lang.String description)
          Constructs a new instance of jpiv2.JpivFileFilter.
 
Method Summary
 boolean accept(java.io.File f)
          Decides whether file is accepted or not.
 java.lang.String getDescription()
          Returns the description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpivFileFilter

public JpivFileFilter(java.lang.String[] validExtension,
                      java.lang.String description)
Constructs a new instance of jpiv2.JpivFileFilter.

Parameters:
validExtension - Extenstion of the displayed file type.
description - A description of the file type.
Method Detail

accept

public boolean accept(java.io.File f)
Decides whether file is accepted or not.

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - A file object.
Returns:
true if the filename has the specified extension.

getDescription

public java.lang.String getDescription()
Returns the description of this filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The description String of this filter.