JET

edu.utep.cs.et.gui
Class FileActionFactory.JavaFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by edu.utep.cs.et.gui.FileActionFactory.JavaFileFilter
Enclosing class:
FileActionFactory

private static class FileActionFactory.JavaFileFilter
extends FileFilter

A file filter class to filter out non-java files.


Field Summary
private static String JAVA_EXTENSION
          The extension for Java source files.
 
Constructor Summary
private FileActionFactory.JavaFileFilter()
           
 
Method Summary
 boolean accept(File f)
          Accept all directories and all Java files.
 String getDescription()
          Returns the description of this filter.
private static String getExtension(File f)
          Returns the extension of the give file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_EXTENSION

private static final String JAVA_EXTENSION
The extension for Java source files.

See Also:
Constant Field Values
Constructor Detail

FileActionFactory.JavaFileFilter

private FileActionFactory.JavaFileFilter()
Method Detail

accept

public boolean accept(File f)
Accept all directories and all Java files.

Specified by:
accept in class FileFilter

getDescription

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

Specified by:
getDescription in class FileFilter

getExtension

private static String getExtension(File f)
Returns the extension of the give file.


JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.