|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter visad.util.ComboFileFilter
public class ComboFileFilter
A file filter that recognizes files from a union of other filters.
Constructor Summary | |
---|---|
ComboFileFilter(FileFilter[] filters,
String description)
Constructs a new filter from a list of other filters. |
Method Summary | |
---|---|
boolean |
accept(File f)
Accepts files with the proper filename prefix. |
int |
compareTo(Object o)
Compares two FileFilter objects alphanumerically. |
String |
getDescription()
Returns the filter's description. |
FileFilter[] |
getFilters()
Gets the list of file filters forming this filter combination. |
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. |
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. |
String |
toString()
Gets a string representation of this file filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComboFileFilter(FileFilter[] filters, String description)
Method Detail |
---|
public FileFilter[] getFilters()
public static FileFilter[] sortFilters(FileFilter[] filters)
public static FileFilter[] sortFilters(Vector filters)
public boolean accept(File f)
accept
in interface FileFilter
accept
in class FileFilter
public String getDescription()
getDescription
in class FileFilter
public String toString()
toString
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |