public class DimapFileFilter extends SnapFileFilter
SnapFileFilter.FileSelectionMode
Constructor and Description |
---|
DimapFileFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Tests whether or not the given file is accepted by this filter.
|
boolean |
isCompoundDocument(File dir)
Checks if the given directory represents a compound document.
|
checkExtension, checkExtension, checkExtensions, equals, getDefaultExtension, getDescription, getExtensions, getFileSelectionMode, getFormatName, getSortedFileFilters, hasExtensions, hashCode, setDescription, setExtensions, setFormatName
public boolean accept(File file)
SnapFileFilter
true
if the given file is a directory or the path string ends with one of the registered extensions.
if no extension are defined, the method always returns true
accept
in class SnapFileFilter
file
- the file to be or not be accepted.true
if given file is accepted by this filterpublic boolean isCompoundDocument(File dir)
SnapFileFilter
JFileChooser
.
The default implementation returns false
.
Clients may override.isCompoundDocument
in class SnapFileFilter
dir
- The directory to check.true
If the given directory represents a compound document.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.