org.cagrid.grape.filters
Class XMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.cagrid.grape.filters.XMLFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

Filter all but XML files

Version:
$Id: XMLFileFilter.java,v 1.4 2007/03/16 14:02:48 dervin Exp $
Author:
David W. Ervin, Stephen Langella, Shannon Hastings, Scott Oster

Field Summary
static java.lang.String XML_EXTENSION
           
 
Constructor Summary
XMLFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_EXTENSION

public static final java.lang.String XML_EXTENSION
See Also:
Constant Field Values
Constructor Detail

XMLFileFilter

public XMLFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter