Package loci.formats.gui
Class ComboFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
loci.formats.gui.ComboFileFilter
- All Implemented Interfaces:
FileFilter,Comparable
A file filter that recognizes files from a union of other filters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDescription.private FileFilter[]List of filters to be combined. -
Constructor Summary
ConstructorsConstructorDescriptionComboFileFilter(FileFilter[] filters, String description) Constructs a new filter from a list of other filters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccepts files with the proper filename prefix.intCompares two FileFilter objects alphanumerically.Returns the filter's description.Gets the list of file filters forming this filter combination.static FileFilter[]sortFilters(Vector filters) Sorts the given list of file filters, and combines filters with identical descriptions into a combination filter that accepts anything any of its constituant filters do.static FileFilter[]sortFilters(FileFilter[] filters) Sorts the given list of file filters, and combines filters with identical descriptions into a combination filter that accepts anything any of its constituant filters do.toString()Gets a string representation of this file filter.
-
Field Details
-
filts
List of filters to be combined. -
desc
Description.
-
-
Constructor Details
-
ComboFileFilter
Constructs a new filter from a list of other filters.
-
-
Method Details
-
getFilters
Gets the list of file filters forming this filter combination. -
sortFilters
Sorts the given list of file filters, and combines filters with identical descriptions into a combination filter that accepts anything any of its constituant filters do. -
sortFilters
Sorts the given list of file filters, and combines filters with identical descriptions into a combination filter that accepts anything any of its constituant filters do. -
accept
Accepts files with the proper filename prefix.- Specified by:
acceptin interfaceFileFilter- Specified by:
acceptin classFileFilter
-
getDescription
Returns the filter's description.- Specified by:
getDescriptionin classFileFilter
-
toString
Gets a string representation of this file filter. -
compareTo
Compares two FileFilter objects alphanumerically.- Specified by:
compareToin interfaceComparable
-