|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter prefuse.util.io.SimpleFileFilter
public class SimpleFileFilter
A simple file filter for a particular file extension.
Constructor Summary | |
---|---|
SimpleFileFilter(java.lang.String ext,
java.lang.String desc)
Create a new SimpleFileFilter. |
|
SimpleFileFilter(java.lang.String ext,
java.lang.String desc,
java.lang.Object data)
Create a new SimpleFileFilter. |
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
|
void |
addExtension(java.lang.String ext)
Add a file extension to this file filter. |
java.lang.String |
getDescription()
|
java.lang.String |
getExtension()
Get the first file extension associated with this filter. |
java.lang.Object |
getUserData()
Get a user-provided attached object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFileFilter(java.lang.String ext, java.lang.String desc)
ext
- the file extensiondesc
- a description of the file typepublic SimpleFileFilter(java.lang.String ext, java.lang.String desc, java.lang.Object data)
ext
- the file extensiondesc
- a description of the file typedata
- user-provided attached objectMethod Detail |
---|
public void addExtension(java.lang.String ext)
ext
- the file extension to addpublic boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
FileFilter.accept(java.io.File)
public java.lang.Object getUserData()
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
FileFilter.getDescription()
public java.lang.String getExtension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |