Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org.jfree.report.modules.gui » base » components » [javadoc | source]
org.jfree.report.modules.gui.base.components
public class: FilesystemFilter [javadoc | source]
java.lang.Object
   javax.swing.filechooser.FileFilter
      org.jfree.report.modules.gui.base.components.FilesystemFilter

All Implemented Interfaces:
    FilenameFilter

A generic filesystem filter which implements FilenameFilter and the Swing FileFilter. Multiple extensions can be registered for a single filetype.
Constructor:
 public FilesystemFilter(String fileext,
    String descr) 
    Creates a filesystem filter for the given extension with the description supplied in descr. Directories are accepted by default.
    Parameters:
    fileext - the file extension that should be accepted
    descr - the description for this filetype
 public FilesystemFilter(String fileext,
    String descr,
    boolean accDirs) 
    Creates a filesystem filter for the given extension with the description supplied in descr. Directories are accepted if accDirs is set to true.
    Parameters:
    fileext - the file extension that should be accepted
    descr - the description for this filetype
    accDirs - true, if directories should be acceptable for this filter.
 public FilesystemFilter(String[] fileext,
    String descr,
    boolean accDirs) 
    Creates a filesystem filter for the given extensions with the description supplied in descr. Directories are accepted if accDirs is set to true.
    Parameters:
    fileext - the file extensions that should be accepted
    descr - the description for this filetype
    accDirs - true, if directories should be acceptable for this filter.
Method from org.jfree.report.modules.gui.base.components.FilesystemFilter Summary:
accept,   accept,   addExtension,   getDescription,   setAcceptDirectories
Methods from javax.swing.filechooser.FileFilter:
accept,   getDescription
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.modules.gui.base.components.FilesystemFilter Detail:
 public boolean accept(File dir) 
    Whether the given file is accepted by this filter.
 public boolean accept(File dir,
    String name) 
    Tests if a specified file should be included in a file list.
 public  void addExtension(String ext) 
    Add this extension to the filter.
 public String getDescription() 
    The description of this filter. For example: "JPG and GIF Images"
 public  void setAcceptDirectories(boolean b) 
    Sets whether this filter accepts directories.