|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
loci.formats.gui.FormatFileFilter
public class FormatFileFilter
A file filter for a biological file format, for use with a JFileChooser.
| Constructor Summary | |
|---|---|
FormatFileFilter(loci.formats.IFormatReader reader)
Constructs a new filter that accepts files of the given reader's type. |
|
FormatFileFilter(loci.formats.IFormatReader reader,
boolean allowOpen)
Constructs a new filter that accepts files of the given reader's type, allowing the reader to open files only if the allowOpen flag is set. |
|
| Method Summary | |
|---|---|
boolean |
accept(File f)
Accepts files in accordance with the file format reader. |
int |
compareTo(Object o)
Compares two FileFilter objects alphanumerically. |
String |
getDescription()
Gets the filter's description. |
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 FormatFileFilter(loci.formats.IFormatReader reader)
public FormatFileFilter(loci.formats.IFormatReader reader,
boolean allowOpen)
reader - The reader to use for verifying a file's type.allowOpen - Whether it is ok to open a file to determine its type.| Method Detail |
|---|
public boolean accept(File f)
accept in interface FileFilteraccept in class FileFilterpublic String getDescription()
getDescription in class FileFilterpublic String toString()
toString in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||