jdbreport.view
Class ReportFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by jdbreport.view.ReportFileFilter

public class ReportFileFilter
extends FileFilter

Version:
1.3 16.05.2009
Author:
Andrey Kholmanskih

Constructor Summary
ReportFileFilter(FileType fileType)
           
 
Method Summary
 boolean accept(File f)
           
 void addExtension(String extension)
          Adds a filetype "dot" extension to filter against.
 String getDescription()
          Returns the human readable description of this filter.
 String getExtension(File f)
          Returns the extension portion of the file's name .
 FileType getFileType()
           
 ReportReader getReader()
           
 ReportWriter getWriter()
           
 boolean isExtensionListInDescription()
           
 void setDescription(String description)
          Sets the human readable description of this filter.
 void setExtensionListInDescription(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFileFilter

public ReportFileFilter(FileType fileType)
Method Detail

accept

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

getExtension

public String getExtension(File f)
Returns the extension portion of the file's name .


addExtension

public void addExtension(String extension)
Adds a filetype "dot" extension to filter against. Note that the "." before the extension is not needed and will be ignored.


getDescription

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

Specified by:
getDescription in class FileFilter

setDescription

public void setDescription(String description)
Sets the human readable description of this filter.


setExtensionListInDescription

public void setExtensionListInDescription(boolean b)

isExtensionListInDescription

public boolean isExtensionListInDescription()

getReader

public ReportReader getReader()

getWriter

public ReportWriter getWriter()

getFileType

public FileType getFileType()