Package net.sf.gridarta.utils
Class HideFileFilterProxy
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- net.sf.japi.util.filter.file.AbstractFileFilter
-
- net.sf.gridarta.utils.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.AbstractFileFilterA FileFilter that wraps another FileFilter and filters out version control directories. The description and other filtering are taken from the wrapped file filter.
-
-
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 booleanaccept(@NotNull java.io.File pathName)First checks whether the file should be hidden, if not, checks the other FileFilter.@NotNull java.lang.StringgetDescription()Returns the description from theotherFileFilter.
-
-
-
Method Detail
-
getDescription
@NotNull public @NotNull java.lang.String getDescription()
Returns the description from theotherFileFilter.- Specified by:
getDescriptionin classjavax.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:
acceptin interfacejava.io.FileFilter- Specified by:
acceptin interfacenet.sf.japi.util.filter.Filter<java.io.File>- Specified by:
acceptin classjavax.swing.filechooser.FileFilter
-
-