Package net.sf.gridarta.utils
Class MapFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- net.sf.japi.util.filter.file.AbstractFileFilter
-
- net.sf.japi.util.filter.file.EndingFileFilter
-
- net.sf.gridarta.utils.MapFileFilter
-
- All Implemented Interfaces:
java.io.FileFilter,net.sf.japi.util.filter.file.FileFilter,net.sf.japi.util.filter.Filter<java.io.File>
public class MapFileFilter extends net.sf.japi.util.filter.file.EndingFileFilterSwing FileFilter implementation that filters map files.
-
-
Constructor Summary
Constructors Constructor Description MapFileFilter(boolean acceptDirectories, @NotNull java.lang.String description, @NotNull java.lang.String... endings)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(@NotNull java.io.File pathName)static booleanisPerformingRealChecks()Get whether to actually perform real checks or just file endings.static voidsetPerformingRealChecks(boolean performingRealChecks)Set whether to actually perform real checks or just file endings.
-
-
-
Constructor Detail
-
MapFileFilter
public MapFileFilter(boolean acceptDirectories, @NotNull @NotNull java.lang.String description, @NotNull @NotNull java.lang.String... endings)Creates a new instance.- Parameters:
acceptDirectories- whether the file filter should accept directoriesdescription- the description to use for Swingendings- the endings to accept, including their period
-
-
Method Detail
-
setPerformingRealChecks
public static void setPerformingRealChecks(boolean performingRealChecks)
Set whether to actually perform real checks or just file endings.- Parameters:
performingRealChecks-truefor performing real checks,falseto compare only file endings
-
isPerformingRealChecks
public static boolean isPerformingRealChecks()
Get whether to actually perform real checks or just file endings.- Returns:
truefor performing real checks,falseto compare only file endings
-
accept
public boolean accept(@NotNull @NotNull java.io.File pathName)- Specified by:
acceptin interfacejava.io.FileFilter- Specified by:
acceptin interfacenet.sf.japi.util.filter.Filter<java.io.File>- Overrides:
acceptin classnet.sf.japi.util.filter.file.EndingFileFilter- No Inspection:
- ParameterNameDiffersFromOverriddenParameter
-
-