javaprec
Class javaprec.ChooserFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--javaprec.javaprec.ChooserFileFilter
Enclosing class:
javaprec

public class javaprec.ChooserFileFilter
extends javax.swing.filechooser.FileFilter

SourceFileFilter - is a FileFilter that filters out all files except *.java files

Title: Runtime Java Class Editor - editor Package

Package Description: Edit & Select methods from all currently executing objects in enclosing programme

Copyright: James D Bloom Copyright (c) 2003

Version:
1.0
Author:
James D Bloom

Field Summary
private  java.lang.String extension
           
private  java.lang.String fullDescription
           
 
Constructor Summary
javaprec.ChooserFileFilter()
          Creates a file filter that accepts the given file type.
javaprec.ChooserFileFilter(java.lang.String extension, java.lang.String fullDescription)
          Creates a file filter that accepts the given file type.
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the file is a java source file, false if it shouldn't
 java.lang.String getDescription()
          Returns the human readable description of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullDescription

private java.lang.String fullDescription

extension

private java.lang.String extension
Constructor Detail

javaprec.ChooserFileFilter

public javaprec.ChooserFileFilter()
Creates a file filter that accepts the given file type.


javaprec.ChooserFileFilter

public javaprec.ChooserFileFilter(java.lang.String extension,
                                  java.lang.String fullDescription)
Creates a file filter that accepts the given file type.

Method Detail

accept

public boolean accept(java.io.File file)
Returns true if the file is a java source file, false if it shouldn't

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - input File
Returns:
true if this file is a java source file

getDescription

public java.lang.String getDescription()
Returns the human readable description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
a String containing the human readable description of this filter