standup.xml
Class STANDUPFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by standup.xml.STANDUPFileFilter

public class STANDUPFileFilter
extends FileFilter

A subclass of FileFilter which handles files with specific extensions. See XMLFileChooser for how this is used for the various XML-based files used in STANDUP.

Author:
Ruli Manurung

Field Summary
(package private)  String myDescription
           
(package private)  String myExtension
           
 
Constructor Summary
STANDUPFileFilter(String myExtension, String myDescription)
           
 
Method Summary
 boolean accept(File f)
           
 String getDescription()
           
(package private)  String getExtension(File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myExtension

final String myExtension

myDescription

final String myDescription
Constructor Detail

STANDUPFileFilter

public STANDUPFileFilter(String myExtension,
                         String myDescription)
Method Detail

getExtension

String getExtension(File f)

accept

public boolean accept(File f)
Specified by:
accept in class FileFilter

getDescription

public String getDescription()
Specified by:
getDescription in class FileFilter