jmri.util
Class NoArchiveFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by jmri.util.FileChooserFilter
          extended by jmri.util.NoArchiveFileFilter

public class NoArchiveFileFilter
extends FileChooserFilter

File filter to suppress zip file archives.

Java 1.6's FileChooser gets slow when it encounters large zip files. This filter skips them, while still allowing you to specify others, etc.

Author:
Bob Jacobsen Copyright 2007 Made from a suggestion by John Plocher

Constructor Summary
NoArchiveFileFilter()
           
NoArchiveFileFilter(String description)
           
 
Method Summary
 boolean accept(File f)
           
 
Methods inherited from class jmri.util.FileChooserFilter
addExtension, getDescription, getFileExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoArchiveFileFilter

public NoArchiveFileFilter()

NoArchiveFileFilter

public NoArchiveFileFilter(String description)
Method Detail

accept

public boolean accept(File f)
Overrides:
accept in class FileChooserFilter


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads