|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.cytoscape.util.swing.FileChooserFilter
public final class FileChooserFilter
Used to hold extension(s) of acceptable file types and a short description of them.
Constructor Summary | |
---|---|
FileChooserFilter(String description,
String extension)
Construct this FileChooserFilter using one acceptable file type extension. |
|
FileChooserFilter(String description,
String[] extensions)
Construct this FileChooserFilter using multiple acceptable file type extensions. |
Method Summary | |
---|---|
boolean |
accept(File file)
Accept or not the file from JFileChooser. |
boolean |
equals(Object other)
|
String |
getDescription()
Returns the short description of the acceptable file type. |
String[] |
getExtensions()
Returns an array of the extensions associated with this FileChooserFilter. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileChooserFilter(String description, String extension)
description
- a short description of the acceptable file typeextension
- the file extension of the acceptable file typepublic FileChooserFilter(String description, String[] extensions)
description
- a short description of the acceptable file type(s)extensions
- the file extensions of the acceptable file type(s)Method Detail |
---|
public boolean accept(File file)
accept
in class FileFilter
file
- the file to be testedpublic String getDescription()
getDescription
in class FileFilter
public String[] getExtensions()
public boolean equals(Object other)
equals
in class Object
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |