easik.ui.menu
Class XMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by easik.ui.menu.XMLFileFilter

public class XMLFileFilter
extends javax.swing.filechooser.FileFilter

Filter for file browsing dialogs to ensure that only .xml files are accepted.

Author:
Rob Fletcher 2005

Constructor Summary
XMLFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Overloaded method, checks the file to see if it ends with .xml and returns true.
 java.lang.String getDescription()
          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

XMLFileFilter

public XMLFileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Overloaded method, checks the file to see if it ends with .xml and returns true. false otherwise.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - The file being considered
Returns:
True if the file is of an accepatble type

getDescription

public java.lang.String getDescription()
The description of this filter. *.xml will do

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