org.jutil.io
Class FileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.jutil.io.FileFilter
All Implemented Interfaces:
java.io.FilenameFilter
Direct Known Subclasses:
FileExtensionFilter, FileNameContainsFilter, FileNameEndsWithFilter, FileNameEqualsFilter, FileNameStartsWithFilter, RegexFilter, WildCardFilter

public abstract class FileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter


Field Summary
protected  java.lang.String desc
           
protected  boolean dirsAllowed
           
 
Constructor Summary
FileFilter(java.lang.String desc)
           
 
Method Summary
 boolean accept(java.io.File file)
           
abstract  boolean accept(java.io.File dir, java.io.File file, java.lang.String name)
           
 boolean accept(java.io.File dir, java.lang.String name)
           
 java.lang.String getDescription()
           
 boolean isDirsAllowed()
           
 boolean isTrace()
           
 void setDescription(java.lang.String desc)
           
 void setDirsAllowed(boolean dirsAllowed)
           
 void setTrace(boolean trace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

protected java.lang.String desc

dirsAllowed

protected boolean dirsAllowed
Constructor Detail

FileFilter

public FileFilter(java.lang.String desc)
Method Detail

accept

public boolean accept(java.io.File file)
Specified by:
accept in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter

accept

public abstract boolean accept(java.io.File dir,
                               java.io.File file,
                               java.lang.String name)

setDirsAllowed

public void setDirsAllowed(boolean dirsAllowed)

isDirsAllowed

public boolean isDirsAllowed()

setTrace

public void setTrace(boolean trace)

isTrace

public boolean isTrace()

setDescription

public void setDescription(java.lang.String desc)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter