de.steeringbehaviors.creator.editor
Class XMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by de.steeringbehaviors.creator.editor.XMLFileFilter

public class XMLFileFilter
extends javax.swing.filechooser.FileFilter

Class XMLFileFilter Implements a custom file filter for xml files


Constructor Summary
XMLFileFilter()
          Constructor
 
Method Summary
 boolean accept(java.io.File f)
          Returns if the file file is accepted
 java.lang.String getDescription()
          Returns the description of the FileFilter
 java.lang.String getExtension(java.io.File f)
          Returns the extension of a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFileFilter

public XMLFileFilter()
Constructor

Method Detail

accept

public boolean accept(java.io.File f)
Returns if the file file is accepted

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - File to check
Returns:
Accept the file

getExtension

public java.lang.String getExtension(java.io.File f)
Returns the extension of a file

Parameters:
f - File object
Returns:
The extension of the specified file

getDescription

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

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
File type description