Class HideFileFilterProxy

  • All Implemented Interfaces:
    java.io.FileFilter, net.sf.japi.util.filter.file.FileFilter, net.sf.japi.util.filter.Filter<java.io.File>

    public class HideFileFilterProxy
    extends net.sf.japi.util.filter.file.AbstractFileFilter
    A FileFilter that wraps another FileFilter and filters out version control directories. The description and other filtering are taken from the wrapped file filter.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.sf.japi.util.filter.Filter

        net.sf.japi.util.filter.Filter.Factory
    • Constructor Summary

      Constructors 
      Constructor Description
      HideFileFilterProxy​(@NotNull javax.swing.filechooser.FileFilter other)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(@NotNull java.io.File pathName)
      First checks whether the file should be hidden, if not, checks the other FileFilter.
      @NotNull java.lang.String getDescription()
      Returns the description from the other FileFilter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HideFileFilterProxy

        public HideFileFilterProxy​(@NotNull
                                   @NotNull javax.swing.filechooser.FileFilter other)
        Creates a new instance.
        Parameters:
        other - the file filter to wrap
    • Method Detail

      • getDescription

        @NotNull
        public @NotNull java.lang.String getDescription()
        Returns the description from the other FileFilter.
        Specified by:
        getDescription in class javax.swing.filechooser.FileFilter
      • accept

        public boolean accept​(@NotNull
                              @NotNull java.io.File pathName)
        First checks whether the file should be hidden, if not, checks the other FileFilter.
        Specified by:
        accept in interface java.io.FileFilter
        Specified by:
        accept in interface net.sf.japi.util.filter.Filter<java.io.File>
        Specified by:
        accept in class javax.swing.filechooser.FileFilter